cancel
Showing results for 
Search instead for 
Did you mean: 

Location for Global variables in SAP XI?

Former Member
0 Kudos

Hello ,

Is there any way where i could store some variables behaving like global variables in XI?

I need to have some parameters like file path etc to be accessed from all the places.

But right now I have to hard code it in my Java Class.

Is there any location in XI , where i can store these variables so that i can access them from all the locations also from my JAVA Class.

Thanks

Meghana

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you want to access the file name or file path, you can check ( or activate) <b>adapter specific message attribute</b> of your sender file adapte and then you can access these values in your UDF.

You do not need to hard code it.

Regards

Pushkar

Message was edited by:

Pushkar Anand

Former Member
0 Kudos

Have solved the problem by using the Value Mapping in the Integration Directory using XIVMService.executeMapping() method.

Former Member
0 Kudos

Meghana,

When you said from all places...do you means to say in same Message Mapping but in different UDF?

You can do that...you can declare Variable in Message Mapping. In message mapping there is button called "Edit Java Sections" where you declare a variable.

Also you do not need to store a file name in variable, you can diretly read input file name..

Let me know if you need more details.

Nilesh