cancel
Showing results for 
Search instead for 
Did you mean: 

Access system variable from UDF

Former Member
0 Kudos

Hi,

I need to obtain the system variable SY-SID from within a user defined function.

Is there any way I can do this?

Regards

Shiladitya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI,

aslo see the below link

System Id -

Regards

Chilla

Former Member
0 Kudos

>>I need to obtain the system variable SY-SID from within a user defined function.

Do you mean the SID of XI server? But why would you need that?

Can you brief your requirement here. Coz I beleive you wont need this.

Regards,

Jai Shankar

Former Member
0 Kudos

Hi,

I need to populate the IDoc control lookup. for that I need the SID of XI server.

Since there are different environments, like development, regression etc. all with different SIDs hence i need to access it from a UDF instead of hard coding it.

Regards

Shiladitya

Former Member
0 Kudos

Hi,

Use the use.name in UDF to get the SY-ID.

see code here but chang the user.name and get the first three chars

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

Regards

Chilla

Former Member
0 Kudos

Hi,

can you please provide a small example?

Regards

Shiladitya

Former Member
0 Kudos

Hi,

see the below examples

Regards

Chilla