on 08-01-2016 1:32 PM
Hi,
I have a mapping of multiple Idocs, which multiple segments to a webservice xml.
Since I got only the first value of field Quali in segment E1P0024 mapped to the FahrerQualifikationIDs I used removeContext function for the Quali field of segment E1P0024. Now are all values from all E1PLOGI Idocs transferred to the first Fahrer.
One E1PLOGI is representing one Fahrer. Each Quali values of one E1PLOGI have to be transferred as a string beneath FahrerQualifikationIDs.
How can I achieve this?
Thanks,
Michael
Hi Priyanka and Ryan,
thanks for the help so far. I could not succeed yet.
Hiere is a sample input file:
One E1PLOGI represents one person (Fahrer) in the output structure. As long as there is only 1 person (E1PLOGI) is in the message everything works fine. If there are multiple E1PLOGI in the message all qualifications from segment E1P0024 are assigned to the first person in outbound.
Here the mapping result:
My actual mapping for the strings in FahrerQualifikationIDs is:
I tried with several contexts, unsucessfully.
Any furter help is appreciated and will be rewarded. Attached the xml files.
Thanks Michael
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.
Hi Mike,
Use SplitByValue(EachValue) just before mapping for target field "string".
Your mapping logic-->SplitByEachValue-->string
---Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael,
Instead of SplitByValue try FormatByExample with the first parameter as the output of removeContext function and then use E1P0024 with the context set to IDOC as the second parameter. It looks like you would also have the option of mapping E1PITYP to FahrerQualifikationIDs and then pass the QUALI with context set to E1PITYP to the input of string without using removeContext.
Regards,
Ryan Crosby
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.