Payroll results can be extracted using the following methods:
– If there is a need to do processing at individual steps:
1) Read cluster directory using 'CU_READ_RGDIR'
2) Read valid period from cluster directory using 'CU_READ_LAST'
3) Read payroll results using 'PYXX_READ_PAYROLL_RESULT'using SEQNO returned by 'CU_READ_LAST'.
– Otherwise:
1)Using function module 'PYXX_GET_EVALUATION_PERIODS'or
2)Using function module 'HR_GET_PAYROLL_RESULTS'to import current payroll results.
Since you are reading the payroll results of India, you have to change the declaration of 'payroll' as below
DATA:
payroll TYPE payin_result,
the current declaration
DATA:
payroll TYPE pay99_result,
Would only give you the international part of the payroll and you have to inform the FM that you only want to read the international part
through the importing parameter 'READ_ONLY_INTERNATIONAL'.
And 'CLUSTERID' is a optional parameter of the FM, if you don't feed any value to that it itself determines its value.
沒有留言:
張貼留言