Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to get sysnr value in a Function Module

Former Member
0 Likes
3,344

Hi all,

I need to get the sysnr(system number) value of the R/3 system. I execute a RFC function module and need to get the value of sysnr of the system it executes in as a return parameter. Can somebody tell me how to get this value in the function module and return it.

Thanks and Regards,

Pratik

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,712

Check below FM....

GET_SYSTEM_NUMBER

RFC_GET_SYSTEM_INFO

SAPTUNE_GET_SYSTEM_NUMBER

6 REPLIES 6
Read only

Former Member
0 Likes
1,712

RFC_GET_SYSTEM_INFO

Pass the destination name and get the system id in the parameter:

RFCSI_EXPORT-RFCSYSID

Regards,

Ravi

Message was edited by:

Ravi Kanth Talagana

Read only

Former Member
0 Likes
1,712

Hi Ravi,

Thanks for your answer but I want the system number(sysnr) and not the SYSID. Can you please let me know some way to get the sysnr(2 digit number of R/3 system).

Best Regards,

Pratik

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,712

Hello Pratik

The system number has to be defined in the RFC destination. Thus, select on your local system (where you call the RFC function module) the corresponding RFC destination from table <b>RFCDES</b>. In field RFCDES-RFCOPTIONS you will find a string like this:

H=<ip address>,S=21,R=N, ...

S=system number

Regards

Uwe

Read only

Former Member
0 Likes
1,712

did u check FM GET_SYSTEM_NUMBER?

Read only

Former Member
0 Likes
1,712

Abhijit is spot on.

You can also use: SAPTUNE_GET_SYSTEM_NUMBER

REgards,

Ravi

Read only

Former Member
0 Likes
1,713

Check below FM....

GET_SYSTEM_NUMBER

RFC_GET_SYSTEM_INFO

SAPTUNE_GET_SYSTEM_NUMBER