on 2022 Apr 07 8:59 AM
Hi There,
I trying to map an ORDERS IDoc to EDI ANSI X12 850 and my message mapping is creating SUPPRESS and <null> values in the context. Specifically, i'm trying to map the IDoc segment E1EDPT1/E1EDPT2/TDLINE to L_PID (X12 850). The <null> values is causing the output L_PID not to be created as desired. I would have used RemoveContext and SplitByValue after the IfwithoutElse, but i don't want to destroy the context. In an attempt to remove the <null> values, i wrote a UDF but it didn't help. Attached are the screenshot of the problem.
This is the mapping:
These are the SUPPRESS values from the output of the IfwithoutElse
Here i'm trying to delete the SUPPRESS values and it produces the <null> values.
Here i'm trying to remove the <null> values with a UDF, but it still doesn't work.
Here's my UDF. Trust me i've google the internet for sample UDFs.
Regards,
Request clarification before answering.
Hi, I found a solution for the <null> value problem. Immediately after the IfwithoutElse, use the mapWithDefault and choose a default value like XYZ. As you can see from the Display Queue of the mapWithDefault, all the SUPPRESS values have been replaced with XYZ. After the mapWithDefault, implement your UDF to filter out the default value XYZ as shown below. The Display Queue of the UDF shows the <null> values have all disappeared.
Here's the UDF code:
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 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
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.