ALIFMI entry point in TRTVENCDE

SUGGESTED

Dear all,

I'm new in SAGE X3 and wanted to know if there is a possibility to change the default value for the field FMI in a Sales order line.

I found in the entry points documentation that this can be done by using the entry point ALIFMI but not idea how to do this.

"The WFMI variable is initialized in a standard way.  This variable needs to be modified in the EP in order to modify the value of the FMI field." 

I want to set the FMI value to 2 or 3 depending on the LINTYP, something like

IF [M:SOH4]LINTYP = 6 Then FMI = 3

Thank you for your help!

Regards