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: 

RFC_HOST_TO_IP not working in ECC

Former Member
0 Kudos
260

Hi,

The RFC_HOST_TO_IP was working in SAP 4.7 but after upgrade to ECC6.0 EHP4 it is going into dump.

Error analysis:

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.

Thanks!

1 ACCEPTED SOLUTION

Former Member
0 Kudos
108

Hello

Try function module NI_NAME_TO_ADDR

2 REPLIES 2

Former Member
0 Kudos
109

Hello

Try function module NI_NAME_TO_ADDR

0 Kudos
108

Thanks Piotr!

I already found the same FM after digging into subroutine of RFC_HOST_TO_IP.

Regards,

Sarvesh