REPORT ZEXAMPLE.

DATA: V_VALU(255) TYPE C,

INFOREQ TYPE I VALUE '-2'.

WHILE INFOREQ NE 13.

CALL FUNCTION 'GUI_GET_DESKTOP_INFO'

EXPORTING

TYPE = INFOREQ

CHANGING

RETURN = V_VALU.

CASE INFOREQ.

WHEN '-2'.

WRITE:/ 'SAP SYSTEM DIRECTORY:', V_VALU.

WHEN '1'.

WRITE:/ 'COMPUTER NAME:', V_VALU.

WHEN '2'.

WRITE:/ 'WINDOWS DIRECTORY:', V_VALU.

WHEN '3'.

WRITE:/ 'WINDOWS SYSTEM DIRECTORY:', V_VALU.

WHEN '4'.

WRITE:/ 'TEMPORARY DIRECTORY:', V_VALU.

WHEN '5'.

WRITE:/ 'WINDOWS USER NAME:', V_VALU.

WHEN '6'.

WRITE:/ 'WINDOWS OS:', V_VALU.

WHEN '7'.

WRITE:/ 'WINDOWS BUILD NUMBER:', V_VALU.

WHEN '8'.

WRITE:/ 'WINDOWS VERSION:', V_VALU.

WHEN '9'.

WRITE:/ 'SAP GUI PROGRAM NAME:', V_VALU.

WHEN '10'.

WRITE:/ 'SAP GUI PROGRAM PATH:', V_VALU.

WHEN '11'.

WRITE:/ 'SAP CURRENT DIRECTORY:', V_VALU.

WHEN '12'.

WRITE:/ 'DESKTOP DIRECTORY:', V_VALU.

ENDCASE.

INFOREQ = INFOREQ + 1.

ENDWHILE.