on 09-26-2017 12:09 PM
Hi All,
Can you please help me with the Mapping for below requirement.
Idoc has multiple E1EDP01 segments
I have to take the E1EDPT2 TDLINE and split the values as
Value1 -> Target1
Value2 -> Target2
Value3 -> Target3
Hi,
Can you try this one? There are three UDFs, two splitters and one for joining
split 1
split 2 has three result values
join UDF
Here's the mapping
E1EDP01 --> Header
TEDIOptionList_Details, concat is using pipe "|" as its delimiter
context of TDLINE set to E1EDPT1
Mapping for OptionName_, Choice_ and ChoiceCode_
TDLINE and TDID context same as the two previous mappings.
Test:
Regards,
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.
Hi Raghu,
Thanks for the quick update. I would need to generate the details as per the number of E1EDPT2 segments.
Target Strurcture
E1EDP01 --> Header
EiEDP01-EIEDPT2-TDLINE -> Details->Field1 - Field2 - Field 3.
Multiple E1EDPT2 should generate equal number of Details under each header.
Can you check this and help me with this.
Hello Sendhil,
Just map E1EDPT1 to details and try,You should change the context to E1EDP01.
If you can provide the sample XML and target XSD I shall try once.
For Root node may be you can try a simple UDF like below.
String out="test";
if(var1.equals("Z005"))
{
out="";
}
return out;
This will create details for only when E1EDPT2 TDline equals Z005.
Thanks Raghu.
I tried some thing different on this. I followed Sunil's Blog and played around the target structure.
Message Mapping : Play around with target structure
and this worked.
Ignore the split at "$" that was to split the different TDLines as per my logic
Really appreciate your quick help on this. I did try your solution and I was stuck around sending the split values to different fields. Thanks 🙂
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.