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: 

Validation of Wage type on save

Former Member
0 Kudos

Hi All,

I need to update HR exit EXIT_SAPFP50M_002 to display a message on save event of infotype 8 if a particular wage type is present in any of the lines .

Would appreciate any suggestions as to how I go about doing

this.

1 ACCEPTED SOLUTION

former_member181995
Active Contributor
0 Kudos

Just code in include ZXPADU02 which is in exit EXIT_SAPFP50M_002

test code for same:

get the information to perform the calculations

CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
        EXPORTING
          prelp = innnn
        IMPORTING
          pnnnn = i0008.

than use i0008 to display a message on save event of infotype 8 if a particular wage type is present in any of the lines .

Amit.

1 REPLY 1

former_member181995
Active Contributor
0 Kudos

Just code in include ZXPADU02 which is in exit EXIT_SAPFP50M_002

test code for same:

get the information to perform the calculations

CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
        EXPORTING
          prelp = innnn
        IMPORTING
          pnnnn = i0008.

than use i0008 to display a message on save event of infotype 8 if a particular wage type is present in any of the lines .

Amit.