on 03-18-2013 3:15 PM
Hello,
I've the follow IDOC
E1EDP01 0..9999
POSEX 0..1
E1EDP20
ZSD_E1EDP20 0..9999
Reparto 0..1
I need created the statment1 for each Reparto.
Example:
E1EDP01
POSEX = 10
E1EDP20
ZSD_E1EDP20
Reparto = 1
ZSD_E1EDP20
Reparto = 2
E1EDP01
POSEX = 20
E1EDP20
ZSD_E1EDP20
Reparto = 1
ZSD_E1EDP20
Reparto = 2
In this case, in target, it must be created four node statament1
The mapping is:
ZSD_E1EDP20 (context: E1EDP01) -> Statment1
It's create only two statment1:
1) Posex 10
Reparto 1
2) Posex 20
Reparto 2
I've testing differents options, but i fail
Any Idea?
Regards,
Silvia
Hi Silivia,
Since you changed the context of ZSD_E1EDP20 as E1EDP01 this is resulting into tow statement1, it is working correct since there are only two ZSD_E1EDP20 under each E1EDP01.
In order to create 4 statements, you need to change the context of ZSD_E1EDP20 to the parent of the node E1EDP01(Two level up).
Regards,
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if I do what you say, I have a problem with a field posdoc:
E1EDP01 statment1
POSEX tablename
... action
table
access
posdoc
The mapping is
POSEX -> posdoc
and the error is:
Cannot produce target element /ns0:MT_TRAS/STATEMENT1[3]/TABLENAME/ACCESS/POSDOC. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
Siliva,
As per the requirment, i believe each of the POSEX value would be repeated in two statements ?
Since in above example, POSEX is coming two times in whole payload & you have four statements in output. So i m assuming the first POSEX will be there in Statement[0] & Statement[1].
POSEX second value will be part of Statement[2] & Statement[3]
Am I correct?
Regards,
Ashish
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.