Skip to Content
0

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

Mar 05, 2017 at 01:24 PM

189

avatar image

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

mapping1.png (26.8 kB)
mapping2.png (11.7 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

6 Answers

avatar image
Former Member Mar 06, 2017 at 12:14 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
NARSAIAH THOTTEMPUDI Mar 06, 2017 at 02:55 AM
0

Hi Harish,

It's is working at mapping test tab level .

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 06, 2017 at 11:36 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
NARSAIAH THOTTEMPUDI Mar 06, 2017 at 12:04 PM
0

Hi Vishnu,

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

Thank you,

Narasaiah T

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 06, 2017 at 11:02 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 07, 2017 at 12:14 AM
0

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

Regards,

Nabendu.

Share
10 |10000 characters needed characters left characters exceeded