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

Error log for BDC session method

Former Member
0 Likes
398

Hi All,

can any one tell me how to catch error log in case of BATCH SESSION method?

as we want to display error log in the output list..

Mrunal

1 REPLY 1
Read only

Former Member
0 Likes
372

Hi

ERROR

1)Write an error report.

2)Send the record(s) in error to an error file.

3)Create a batch input session with the record(s) in error.

To store error messages ( CALL TRANSACTION )

data: begin of Tab_Mess occurs 0.

include structure bdcmsgcoll.

data : end of Tab_Mess,

CALL TRANSACTION ‘FK02’ USING BDC_TAB MODE ‘N’ UPDATE ‘S’

MESSAGES INTO TAB_MESS.

IF SY-SUBRC NE 0.

WRITE: / Tab_MESS-TCODE, Tab_MESS-DYNUMB, Tab_MESS-MSGTYP ,

Tab_MESS-MSGID.

ENDIF.

/community [original link is broken]

<b>Reward if usefull</b>