on 12-18-2013 11:10 PM
Gurus,
I have an IDOC to XML interface, and these are the structures:
Source (IDOC sender)
Target (XML receiver)
For each E1EDP01, a "Concepto" segment must be created:
My issue is on "comentario" field, where my logic must be like this:
When I have more than one E1EDP01 with different E1EDPT2 with different values (including Y040) the data is not being populated correctly.
I tried playing with different context change for each file but doesn't seems to work.
Can anyone please tell me how can this be done? I am unable to solve it!
I am attaching an IDOC example (xml format), IDOC structure (xsd format) and also the target structure (xsd format) if required all as TXT attached. You can rename to .xsd if you need to import it anywhere.
Thanks in advanced!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks Javier but that doesn't seem to work neither.
Seems more complex than it is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Claudio,
Per TDID with Y040 value, if there are more than one E1EDPT2 segment, which value should be taken only one or all of it? If only one should be taken (e.g first line), then this logic would work
Output:
If all TDLINE values need to be taken and need to appear in only one comentario field per E1EDP01, then you need a UDF that will concat all of those values and output it as a single context. e.g
Output:
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.