cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc Segment - Context Handling.

Former Member
0 Kudos

Hi All,

Can anyone suggest me a solution as how to handle the below idoc context problem.. its a file to idoc scenario

I have an Debmas idoc, in which It is possible for a customer to have more than one E1KNBKM segment, so we only want to map the first segment for that customer and then also we only want the information from the /GLB/XGT_EXTRA_17 segments that are child segments of E1KNBKM.

-Anu

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

You can use the Index function in statistics group.

Check if the Index is 1, then only map the source with the target.

Regards,

Ravi Kanth Talagana

Former Member
0 Kudos

Hi Ravi..

Thanks for the quick reply!!!

Can u please elaborate with an example...

-Anu

former_member200962
Active Contributor
0 Kudos

What Ravi suggested was:

SourceNode --> Index -->
                            --> equalS --> ifWithoutElse (Then SourceNode) --> TargetNode
Constant(1) -->

Index is similar to Count function (just that it is more reliabel when counting multiple node occurences)...the above will check if the occurence of SourceNode isthe first or not.

Regards,

Abhishek.

Former Member
0 Kudos

Yes.. got it..

i thank every one of u for the valuable help!!

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

check this out:

http://www.sappress.com/product_basic.cfm?account=&product=H3059

chapter: IDoc Message Mappings

Regards,

Michal Krawczyk