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

system id

Former Member
0 Likes
636

Dear All,

I need to know about the field name of system ID(ie.,Full computer name).......

Regards!

Micheal

Everything is Possible when we are working as unity..........

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
595

Hi

Use the class cl_gui_frontend_services. See all the other methods

DATA : system_ip TYPE string.

CALL METHOD cl_gui_frontend_services=>get_ip_address
  receiving
    ip_address           = system_ip
*  EXCEPTIONS
*    cntl_error           = 1
*    error_no_gui         = 2
*    not_supported_by_gui = 3
*    others               = 4
        .
IF sy-subrc EQ 0.

write system_ip.

ENDIF.

Regards

4 REPLIES 4
Read only

Former Member
0 Likes
595

This message was moderated.

Read only

Former Member
0 Likes
596

Hi

Use the class cl_gui_frontend_services. See all the other methods

DATA : system_ip TYPE string.

CALL METHOD cl_gui_frontend_services=>get_ip_address
  receiving
    ip_address           = system_ip
*  EXCEPTIONS
*    cntl_error           = 1
*    error_no_gui         = 2
*    not_supported_by_gui = 3
*    others               = 4
        .
IF sy-subrc EQ 0.

write system_ip.

ENDIF.

Regards

Read only

Former Member
0 Likes
595

Call FM GUI_GET_DESKTOP_INFO with Type = 1.

This will return the Full computer name you are working.

Regards

Karthik D

Read only

Former Member
0 Likes
595

Hi John

use system variable SY-SYSID.

This stores the sysytem id.

Thanks,

Krishna.