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 problem

Former Member
0 Likes
425

Hi experts,

i want to know about in call transaction and session methods in BDC how can we handle errors?????????

plz anyone throw light on this.

I am waiting for ur answer bcoz i am new in ABAP.

3 REPLIES 3
Read only

Former Member
0 Likes
388

Hi Mohanty,

Handling of errors in Session and Call Transaction methods is as follows :

1. Session Method : In case of BDC session method, errors are logged implicitly and you can see the same by selecting the respective session in T.code SM35 and pressing 'LOG' button. From here you can see what are the records which went into error and the reason of their failure.

2. Call transaction : In this case you have to handle the errors explicitly by declaring and an internal table of type BDCMSGCOLL.

BDCMSGCOLL have different fields like MSGTYP, MSGID, MSGNR etc. which can help you in analyzing the error. Eg :

CALL TRANSACTION 'MM02' USING lt_bdcdata

MODE 'N'

UPDATE 'A'

MESSAGES INTO lt_msgcoll.

where lt_msgcoll is of type BDCMSGCOLL.

Revert back if you still have some doubt.

Regards

VJ

Edited by: Vishal Jindal on Feb 2, 2010 6:24 AM

Read only

Former Member
0 Likes
388

There are so many threds related to this, just type handling error in call transaction/session method, you will get hell lot of answers from the users,

Regards,

Mallikarjuna.

Read only

Former Member
0 Likes
388

Thanks.