cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate to "CALL 'C_SAPGPARAM'"

Former Member
0 Kudos

Hi All,

To determine the SAP server name, I have been using the statement "CALL 'C_SAPGPARAM'". But I have just learnt that from Release 6.2 onwards these CALL statements must not be used and should be replaced by Kernal Methods.

Can anyone guide me how to use Kernel Methods to find out the SAP server name?

Thanks and Regards,

Vidya.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

DATA: w_server_name LIKE MSXXLIST-NAME.

CALL 'C_SAPGPARAM'

ID 'NAME' FIELD 'rdisp/myname' ID 'VALUE'

FIELD w_server_name.

deidre_logan
Participant
0 Kudos

There are a series of Function Modules in SAP that you can use.

TH_GET_ACTIVE_SERVER will show the server you are currently logged on to

TH_GET_VIRT_SERVER show virtual server

TH_SERVER_LIST will show the list of servers for the System

I hope this helps...