Application Development 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: 

I.P address of the server

Former Member
0 Kudos

Hi All,

Is there any way by which i can know the I.P address of the server on which my program is running.

waiting for reply.

Thanks and Regards.

1 ACCEPTED SOLUTION

kiran_k8
Active Contributor
0 Kudos

Ashish,

In the SAP Logon box just select on the Dev/Qual and click on the change item to see the IP address of that particular server.Is that what you are looking for?

K.Kiran.

11 REPLIES 11

kiran_k8
Active Contributor
0 Kudos

Ashish,

In the SAP Logon box just select on the Dev/Qual and click on the change item to see the IP address of that particular server.Is that what you are looking for?

K.Kiran.

Former Member
0 Kudos

Hi,

on desktop

START----->run >cmd>type ipconfig>Enter

you will get the IP address..

If you want programatically

DATA terminal LIKE usr41-terminal.

CALL FUNCTION 'TERMINAL_ID_GET'

EXPORTING

username = sy-unamegf

IMPORTING

terminal = terminal.

WRITE:/ 'Terminal:',terminal.

Psl. reward if useful...

Former Member
0 Kudos
REPORT zipaddr

  DATA: BEGIN OF KINFOSTRUC,
          RSYN_FILE(40) TYPE C,
          IP_ADDRESS(15) TYPE C,
          KERNEL_RELEASE(3) TYPE C,
          DATABASE_LIBRARY(16) TYPE C,
          DATABASE_DBSLVERS(16) TYPE C,
          KERNEL_COMPILATION(45) TYPE C,
          KERNEL_PATCH_LEVEL(5) TYPE C,
          SUPPORTED_SAP_VERS(40) TYPE C,
          SUPPORTED_DATABASE(40) TYPE C,
          VALID_OP_SYSTEM(50) TYPE C,
          OP_SYSTEM_RELEASE(25) TYPE C,
          ABAP_LOAD(5) TYPE C,
          CUA_LOAD(3) TYPE C,
          KERNEL_KIND(6) TYPE C,
        END OF KINFOSTRUC.
 DATA: BEGIN OF KERNEL_VERSION OCCURS 0,
           KEY(21) TYPE C,
           DATA(69) TYPE C,
        END OF KERNEL_VERSION.

 CLEAR KINFOSTRUC.
  CALL 'SAPCORE' ID 'ID' FIELD 'VERSION'
               ID 'TABLE' FIELD KERNEL_VERSION-*SYS*.

  READ TABLE KERNEL_VERSION INDEX 11.
write :/1 KERNEL_VERSION-key, 25 KERNEL_VERSION-data.

Rgds

Vijay

Former Member
0 Kudos

Hi

Use t.code SM04. It will all the user logged on to the server with their list of user names. Which transaction codes they are working actively.System number on the network which they are working on.

Hope this helps.

Reward points if is useful

Thanks & Regards

Ganesh

Former Member
0 Kudos

Use FM : SLDAG_GET_ALL_SERVER_IDS

Former Member
0 Kudos

Go to SAP LOGON,

CLICK ON CHANGE ITEM,THERE YOU CAN GET THE IP ADDRESS

0 Kudos

Hi all thnx a lot for ur replies

but i want to know the I.P of the application server not the presentation server and through my abap program.

0 Kudos

thnx a lot buddies..

got the answer.

Edited by: ashish pandey on Mar 24, 2008 11:56 AM

0 Kudos

solved.

0 Kudos

plz specify,, By wat and which method u got the answer??

0 Kudos

Try using the FM TH_SERVER_LIST.

The FM TH_SERVER_LIST will give you the list of all the application servers that you see in SM51 transaction.

The HOSTADDR_V4_STR / HOSTADDR_V6_STR field returned thru the tables LIST_IPV6 will give you the IP address of the application server.

Hope this helps.

Thanks,

Balaji