Application Development 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: 

How to konw ternial id

Former Member
0 Kudos

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.

7 REPLIES 7

Former Member
0 Kudos

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

awin_prabhu
Active Contributor
0 Kudos

Hi,

Try FM 'ISH_N2_GET_TERMINAL_ID'. Gives IP and Terminal

Thanks,

Former Member
0 Kudos

Hi manoj,

See this link

https://wiki.sdn.sap.com/wiki/display/Snippets/IPAddressofasystem

hope this helps

Regards,

Vijay

awin_prabhu
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

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

ThomasZloch
Active Contributor
0 Kudos

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

0 Kudos

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.