2008 Mar 19 7:34 PM
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.
yes..
it will take the successive child segments in segment2 and segment3.
Try debugging it.. you will get a better understanding.
G@urav
2008 Mar 19 7:58 PM
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.
2008 Mar 19 8:10 PM
Gaurav, You mean If first segment has 2 nested segments then these child segments will be considered 2nd and 3rd segments in case statements.
2008 Mar 19 8:13 PM
yes..
it will take the successive child segments in segment2 and segment3.
Try debugging it.. you will get a better understanding.
G@urav
2008 Mar 19 8:30 PM
2008 Mar 19 8:36 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |