You can easily get the terminal ID(or computer name) using CL_GUI_FRONTEND_SERVICES=>GET_COMPUTER_NAME( ).
* determine own Terminal-Id
call 'ThUsrInfo' id 'OPCODE' field opcode_usr_attr
id 'TERMINAL' field terminal.
Kernel calls should be used only when there are no alternatives available! Please take a moment to think before you post your solution.
BR,
Suhas