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 in bdc while uploading data

Former Member
0 Likes
577

Hi Abapers, good day to alll

One Scenario, i am having 10 records in a file & when i am uploading the data everytime the 1st record is overlapping with already existing data, How you to handle this ?

Regards

Suresh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
545

Hi Suresh,

YOu have to REFRESH your BDCDATA internal table after each Call transaction in the loop-endloop.

Regards,

Ravi

5 REPLIES 5
Read only

Former Member
0 Likes
546

Hi Suresh,

YOu have to REFRESH your BDCDATA internal table after each Call transaction in the loop-endloop.

Regards,

Ravi

Read only

Former Member
0 Likes
545

Hi Suresh,

Award points if useful

loop at itab.

You will be populating the BDCDATA table

and at the end you will be writing call transaction stmt

refresh BDCDATA

endloop.

Read only

Former Member
0 Likes
545

Hi suresh naidu ,

You should always use refresh for your Bdcdata table.

Loop at internal table.

refresh Bdcdata.

-


-


endloop.

Hope this may solve your problem.

Please reward points if found helpful.

Thanks and regards.

Rajeshwar.

Read only

Former Member
0 Likes
545

HI,

The problem is because you are not refreshing the bdcdata structure.

when you loop the internal table and add bdcdata, for the first time it runs good. for the second iteration , the second record gets appended to BDCDATA but when you pass the structure it takes the first record only. so for the 10 times the same data gets displayed.

Loop at itab.

refresh bdcdata structure.

endloop.

So refresh the bdcdata structure before closing the loop.

This solves the problem.

Reward points if helpful.

Thanks and regards,

Narayana.

Read only

Former Member
0 Likes
545

Use refresh bdcdata. in the loop.

before populating bdcdata.

Regards,

Madan.