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 session not processing next record if error occurs

Former Member
0 Likes
1,699

Hi ,

Before posting this thread I tried searching google and forum but not able to trace right solution.

I have written BDC program for transaction QM01. When I process the BDC session it halts on the first record saying notification no already exists.

If notifcation no already exists then BDC session should skip it displaying error and should process next record but it is not happening.

I executed program using call transaction with all screen mode and I found same problem. Program displays the error message and do not proceed further.

I do not have any clue, can anyone guide me ?

Thanks ,

Narayan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,039

Hi,

BDC cannot proceed once it encounters an error message. You will have to do the recording of the transaction in such a way that it will not encounter any error message.

So that it will not halt the whole BDC session. And if the error message is unavoidable, then BDC cannot be used under these cirumstances. You might have to go for BAPI.

Thanks,

Archana

6 REPLIES 6
Read only

Former Member
0 Likes
1,040

Hi,

BDC cannot proceed once it encounters an error message. You will have to do the recording of the transaction in such a way that it will not encounter any error message.

So that it will not halt the whole BDC session. And if the error message is unavoidable, then BDC cannot be used under these cirumstances. You might have to go for BAPI.

Thanks,

Archana

Read only

Former Member
0 Likes
1,039

Hi,

Please check in your program if the notification exists in table QMEL.

If it doesn't , then only populate the BDCTAB and process the BDC session.

Regards,

Srini.

Read only

Former Member
0 Likes
1,039

Hello,

Try using BAPI_QUALNOT_CREATE instead of recording.

Hope it helps

Regards

Sachin

Read only

Former Member
0 Likes
1,039

Please pass messages in message table in the call transaction ....

call transaction 'QM01' mode 'N' update 'S' MESSAGES INTO itab.

Regards,

Lalit Mohan Gupta

Read only

Former Member
0 Likes
1,039

What is your display mode? If not 'N'-None, the BDC session will stop, and you must enter the /bend command to proceed to the next call transation block in the BDC table. In N-None, an error should result in bdc session being flagged as an error....at the end of BDC processing, you will then have a good transaction count and an error transaction count. SAP supports reprocessing of the errirs BDC sessions, usually done in foreground, so that the user can step through the screens and correct the data errors.

Read only

Former Member
0 Likes
1,039

closed