Skip to Content
-2

Standard error in BDC

Mar 24, 2017 at 07:54 AM

93

avatar image
Former Member

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

bdc-1.jpeg (59.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Matthew Billingham
Mar 24, 2017 at 08:27 AM
0

Supply the mandatory data?

Share
10 |10000 characters needed characters left characters exceeded
Paul Karunakar Mar 24, 2017 at 12:24 PM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

@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
Further commenting has been locked.
avatar image
Former Member Mar 28, 2017 at 09:34 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded