Skip to Content
avatar image
Former Member

UDF : Global Container : Multidimensional Array value setter and getter ??

Hi ,

My requirement is to store (Set ) following values in Global Container and Later use it other mappings.

Gender, GEN01, M

Gender, GEN02, F

Country, CON01, INDIA

Country, CON02, CHINA

Later I will extract (Get ) above values from Global Container

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 15, 2014 at 06:38 PM

    solved by global variable approach in UDF.

    using init and variable and modifier feature in UDF.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11, 2014 at 09:13 AM

    Hi Prabhat,

    If you want to share data between mappings you would need to create static variables. Check Carlos Ivan's blog Sharing data between message mapping in PI 7.1

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11, 2014 at 09:05 AM

    Hi Prabhat

    Values stored in Global container can only be accessed within the same message mapping and not in other mappings. Please refer to the following description in the online documentation.

    This object enables you to cache the values that you want to read again when you next call any user-defined function in the same message mapping.


    GlobalContainer Object - Enterprise Services Repository - SAP Library


    Rgds

    Eng Swee

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11, 2014 at 09:32 AM

    Hi,

    My requirement is to store (Set ) following values in Global Container and Later use it other mappings.

    Gender, GEN01, M

    Gender, GEN02, F

    Country, CON01, INDIA

    Country, CON02, CHINA

    You should use dynamic configuration, it will be available in all of the mappings in an operation mapping. Although you won't be able to test it using test tab.

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded