‎2010 Feb 02 3:55 AM
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.
‎2010 Feb 02 5:24 AM
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
‎2010 Feb 02 10:38 AM
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.
‎2010 Feb 05 3:44 AM