10-09-2013 11:10 AM
Dear Experts,
I just want to enhance this screen in transaction PA30.
I want the payroll identifier (PAYID) to be filled automatically depending on wage type field and payment date field.
I tried to create implicit enhancement but the available location for it is after all the modules as the following image, so its not getting called.
Also i tried to copy the standard program and transaction to ZPA30 AND ZSAPMP50A and modify it.
but it didn't work because it has a lot of include files that are dependent on each other.
I just wondering how to enhance this code.
Thanks.
10-09-2013 11:13 AM
Use the User EXIT..
EXIT_SAPFP50M_001 - PBO
EXIT_SAPFP50M_002 - PAI
With regards,
SuDEESH
10-09-2013 11:13 AM
Use the User EXIT..
EXIT_SAPFP50M_001 - PBO
EXIT_SAPFP50M_002 - PAI
With regards,
SuDEESH
10-09-2013 12:36 PM
Hi SuDEESH,
Could you please give me a short example.
The EXIT_SAPFP50M_001 has an include file called ZXPADU01.
I activated it, and i don know what is the next step.
PAYID is not included to the function parameters.
10-09-2013 12:47 PM
I hope you know the difference between PBO & PAI. And think whether you should write the logic in PBO (EXIT_SAPFP50M_001 - PBO) or PAI (
EXIT_SAPFP50M_002 - PAI).
After that fetch the value from the infotype using the following codes..
DATA : lx_0267 TYPE p0267.
Constant : lc_0267 type infty value '0267'.
* Check the Infotypes...
CLEAR lx_0267.
IF sy-tcode NE 'PA20' AND ( ipsyst-ioper EQ 'INS' OR ipsyst-ioper EQ 'MOD' ).
CASE innnn-infty.
WHEN lc_0267.
*** Importing data from innnn to the structure lx_0267
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp = innnn
IMPORTING
pnnnn = lx_0267.
Here you can write the logic... Like... Validations or pass default values..
CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
EXPORTING
pnnnn = lx_0267
IMPORTING
prelp = innnn.
WHEN OTHERS.
ENDCASE.
WHEN OTHERS.
ENDCASE.
ENDIF.
http://www.slideshare.net/RingelJen/user-exit-training
With regards,
SuDEESH
10-09-2013 1:30 PM
10-09-2013 1:32 PM
No need of Thanx Friend.. Enjoy the life.. Just sharing what I know..
SuDEESH