cancel
Showing results for 
Search instead for 
Did you mean: 

need SAP PI/PO mapping logic to display target field as empty if source element/tag not present

former_member197830
Participant
0 Kudos

Hi All,

I got one mapping issue in run-time i.e. some times my source tag is not present in payload at that time I want display target tag as empty value and I have used below mapping logic's but it doesn't workout.

I have implemented below logic but those are working in test mapping level but while run the hole scenario below logic's are not working.

logic 1:

logic 2:

The above two logic's are not working and can one help me how achieve this issue.

Thank you,

Narasaiah T

Accepted Solutions (0)

Answers (7)

Answers (7)

tdjnarvaez
Discoverer
0 Kudos

Hello Narasaiah,

I had the same problem, I try to used mapWithdefault, however, some fields are skipped, Could you share me your soluction? thank you.

nabendu_sen
Active Contributor
0 Kudos

Are you getting <field/> instead of <field></field>?

Regards,

Nabendu.

Harish
Active Contributor
0 Kudos

Hi Narasaiah,

Your logic 1 should work if S_BAT is present in the source. Could you please provide the mapping logic and display queue of E1IDLB2?

regards,

Harish

former_member197830
Participant
0 Kudos

Hi Vishnu,

S_BAT node is coming but D_127 element is not present sometimes in sender payload.

Thank you,

Narasaiah T

vishnu_pallamreddy
Contributor
0 Kudos

Hi Nara,

D_127 node is S_BAT. can you check whether the S_BAT is coming or not while running whole scenario.

like that check the node of S_BAT also if any?

Thanks & Regards,

Vishnu

former_member197830
Participant
0 Kudos

Hi Harish,

It's is working at mapping test tab level .

Harish
Active Contributor
0 Kudos

Hi,

When do you say the logic works only in test mapping then does it test with display queue or test with test tab in mapping? If the mapping is working in test tab then issue most likely to be in the cache.

If the problem is with test tab then check the mapping at node level, the value must be suppressed at node level.

regards,

Harish