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: 

how to capture the error messages from incorrect session?

former_member206396
Active Participant
0 Kudos

Hi SDNs.,

i am using BDC Session method to update transaction FB01. So my job runs daily. here i want to capture the error messages and i want to send it to mail. Can i capture the unprocessed records???

i think FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b> used for sending mail? but how to capture mes or records?

or Is there any other way to Do it???

Thankning you.,

Ram

2 REPLIES 2

former_member181962
Active Contributor
0 Kudos

Hi Ramakrishna,

Once you create the session, Process the session using

the report RSBDCSUB using submit statement.

It would list out the erroneous records.

Hence, while submitting, just say submit RSBDCSUB in background and export output list to memory.,

Then you can retrieve the list from memory using the FM LIST_FROM_MEMORY into the internal table and finally send the email by the fm you have already mentioned.

Regards,

Ravi

Former Member
0 Kudos

as it is BDC session u need to go to SM35 and capture the error messages for the job.

there is a program <b>RSBDC_ANALYSE</b> wherein u need to specify the queue-id in the selection screen. from SM35 u can capture the queue-id for a session and after specfying the same in the report, it generates a list thru which u can capture the error data accordingly and use it.