Sage X3 defines a method through which we can execute a specific file of an action.
Generally, when an action is called, the standard code file will be executed. But sometimes, we may need to execute a specific file of an action.
We can do this using the following method.
Call TRAITE_CHAR(VALBOUT,PARBOUT,””,”X1ACTAFF”,””,1,”SPEX1ACTAFF”) From GTRAITE
Here,
VALBOUT and PARBOUT : character strings.
X1ACTAFF : Action
SPEX1ACTAFF : Specific TRT file of action ‘X1ACTAFF’
Refer the below screen-shot to understand the functionality.
The above code runs the specific file ‘SPEX1ACTAFF’ when action ‘X1ACTAFF’ gets executed.
If we don’t pass specific file name then the standard file of action will be executed.