The RFC_HOST_TO_IP was working in SAP 4.7 but after upgrade to ECC6.0 EHP4 it is going into dump.
A RAISE statement in the program "SAPLCRFC" raised the exception condition "HOST_TO_IP_CONVERSION_ERROR".
I tried another FM as mentioned below but it gives the Ip of my local machine.
CALL METHOD cl_gui_frontend_services=>get_ip_address RECEIVING ip_address = ip_add EXCEPTIONS cntl_error = 1 error_no_gui = 2 not_supported_by_gui = 3 OTHERS = 4.
Your help is appriciated.