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

bdc call transaction

Former Member
0 Likes
395

hi all,

i am right now working on bdc. i am fetching excel fiel and converting it into SAP data into an internal table and then using call transaction method.

for say i have 100 records and there is an error in 45th data. my process should not get stopped at that error. it should display the messages only after all the records are processed. how could it be done?

Moderator message : Not enough re-search before posting, discussion locked.

Message was edited by: Vinod Kumar

hi all,

i am right now working on bdc. i am fetching excel fiel and converting it into SAP data into an internal table and then using call transaction method.

for say i have 100 records and there is an error in 45th data. my process should not get stopped at that error. it should display the messages only after all the records are processed. how could it be done?

Moderator message : Not enough re-search before posting, discussion locked.

Message was edited by: Vinod Kumar

1 REPLY 1
Read only

Former Member
0 Likes
364

You can make use of another internal table( type BDCMSGCOL ) which will capture all messages of a call transaction statement.

check with the sy-subrc value, if the call transaction is not success, then move the corresponding record of internal table to another internal table. Finally the unprocessed records are moved together into another internal table. You can make use of Function module "GUI_DOWNLOAD" to download the UN-processed records to flat file.

After checking the logic or the issue why these records are not processed you can again run the program with the downloaded flat file.

Hope this will be useful to you...