Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PA30 Payroll Identifier Modification

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use the User EXIT..

EXIT_SAPFP50M_001 - PBO

EXIT_SAPFP50M_002 - PAI

With regards,

SuDEESH

5 REPLIES 5

Former Member
0 Kudos

Use the User EXIT..

EXIT_SAPFP50M_001 - PBO

EXIT_SAPFP50M_002 - PAI

With regards,

SuDEESH

0 Kudos

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.

0 Kudos

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

0 Kudos

Thanks SuDEESH So much... I got it

0 Kudos

No need of Thanx Friend.. Enjoy the life.. Just sharing what I know..

SuDEESH