Skip to Content

SAP PI - How can I access graphical variables dynamically?

Hello everybody,

is it possible to access graphical variables dynamically?

Example: I created 3 graphical variables named
Content_POS_0001
Content_POS_0002
Content_POS_0003.

Now I would like to take the POS number from the source message and access the corresponding variable to get the right information. Is this possible?

Thanks in advance,

Christian

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 09 at 11:07 AM

    Instead of graphical variables, create a UDF to store the values in an array or a vector, so you can access them dynamically later.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 29 at 09:07 AM

    I am sure if I have understood the issue correctly.

    Why can't you use <if>?

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 11:33 AM

    Thanks Stefan!

    Add comment
    10|10000 characters needed characters exceeded