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 handling for inbound function module

Former Member
0 Likes
2,092

Dear all,

I have written my custom function module for matmas idoc extention.In the begining of function module i have used IDOC_INPUT_MATMAS01 and then have coded my BDC.For handling errors in caese BDC fails i am filling table idoc_status. wih status 51.

But this gives eror as-

Status records with status 51 after status 53

Message no. B1357

Diagnosis

The application function module controlling the ALE inbound processing has passed several status records to ALE. The status of the last of these was '51'. Before this, a status of '53' was passed.

Procedure

If you have written the application function module yourself, you need to change the program.

Can anybody guide me how to get the exact application errors in Application log.

Thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,141

Hi,

You are using BDC after the FM 'IDOC_INPUT_MATMAS01'. Right??.... The problem is, The function Module IDOC_INPUT_MATMAS01 itself posts the material and set the status '53' i.e. document posted. You can not have any error status '51' after that.

I don't understand the need of BDC in spite of the FM 'IDOC_INPUT_MATMAS01'. But if whatever the reason, you still want to use the BDC and set the status to 51, After the FM 'IDOC_INPUT_MATMAS01' call, Delete status table where status = '53'. and then proceed for the BDC...

3 REPLIES 3
Read only

Former Member
0 Likes
1,141

For handling errors in caese BDC fails i am filling table idoc_status. wih status 51.

while filling the IDOC_STATUS, change all status records STATUS code to 53 if you are filling it with your own 51.

Read only

Former Member
0 Likes
1,142

Hi,

You are using BDC after the FM 'IDOC_INPUT_MATMAS01'. Right??.... The problem is, The function Module IDOC_INPUT_MATMAS01 itself posts the material and set the status '53' i.e. document posted. You can not have any error status '51' after that.

I don't understand the need of BDC in spite of the FM 'IDOC_INPUT_MATMAS01'. But if whatever the reason, you still want to use the BDC and set the status to 51, After the FM 'IDOC_INPUT_MATMAS01' call, Delete status table where status = '53'. and then proceed for the BDC...

Read only

0 Likes
1,141

Too accurate answer Audumbar..

Thanks for reply.

Edited by: sanjivrd on Oct 4, 2009 10:16 AM