cancel
Showing results for 
Search instead for 
Did you mean: 

Function Library - Modularisation

itabhishek9
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

iaki_vila
Active Contributor
0 Kudos

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-ddecf098f...

Regards.

engswee
Active Contributor
0 Kudos

Inaki

The function library can be seen/used by other SWCV if it's SWCV is defined as an underlying SWCV. This way you can put all common logic in one SWCV to be shared everywhere.

Rgds

Eng Swee

iaki_vila
Active Contributor
0 Kudos

Thanks Eng,

I would try to create SWCv as you said, i have had this problem before a i usually copied the FL

Regards.

former_member186851
Active Contributor
0 Kudos

Hello Abhishek,

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

Former Member
0 Kudos

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