How do I get the name of the app server in an application

I am trying to run two app servers of one database. My problem is that I am trying to insert a link in a report that would link to another report by passing parameters through the URL which works fine if you stay on one server.
If I request the link from http://portal1/servlet..... when the app is being served from http://portal2/servlet... server. How do tell the app that I am on portal2 and the the URL for the next page should be http://<the name of the server used>/servlet....
The ideal is if the app servers LSNR_TOKEN or SITE_ID could be returned on request from a package.
Thanks,

Use the following function to get the corresponding server name
wwctx_api.get_host
and you can concatenate this with other values to form your required URL.
(eg: l_url := 'http://'||wwctx_api.get_host||'/pls/portal30/...')
Hope this helps!
-Krishnamurthy

Similar Messages

Maybe you are looking for

  • How to use standard DIFF pricing condition in pricing procedure

    In  my pricing procedure there is total amount value including Tax & I want to apply DIFF (Rounding Off) condition on that total but I don't know how It apply ? please provide me solution. thank you .

  • Drag and drop several files

    Hi, I'm using iPhoto '11 (version 9.4.2) and when I try to drag and drop several files into a folder, it fails. Actually it just does nothing: the drag and drop icon is created with the accurate numbre of items in a red star, the folder blinks but wh

  • I don't want a pass code when I open my iPad. How can I get rid of it.  I entered one by mistake.

    I need help deleting pass code from my iPad. I entered one by mistake when I downloaded the latest software update. Thanks in advance

  • Extra message in purchase order

    Hi all, I implemented the BAPI to do an extra check in the creation of a purchase orders. Everything functions, only the display of my info-message not. Do I have to do something special to display it as a message ?

  • Family base set up wrong

    I added family base to my new account but the system shows my sons line as being a parent line and I am not able to change that in the system, so basically family base is useless to me. Not sure how to get this changed as I have tried everything in t