FCTR Debugging Session
FCTR :
PE04 -> FCTR :
According to the parameter passed to FCTR in the schema
se38 -> RPDASC00 with variant (NEL)
This Function calls : 'HR_FR_PROCESS_SPECIAL_CONTRACT'
Note : this is a module function (se37) that does all the logic related to processing the special contracts
The var SY-SUBRC : stores the "Return Code."
Quick Info : _SY-SUBRC is SAP ABAP system field and contains a return code of ABAP statements._
-> System fields are active in all ABAP programs and they get their value by the run-time environment.
->In almost every ABAP program the system field SUBRC is used, because its meaning is connected with the
successful execution of a statement. It contains return value, set by ABAP statements. It is an integer value like 0,
4, 8 or other. This value is used to determine the status of the execution of an ABAP statement.
Snap shot on : HR_FR_PROCESS_SPECIAL_CONTRACT
- Takes :
- Contract type (T5F42 : table that links the MODIF of T5F1K AND The contract type) using
get_contract_type (pe07)
- last active day
- mode d'exo 2
- Calculates the AMT (LGART_CALC) ( using infos from T5F1K) and according to parameter of the FCTR
- Note : if output wage type is present in the table it search for it in the IT if it exists it
puts it in the IT, if it doesn't exist it store it in the memory
- it generates the wage type according to some conditions