Application Development 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: 

Standard error in BDC

Former Member
0 Kudos

Am automating the creation of service contract tcode ME31K, I have checked for BAPI or BADI i didnt get so i did in BDC - call transaction method.


When the BDC gets into one screen to next screen. From screen level they have set a check for mandatory field(Standard) so it will give us error "Fill all mandatory fields".

Problem is, when error come's BDC will stop.

To avoid the error and run the BDC successful please suggest some solution.

I have attached error screen.
bdc-1.jpeg
Thanks in Advance,

Regards,
Vinu Natarajan

4 REPLIES 4

matt
Active Contributor
0 Kudos

Supply the mandatory data?

0 Kudos

BDC will work the same way how u do manual entries, if its asking u mandatory field to enter through manual, then definitely BDC also going to ask u the same things.

use call Transaction method instead of Session method bec CT will process all the record and at the end of the work it will show u error in BDCMSGCOLL table and u can check the problem later on.

0 Kudos

@Paul - Thank you.

Am using call transaction method only. BDC is not processing at all when error populate in screen level. Because it is mandatory check error.

0 Kudos

To my knowledge, BDC won't be processed further when an error occurs because that particular BDC has ended with error. Consider you have to execute ME31K thrice for 3 items,

loop at the main table which holds the 3 items.

refresh bdcdata.

populate BDCdata for 1st item.

call transaction 'me31k' using bdcdata mode 'a' messages into bdcmsgcoll. (in this case if BDC ended in error for 1st item, error messages will be in bdcmsgcoll , then it will proceed to process the 2nd item.)

endloop.

Above is the process you need to follow for BDC via call transaction.

This will process the 2nd item though the 1st item went into error because everything is within loop and bdcdata is populated for each item everytime within loop.

hope this helps.