09-09-2009 12:46 PM
Sir,
I have task through which I'm going to show created documents or master records on date basis. In that I'm showing
for example :- 1) material id 2) creation date or changing date 3) user and 4) TERNINAL i.e on which PC it was created
for that I'm using TERMINAL_ID_GET function module but I'm not getting results. Please, any one can explain me how to
use above function module or any other option if available..
Thanks
Manoj.
09-09-2009 12:50 PM
Hi Manoj,
try this.
data: ip_address(50).
call method cl_gui_frontend_services=>get_ip_address
receiving
ip_address = ip_address
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4
.
write:/ ip_address.
Refer above code.
Regards,
Vijay
09-09-2009 12:51 PM
09-09-2009 12:53 PM
Hi manoj,
See this link
https://wiki.sdn.sap.com/wiki/display/Snippets/IPAddressofasystem
hope this helps
Regards,
Vijay
09-09-2009 12:53 PM
Hi,
In FM 'TERMINAL_ID_GET' give username it will return terminal.
or
Try FM 'ISH_N2_GET_TERMINAL_ID'. Gives IP and Terminal
Thanks,
09-09-2009 1:44 PM
Execute the function module.
In the import parameter give the user id.
Execute.
It will give the terminal ID.
__Import Parameters_ Value_
USERNAME RAGHAVRA
Export Parameters Value
TERMINAL 10.4.35.65-wludej650457
Regards
Ramesh Sundaram
09-09-2009 1:51 PM
Those functions only return the teminal of a user who is currently logged on. You are trying to retrieve this for historical data, which I strongly believe is not really feasible. You would need to scan through statistical records which link terminal id and user name at the time of document creation.
Thomas
09-09-2009 3:01 PM
Hi Thomas,
I am really appreciate for your answer. However, You said, I have to scan through statistical records which link terminal id and user name at the time of document creation. So, can you suggested the tables where I will get this necessary information.
Thanks
Manoj.