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: 

HR_INFOTYPE_OPERATION and Infotype 80 triggering IT2001

Former Member
0 Kudos
289

I have a problem with automated inserting a infotype 2001 record when I insert a infotype 80 record.

Via PA30 a insert in IT80 results in a calcutaled IT2001 record but when i do a IT80 insert via HR_INFOTYPE_OPERATION

the IT2001 record is not inserted!

Does anybody know if the automated process which occurs in PA30 alse can be triggerd via HR_INFOTYPE_OPERATION.

Grtz Richard van Veen

1 ACCEPTED SOLUTION

Former Member
0 Kudos
119

Hi

the best option in this case is write a BDC for the same as it requires screen Intervention so Infotype 2001 will be automatically updated .

Hope this may solve ur problem.

Regards

Hitesh

5 REPLIES 5

Former Member
0 Kudos
120

Hi

the best option in this case is write a BDC for the same as it requires screen Intervention so Infotype 2001 will be automatically updated .

Hope this may solve ur problem.

Regards

Hitesh

Former Member
0 Kudos
119

Thks, maybe a stuppid question but what is a BDC=

0 Kudos
119

Do the recording in SHDB for PA30 for Infotype 80 and code

the program ..

0 Kudos
119

Can someone guide me??

Former Member
0 Kudos
119

Check to that the record UR going to create in PA0080 is of

Female only.

Code as :

  • Batchinputdata of single transaction

data: bdcdata like bdcdata occurs 0 with header line.

  • messages of call transaction

data: messtab like bdcmsgcoll occurs 0 with header line.

start-of-selection.

perform bdc_dynpro using 'SAPMP50A' '1000'.

perform bdc_field using 'BDC_OKCODE'

'=INS'.

perform bdc_field using 'RP50G-PERNR'

*'72'. <-- Enter your pernr here*

perform bdc_field using 'RP50G-CHOIC'

*'80'. <-- Enter infotype here*

perform bdc_dynpro using 'MP008000' '2000'.

perform bdc_field using 'BDC_OKCODE'

'=UPD'.

perform bdc_field using 'P0080-VEBDT'

*'03.08.2008'. <-- enter the date*

call transaction 'PA30' using bdcdata

mode 'N'

update 'A'

messages into messtab.

----


  • Start new screen *

----


form bdc_dynpro using program dynpro.

clear bdcdata.

bdcdata-program = program.

bdcdata-dynpro = dynpro.

bdcdata-dynbegin = 'X'.

append bdcdata.

endform.

----


  • Insert field *

----


form bdc_field using fnam fval.

clear bdcdata.

bdcdata-fnam = fnam.

bdcdata-fval = fval.

append bdcdata.

endform.