This website is not affiliated with, sponsored by, or approved by SAP AG.

Find application server

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Find application server

Postby sapmanie » Thu Dec 14, 2017 4:22 am

Hi,
Is there a function/class to determine the executing server used by a background job? So the program needs to read what server it's running on.
Not sy-host or sy-sysid. This is the server that's visible in SM37 > list jobs > Change Layout... > Executing Server

Thks!
sapmanie
 
Posts: 483
Joined: Fri Jan 23, 2004 10:39 am

Re: Find application server

Postby Gothmog » Thu Dec 14, 2017 8:22 am

Try CL_ABAP_SYST=>GET_INSTANCE_NAME( ).
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1943
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Find application server

Postby sapmanie » Thu Dec 14, 2017 10:57 am

Who da man?
You da man!

Thanks Gothmog! :)
sapmanie
 
Posts: 483
Joined: Fri Jan 23, 2004 10:39 am


Return to ABAP

Who is online

Users browsing this forum: No registered users and 9 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.