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

problem while uploading data in infotype 2

Former Member
0 Likes
424

Hi All,

I made BDC to upload required fields in infotype 2. I use text file to upload all the data.

Currently i have only one record in text file for testing purpose. When i run the report in foreground for that record it goes to the pa30 screen which i have accessed recently. It means if i access pa30 for emp. code 123 then my bdc update the records for emp. code 123 and if i access emp. code 456 after that through pa30 then my program is updating records for emp. code 456. Can you please tell me why it is happening.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
393

Hi,

In PA30, the field for PERNR on screen, gets default value as per last used PERNR.

So, in BDC, we should make sure that the screen field is populated by our value from the file. Just check your bdc code, and make sure the field


RP50G-PERNR

gets the value from the file.

Regards,

Amit Mittal.

2 REPLIES 2
Read only

Former Member
0 Likes
394

Hi,

In PA30, the field for PERNR on screen, gets default value as per last used PERNR.

So, in BDC, we should make sure that the screen field is populated by our value from the file. Just check your bdc code, and make sure the field


RP50G-PERNR

gets the value from the file.

Regards,

Amit Mittal.

Read only

Former Member
0 Likes
393

Hi,

Some standard SAP transactions retain the previously entered screen values accross a session. Hence you need to clear those buffer values in your BDC code.