2012 Aug 23 6:42 AM
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
2012 Aug 23 6:52 AM
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...
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |