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

Retrieve System IP Address

Former Member
0 Likes
1,019

Hi,

I have a requirement where in I have to fetch the machine IP address details from SAP. is there any tables or FM which can give us the details?

Thanks,

Jagath

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
798

Hi,

I need the user IP address details..

Thanks,

Jagath

Hi,

I have a requirement where in I have to fetch the machine IP address details from SAP. is there any tables or FM which can give us the details?

Thanks,

Jagath

4 REPLIES 4
Read only

Former Member
0 Likes
798

Hi,

Do you like get IP Address of SAP Server or user IP Address?

Regards,

Sathish

Read only

Former Member
0 Likes
799

Hi,

I need the user IP address details..

Thanks,

Jagath

Read only

0 Likes
798

Jagath,

Check the below code:

REPORT ysample60 .

DATA : o_alvgrid TYPE REF TO cl_gui_frontend_services.

DATA: ip_address TYPE char50.

CALL METHOD cl_gui_frontend_services=>get_ip_address

RECEIVING

ip_address = ip_address

EXCEPTIONS

cntl_error = 1

error_no_gui = 2

not_supported_by_gui = 3

OTHERS = 4.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

IF NOT ip_address IS INITIAL.

write i_address.

ENDIF.

Read only

Former Member
0 Likes
798

Hi,

<b>ARFC_GET_TID</b>. This will give the IP address

Regards

Sudheer