Skip to Content
author's profile photo Former Member
Former Member

How to remove NULL values from PI Message mapping

Hi! PI Guru's

I have been facing a problem of NULL Values being inserted when I get values back from RFC Look up Function Module.

When my RFC look up come backs with multiple look up (Designed RFC Function Module to pass multiple entries and return multiple enteries based on the link below)

I referred Shabarish Blog and designed the mapping accordingly.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2010/01/28/graphical-rfc-lookup-and-how-you-can-design-lookups-for-multiple-values-to-be-retrieved-in-a-single-call

However, the RFC is returning a set of NULL values between every result set - hence the mapping is insert BLANK values for alternate sets of look up values.

Is there any way I can remove these set of BLANKS result set so that the mapping does not map blank values and RFC values get returned correctly.

Not sure, if there is anything I can do in the RFC Function Module - so that these blanks dont appear at all in the first place whenever the RFC look up returns result set.

It will be of great help if you can let me know if can handle this in the PI mapping - by REMOVING the NULL values using node functions in PI mapping itself.

Your helps is greatly apprecaited!!

Thank you,

Ritu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 28, 2013 at 06:35 AM

    Hi,

    try like this. Consider input is returned in the rfc output.

    input→ equals → not→if without else → Output

    Constant[] →


    Give input to if without function to be passed to output.


    If you get suppress in the output use the remove context node function.

    Regards

    Muniyappan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 28, 2013 at 03:29 AM

    Hi Ritu,

    did you try RemoveContext Node function?

    Regards ,

    Muniyappan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Muniyappan

      I did try RemoveContext and also tried RemoveContext along with SplitByValue & CollapseContext - BUT none of it worked ... please let me know if you have any other options ...

      Thanks,

      Ritu

  • Posted on Dec 28, 2013 at 04:06 AM

    Hi Ritu,

    Please can you post the exact message which you are receiving and the desired output you want.

    Regards

    Anupam

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.