‎2008 May 12 7:12 PM
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
‎2008 May 12 7:24 PM
Hi Suresh,
YOu have to REFRESH your BDCDATA internal table after each Call transaction in the loop-endloop.
Regards,
Ravi
‎2008 May 12 7:24 PM
Hi Suresh,
YOu have to REFRESH your BDCDATA internal table after each Call transaction in the loop-endloop.
Regards,
Ravi
‎2008 May 12 8:27 PM
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.
‎2008 May 13 8:40 AM
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.
‎2008 May 13 10:15 AM
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.
‎2008 May 13 10:18 AM
Use refresh bdcdata. in the loop.
before populating bdcdata.
Regards,
Madan.