Skip to Content

Function Library - Modularisation

Hi SDNites,

I have a requirement where same functionality can be used at multiple places in UDF. Is there any way I can create a common function and call it in UDF multiple times. For ex. we use split function from JAVA library to meet a certain requirement. Can I build something like that and use it in UDF?

Regards,

Abhi

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2015 at 09:32 PM

    yes you can create UDF's under Function libraries and include the same in any mapping.

    PI 7.1 Function Library - Part I : Creating & Migrating

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 22, 2015 at 04:16 AM

    Hello Abhishek,

    As Ram suggested use Function library which can used across the mappings.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 22, 2015 at 06:08 AM

    HI Abhisek,

    AFAIK unfortunately the function libraries only can be used in the same software component that they are defined. If you want across all the PI SWCs is not possible and you would need to copy them.

    Also, you can reuse the mappings with the mapping templates http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50171256-1ee2-2a10-3f84-ddecf098f724?overridelayout=t…

    Regards.

    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.