cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the Domain and Port of our server

vivekananthan_sellavel
Active Participant
0 Kudos

hi guru,

Is there any method to get the portal Domain and Port .

http://<domain>:<port>/irj/portal

http://<Domain><port>; /irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.bwc.Transaction?System=NIB_Aliase&SAP_TCode=se80

in our project we are hard coded the Domain and port .

if we transfer the application is some other server again we want to change.

So is there any solution for that.Please help me in this situation

Advance thank's

Regard's

Vivekanathan.S

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

[http://help.sap.com/saphelp_nw70/helpdata/en/67/be9442572e1231e10000000a1550b0/content.htm]

Refer this link...Hope it helps.

Regards,

Rohit

vivekananthan_sellavel
Active Participant
0 Kudos

hi Rohit,

Thank u for ur reply. But this link did not solved my problem.

https://www.sdn.sap.com/irj/scn/wiki?path=/display/ep/start%252ban%252bsap%252btransaction%252bfrom%...

i followed this Wiki . in our company we have N number of server . we can hard code port and domain for particullar server .when i try in some other server.again i want to change port and domain.so i want to get the port and domain in runtime. Can u help me in this scenario.

Regard's

Vivekananthan.S

vivekananthan_sellavel
Active Participant
0 Kudos

hi guru ,

please confirm weather it is possible or not ,

we holded the development. based on that we can proceed further

please help me .

Regarding,

Vivekananthan.S

Former Member
0 Kudos

Please use function module TH_GET_VIRT_HOST_DATA to get the data for hostname and port.

Regards

Rohit Chowdhary

vivekananthan_sellavel
Active Participant
0 Kudos

hi rohit,

Thank for reply . This Function module really use full.

But i want the portal Port and Domain.

This Function module will be help full

when Java stack and Abap stack is together. In scenario

portal is in different server and Abap stack is in different server.

Example: i will create the system for particullar Abap Stack server and i will use in the portal server.

Once again Thanx Rohit.

Thanks

Vivekananthan.S