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: 

Recordered Data by Batch Input

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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