Application Development and Automation 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: 
Read only

about class and usage

Former Member
0 Likes
527

hi,

i want to know the class cl_gui_frontend_services=>get_computer_name ..

plz help me

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
507
3 REPLIES 3
Read only

Former Member
0 Likes
508
Read only

Former Member
0 Likes
507

hi,

plz check this

Read only

Former Member
0 Likes
507

It Give the Frontend Operating System Computer Name.

data: compname type STRING.

cl_gui_frontend_services=>get_computer_name(
  CHANGING
    computer_name        = compname
  EXCEPTIONS
    CNTL_ERROR           = 1
    ERROR_NO_GUI         = 2
    NOT_SUPPORTED_BY_GUI = 3
       ).
IF sy-subrc <> 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.