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

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • Oct 22, 2015 at 04:16 AM

    Hello Abhishek,

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

    Add comment
    10|10000 characters needed characters exceeded

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