Skip to Content

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Mar 06, 2017 at 12:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 06, 2017 at 02:55 AM

    Hi Harish,

    It's is working at mapping test tab level .

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 06, 2017 at 11:36 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 06, 2017 at 12:04 PM

    Hi Vishnu,

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

    Thank you,

    Narasaiah T

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 06, 2017 at 11:02 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 07, 2017 at 12:14 AM

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

    Regards,

    Nabendu.

    Add comment
    10|10000 characters needed characters exceeded