cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

solved by global variable approach in UDF.

using init and variable and modifier feature in UDF.

former_member10771
Active Participant
0 Kudos

Hi Prabhat,

Can you please provide sample UDF as to how you achived this .

I am having similar requirement.

Former Member
0 Kudos

Hi ,

I want a UDF code for similar requirement ..how this can be achieved? Help me out regarding this.

Thanks

Answers (3)

Answers (3)

markangelo_dihiansan
Active Contributor
0 Kudos

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

iaki_vila
Active Contributor
0 Kudos

Hi Prabhat,

If you want to share data between mappings you would need to create static variables. Check Carlos Ivan's blog

Regards.

engswee
Active Contributor
0 Kudos

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