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

Nested Segment in Inbound IDoc.

Former Member
0 Likes
1,041

I have created all required settings for Inbound Idoc and then I created one function module to process it. When I have simple 2 or 3 segment, I use

case idoc_data-segnam

when 'segname1'

when 'segname2'

endcase.

If I have nested segment in 'segname1' then how to use the case syntax?. Please write some sample.

I have created all required settings for Inbound Idoc and then I created one function module to process it. When I have simple 2 or 3 segment, I use

case idoc_data-segnam

when 'segname1'

when 'segname2'

endcase.

If I have nested segment in 'segname1' then how to use the case syntax?. Please write some sample.

5 REPLIES 5
Read only

Former Member
0 Likes
876

You can continue using the same case statement.

case idoc_data-segnam

when 'segname1'

when 'segname2'

endcase.

idoc_data-segnam will capture the segment name irrespective to the segment hierarchy.

G@urav.

Read only

0 Likes
876

Gaurav, You mean If first segment has 2 nested segments then these child segments will be considered 2nd and 3rd segments in case statements.

Read only

0 Likes
876

yes..

it will take the successive child segments in segment2 and segment3.

Try debugging it.. you will get a better understanding.

G@urav

Read only

0 Likes
876

Ok........Thank you very much.

Read only

0 Likes
876

You are welcome.

However, I was expecting points

G@urav.