Application Development and Automation 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: 
Read only

Skip infotypes using the function HR_MAINTAIN_MASTERDATA with abap

Former Member
0 Likes
1,477

i neet to skip some infotypes, using HR_MAINTAIN_MASTERDATA with abap

because i need to use it, automatically with this function, but we need to skip some infotypes, and we not need to create new Infogroup, we want to use the same infogroup manually with PA40.

2 REPLIES 2
Read only

former_member525226
Discoverer
937

For all of you looking for a solution and not finding one, here it is.

It's requires quite an elaborate scheme but it gets the job done.

You need to implement BADI HRPAD00INFTY and pass value 'NEXT' into screen field FCODE in BEFORE_OUTPUT when the screen you want to skip is getting processed.

DATA: lv_screen_field TYPE string.
FIELD-SYMBOLS: <fv_field> TYPE any.

lv_screen_field = '(' && sy-cprog && ')' && 'FCODE'.
ASSIGN (lv_screen_field) TO <fv_field>.
<fv_field> = 'NEXT'.

Of course you need to find a way to pass information from your code calling HR_MAINTAIN_MASTERDATA to the BADI implementation which requires some IMPORT/EXPORT TO MEMORY gymnastics, but I'm sure you'll figure it out 🙂

Read only

0 Likes
937

This approach appears not to work if the screen contains a required field even though it is possible to skip in PA40 by clicking "next screen". Did the screen you skipped with this approach contain a required field?

Cheers.