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

Missing segments in IDOC

Former Member
0 Likes
3,432

Hi experts

i am facing issue with the idocs

when i process i doc through we19 and see its segments there are some Z segments which do now appear over there.....

E.G take an idoc number open it in we19 now you can see segments over there so my issue is i can see some z segments but not all over here can any one tell us the dolution that at wat point are segments attached to idoc and its an outbound one.

How can we debug it and find out the exact cause.

the missing segment contains fields which have the contact person data in it and i check that the contact person is maintained ofr that delivery but segment is not appearing.Segment name is Z1CNTCT

5 REPLIES 5
Read only

Former Member
0 Likes
1,638

As your segment is a custom segment, the code to insert the segment should be in some user exit/BADI in processing function module. You will have to first find the function module which processes the message type, and then look for user exits/BADI triggered by the FM. Maybe a trace might help finding that.

Read only

0 Likes
1,638

i know where the segment is being added but the issue is as its outbound one i am not able to debug it .

I have set a breakpoint where segment has to be added but its not getting triggered.

Read only

0 Likes
1,638

Well that depends on how your idoc is triggered. Which message type are you talking about? If your idoc is getting triggered using output types then there is a different way of debugging it.

Read only

0 Likes
1,638

Which version of SAP system are you working in?

If it is ECC 6.0, you can make use of External Break Points and then stop there...and then check what exactly is happening....

Got it?

Read only

0 Likes
1,638

Hi Sunny,

Put 'external breakpoint' at place where custom segment is getting populated (make sure to put breakpoint at a place outside conditions like IF )

Goto we19.

Give your IDOC no. (give an idoc in which custom segment appears)

Press execute.

Then you will see the IDOC segments and data.

Enter /h in command window (to activate debugging )

Then press "Outbound" button

It will take you to debugging mode.

From debugging menubar, select 'update debugging ' and click 'save' (to save breakpoints)..

Then press F8.

Now it will stop at desired place.

Regards,

Nisha Vengal.