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: 

Custom IDocs:Unable to get the error segment

Former Member
0 Kudos

Sap Guru's,

I have created custom idoc. 1. Need help to get error segments at WE05. i.e. When we click on SEGMENT WITH ERRORS push button, Then error segment will show in DATA RECORDS. But for me its not happening.

2. Am not getting expandable option for status code 51, PFB screen for the same.

So please help me to achieve this.

Thank u in advance.

shabs

1 ACCEPTED SOLUTION

prakashjasti
Contributor
0 Kudos

Hi,

Please check if you have passed  the errors correctly from the FM.

Check the append of EDIDS.

Regards,

Prakash.

Prakash J
3 REPLIES 3

prakashjasti
Contributor
0 Kudos

Hi,

Please check if you have passed  the errors correctly from the FM.

Check the append of EDIDS.

Regards,

Prakash.

Prakash J

0 Kudos

prakash,

Thanku for ur quick response.

I have passed like below:

<FS_STATUS>-DOCNUM = IDOC_CONTRL-DOCNUM.

         <FS_STATUS>-STATUS = '51'.

         <FS_STATUS>-MSGTY  = 'E'.

         <FS_STATUS>-MSGV1 = error message.

         <FS_STATUS>-SEGNUM = SEGNUM.

         APPEND <FS_STATUS> TO IDOC_STATUS[].

Now am able to get error record info but am not getting expand option for status code 51.

Help me on this.

Shabs

0 Kudos

In your current code please pass message number as well to for status .

else pass all required fields to status structure BDIDOCSTAT.