cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping error

Former Member
0 Kudos

I have an IDoc to File scenario.

Idoc structure is like this

Idoc

EDI_DC40

Segment One

       Field A

       Field B

       Field C

       Field D

       Field E

       Field F

       Segment Two

             Field X

             Field Y

             Field Z

Now I have to send two fields in Target File which are not there in Idoc. Field GG and HH. The condition is like this.

For GG, if fields D, E and F in Idoc do not comes in the payload of it they come with an empty value,  GG should be there at Target with a blank value or if any of the fields come with a value we need to send constant R.

For HH, if fields in F and Field Z do not comes in the payload of it they come with an empty value,  GG should be there at Target with a blank value or if any of the fields come with a value we need to send constant R.

How do I achieve it?

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi Midhun,

For GG

D--> Map with Default blank --> Equals Blank

AND

E--> Map with Default blank --> Equals Blank

AND

F--> Map with Default blank --> Equals Blank

input to IF then map Blank constant to Target

Else Map R to target (in else part)

For HH

F--> Map with Default blank --> Equals Blank

AND

Z (Context to parent node)--> Map with Default blank --> Equals Blank

input to IF then map Blank constant to Target

Else Map R to target (in else part)

regards,

Harish

Answers (0)