Get current function of the transaction whether INPUT or VALIDATE or other

Last updated: 2025-01-29

This is used to check the function called for this transaction equivalent to V$FUNCTION from infobasic

public String checkId(String currentRecordId, TransactionContext transactionContext) {
    String Vfunction = transactionContext.getCurrentFunction();
    if (Vfunction.equals("INPUT")) {
        //your logic
    }
}