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

How to input infotype 2003 in tcode PA30 using Function ?

jandrivay
Participant
0 Likes
717

Hi Expert,

Im new in HR module, and i need to know how FM HR_INFOTYPE_OPERATION work ?
i need to insert data with infotype Subtitutions( 2003 ) to PA30.

Thankyou

1 REPLY 1
Read only

simon_wabnig
Explorer
0 Likes
665

In your program, build up an structure of the Pxxxx type e.q. P2003.

This structure can be used for parameter RECORD. You also need to fill the key-fields in the structure (including INFTY). For inserts (OPERATION = 'INS') i usally use the key-fields directly from the structure.

Than call FM HR_INFOTYPE_OPERATION - you need to fill at least the following parameters/data:

  • Key fields (INFTY NUMBER SUBTYPE VALIDITYEND VALIDITYBEGIN...)
  • Data fields (RECORD)
  • Operation to perform on the infotype (INS, DEL, MOD, COP)

Check parameter RETURN for any problems. Type 'E' indicates errors.