10-24-2006 10:45 AM
Hi.
When I insert a new employee with transaction pa40 in batch input, I can't specify the new pernr but only the applicant number. So at the end of batch input I don't know the pernr associated to the applicant number.
How can I know the pernr created by the batch input?
Thanks.
Regards, Angela.
10-24-2006 10:50 AM
May be the PERNR is set as auto generate.
If you can change that setting, you can specify.
Else, when you upload, catch all success messages in an internal table and find for the PERNR in it.
Eg : Personnel 2399993 successfully created
and create a log out of that to map the record you are uploading and the output success message you get.
regards,
Sandeep Josyula
*Pl reward if helpful
10-24-2006 11:05 AM
if u are using the Call transaction method use bdcmsgcoll str and get all the messages populated into the message table all the messages can be then looped n displayed. the session method messages can be seen in sm35.
santhosh
10-24-2006 12:28 PM
Hi,
After using the call transaction , your messages will be stored in BDCMSGCOL table , read this table for msgtyp = 'S ' your pernr will be stored in this ,if required format using FM 'FORMAT_MESSAGE' , Usually it will be stored in one of these variables SY-MSGV1,SY-MSGV2,SY-MSGV3,SY-MSGV4.
Regards
Sudheer