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: 

Status 51 and Segment number

Former Member
0 Kudos

When IDOC_INPUT_ORDERS returns STATUS 51, Application Error, you would like to know which segment (hundreds of them)caused the error. WE05 shows only status text. Does someone know how to solve this e.g. as a report.

8 REPLIES 8

Former Member
0 Kudos

When you look at the status of the IDOC in WE02 it should explain the error happened. or you can look at EDIDS table.

Regards,

Ravi

Note : Please mark all the helpful answers

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

Click on the IDOC and select the error segments from the edit menu 'segments with errors'.

in this way you can find the error segments.

Regards

Appana

Former Member
0 Kudos

Hey,

To identify the segments in error the inbound processing application has to update the SEGNUM and SEGFLD fields in the IDOC_STATUS structure.

May be these fields are not updated by the function IDOC_INPUT_ORDERS. If these fields were updated the segments with errors would be displayed in RED in WE02/WE05.

-Kiran

Former Member
0 Kudos

Hi,

I feel that you need the information that IDoc has caused the error. Just click on status 51 and go to menu status record-> Error long text. This will detail information why this document is not posted.

Rgds,

Dinu..

0 Kudos

Thank you all four for your rapid answers.

But still I do not know how to make the inbound processing application to update the SEGNUM or should VA01 be simulated or is there some smarter solution.

Yours Rainer

0 Kudos

Hey,

See if you can make use of the user exit EXIT_SAPLVEDA_010 to poulate the SEGNUM field . This exit is called in the function IDOC_INPUT_ORDERS.

-Kiran

0 Kudos

In your IDOC Processing program wherever the status of the IDOC being updated, you need to update the SEGNUM.

Search where either a call is being made IDOCSTATUSUPDATE function or search for EDIDS structure in the processing program.

You need to change the program there.

Regards,

Ravi

Note : Please mark all the helpful answers

0 Kudos

Hi,

After the error has been rectified , go to BD87 transaction code , click on the error IDoc which is already created and click on process button on the application toolbar.

If your problem is not sloved , give me more details on it