2006 Sep 28 9:31 AM
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
2006 Sep 28 9:36 AM
2006 Sep 28 9:33 AM
Hi,
Do you like get IP Address of SAP Server or user IP Address?
Regards,
Sathish
2006 Sep 28 9:36 AM
2006 Sep 28 9:49 AM
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.
2006 Sep 28 9:52 AM
Hi,
<b>ARFC_GET_TID</b>. This will give the IP address
Regards
Sudheer