2008 Jul 24 8:32 AM
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
2008 Jul 24 8:38 AM
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
2008 Jul 24 8:38 AM
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
2008 Jul 24 8:40 AM
2008 Jul 24 8:47 AM
Do the recording in SHDB for PA30 for Infotype 80 and code
the program ..
2008 Jul 31 9:07 AM
2008 Jul 31 10:13 AM
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.