Skip to Content
avatar image
Former Member

Location for Global variables in SAP XI?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 02, 2007 at 03:31 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 02, 2007 at 04:24 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

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