Page 1 of 1

Find application server

PostPosted: Thu Dec 14, 2017 4:22 am
by sapmanie
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!

Re: Find application server

PostPosted: Thu Dec 14, 2017 8:22 am
by Gothmog
Try CL_ABAP_SYST=>GET_INSTANCE_NAME( ).

Re: Find application server

PostPosted: Thu Dec 14, 2017 10:57 am
by sapmanie
Who da man?
You da man!

Thanks Gothmog! :)