Получить IP адрес по заданному RFC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
DATA(lv_ip) = CONV rfcdisplay-rfchost( '<none>' ). CALL FUNCTION 'RFC_HOST_TO_IP' EXPORTING rfchost = CONV rfcdisplay-rfchost( sy-host ) IMPORTING rfcip = lv_ip EXCEPTIONS host_to_ip_conversion_error = 1 OTHERS = 2. IF sy-subrc = 0. WRITE: / |Host: { sy-host } ({ lv_ip })|. ENDIF. |