cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping

badugu_sarika
Participant
0 Kudos

Hi ,

I have to map one source field to a node in IDOC. If say source field is ZWHI and the target node in IDOC is EITXT10(which has many fields under this)

I value is coming in ZWHI then the IDOC node E1TXT10 should be populated otherwise if no value is coming in ZWHI the target should not be populated.

How can I achieve this in mapping.

Will mapwithDefault work for this.

Thanks

$arika

Accepted Solutions (1)

Accepted Solutions (1)

former_member213558
Active Participant
0 Kudos

if you use mapwithdefault  function, target segment E1TXT10  creates always. 

try as vikas suggested.

fyi.

use below 2 node function to generate the target node.

ZWHI  - Exist - CreatIf - E1TXT10 

badugu_sarika
Participant
0 Kudos

Hi Ramesh,

If I use as suggested by you .

ZWHI - Exists - CreateIf - E1TXT10

Still the target node is getting created if Source ZWHI is not having any value.

maheswarareddykonda
Active Contributor
0 Kudos

Hi,

Exists function works like if field comes (data either come or not) then give true value - so target field creating.

try like this

badugu_sarika
Participant
0 Kudos

Hi Mahesh,

Thankyou. It is working fine.

Regards

SARIKA

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sarika,

instead of using mapwithdefault as vikas sais you can use exists function to resolve your issue.

vicky20691
Active Contributor
0 Kudos

Hi Sarkia,

You should use exists function and then with a if statement map something to targe node.