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: 

Reg: IDoc Process for Shipment

Former Member
0 Kudos

Hi All,

For EDI Outbound process i am using the exit EXIT_SAPLV56K_002 to populate

the new Extended IDoc type for SHIPMNT01.

The problem is when i am appending the records into the IDOC internal table in exit..and process IDoc, all segments are displayed in Same level in we02. There are no subnodes

When i doesn't append, the the segments are displayed in heirarcy manner

in we02. with subnodes

So, i need to display Segments in heirarchy Manner with sub nodes as basic Idoc type in WE30.

ASAP.............

Regards,

Hemanth......

8 REPLIES 8

former_member194669
Active Contributor
0 Kudos

Hi,

I think the segemnt is not getting appended at its correct position in the hierarchy level of the idoc. What you need to make sure is that the edidd internal table contains the segment name field(segnam) in the correct order.

May be this will help you

aRs

Points are always welcome

0 Kudos

Hi,

I am populating in the same order as BASIC Idoc type.

0 Kudos

Hello Keerthipati,

You should put condition as below like :

case int_edidd-segnam.

when 'E1EDP01' . Assumption that your segments under this segment

loop at int_edidd.

append your data to ur segment. this will come automatically under expected segment.

endloop.

Thanks

Seshu

0 Kudos

Hi,

I am populating as per the IDoc type heirarchy and i know when its in the order

it should display as per the IDoc type heirarchy, But its not displaying in WE02.

0 Kudos

Your hiearchy is wrong.

If you see same idoc in WE19, your appended segment should looks seperate, that means you are passing in wrong hiearchy.

When appending make sure you are passing correct index.

Thanks,

Narayan

Clemenss
Active Contributor
0 Kudos

Hi keerthipati,

when you append (or insert??) new segments into IDOC internal table, you should make sure, that all administrative fields are filled:

SEGNUM (number of segment) is a sequential number for every segment and

DOCNUM IDoc Number

SEGNUM Number of SAP segment

SEGNAM Segment type

PSGNUM Number of the hierarchically higher SAP segment

HLEVEL Hierarchy level

Set PSGNUM as the segment number of the segment in hierarchy directly above. Look at an existing IDOC in SE16 to see the admin data. Compare this to the view you get in WE02 (or other) and set the correct HLEVEL.

This will help.

Regards,

Clemens

Former Member
0 Kudos

Hi,

Thanks for the Help, I already did it and populated in the same heirarchy as it exists..

I have resolved the Issue. Issue was, The extended IDoc was not attached to the

Message type.

Edited by: keerthipati hemanth on Jun 3, 2009 5:21 PM

Edited by: keerthipati hemanth on Jun 3, 2009 5:22 PM

Former Member
0 Kudos

Resolved myself.