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 related issue while error handling

Former Member
0 Likes
413

Hi,

I have doubt related to BDC . I have excel file wherein there are 5 records. I have certain tcode for which i am running BDC using CALL TRANSACTION and SESSION method.

My doubt is suppose there is correct execution of 2 records and there is incorrect data in 3 record.

Now my question is if i am running this BDC in both way what will happen?

Query is

1. Remaining 4th and 5th record will get executed?

2. How to handle error is 3rd record?

3. and if i am using session method one session is created with error in that session Can i re-process the same session

instead of creating new one ?

4. and i want to display those error messages on screen output in both method How i can do it?

Thanks

Parag

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
378

Hi Parag,

Please see the below points :

1. Remaining 4th and 5th record will get executed : Yes, 4th and 5th record will definitely get executed even if previous records went into error.

a. In case of BDC session method : You can see the error log in SM35 for the records which have gone into error.

b. In call transaction method : You can catch the errored out records in Internal table of type BDCMSGCOLL.

2. How to handle error is 3rd record : To handle the error in any of the records you can analyze the BDC session log and after correcting the error you can re run the errored out session in foreground/background. Similar is the case in BDCMSGCOLL where you can display the error reason by displaying the contents of internal table of type BDCMSGCOLL.

3. Yes you can reprocess the errored out session once again in SM35 instead of creating a new one.

4. For this query you can refer the above points.

Come up with queries if any.

Cheers

VJ

2 REPLIES 2
Read only

Former Member
0 Likes
378

Use BDCRETURN structure which will collect all msgs from bdc call..

And

yes u can process same session again bt if there is primary key or unique key record then again it will give error for that so I ll sujest remove first 2 records from file and then process it....

Read only

Former Member
0 Likes
379

Hi Parag,

Please see the below points :

1. Remaining 4th and 5th record will get executed : Yes, 4th and 5th record will definitely get executed even if previous records went into error.

a. In case of BDC session method : You can see the error log in SM35 for the records which have gone into error.

b. In call transaction method : You can catch the errored out records in Internal table of type BDCMSGCOLL.

2. How to handle error is 3rd record : To handle the error in any of the records you can analyze the BDC session log and after correcting the error you can re run the errored out session in foreground/background. Similar is the case in BDCMSGCOLL where you can display the error reason by displaying the contents of internal table of type BDCMSGCOLL.

3. Yes you can reprocess the errored out session once again in SM35 instead of creating a new one.

4. For this query you can refer the above points.

Come up with queries if any.

Cheers

VJ