cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can't Get Computer Name from POC_GET_COMPUTER_NAME

0 Likes
225

Hi everyone,

I use the function POC_GET_COMPUTER_NAME to get the computer name.

 CALL FUNCTION 'POC_GET_COMPUTER_NAME'
    IMPORTING
      ex_computer_name = compname
    EXCEPTIONS
      gui_error        = 1
      OTHERS           = 2.
  IF sy-subrc <> 0.
    MESSAGE 'Errore lettura hostname' TYPE 'I' RAISING err_hostname.
  ENDIF. 

This doesn't work though if I use an internet service. I am stuck on this screen.

When I press enter to go beyond the variable it is not valued.

Can someone help me?

Ty so much.

Accepted Solutions (0)

Answers (1)

Answers (1)

cris_hansen
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello,

Have you tried to use cl_gui_frontend_services=>get_computer_name directly?

The FM you mentioned is not released for customers, so should be avoided.

Regards,
Cris