cancel
Showing results for 
Search instead for 
Did you mean: 

Get the Machine name on which web ui url is running

sumits
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear experts,

Business Scenario : " To get the machine name on which crm web ui is running and save it in BSPWD component local variable"

we need to read the machine name on which url is running.

Have you done any thing similar for BSPWD component ,Please comment.

Regards

Sumit

View Entire Topic
former_member214667
Contributor
0 Kudos

Hi Sumit,

The view controller class has a public attribute called server ( Type Ref to IF_HTTP_SERVER). Using this, you can call the following method to get the host location:

runtime->get_location( )

One of the exporting parameters of this method is HOST.

You can check the following method to see how this method can be called:

CL_BSP_RUNTIME=>IF_BSP_RUNTIME~CONSTRUCT_BSP_URL( )

Regards,

Shiromani

sumits
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear Shiromani,

Thank you for the answer .But the utility mentioned by you is returning host detail while my requirement is to get the

enduser terminal name /computer name .

Regards

Sumit

robert_kunstelj
Active Contributor
0 Kudos

Hi.

I have the same requirement. Can you please tell me, how did you solve this?

Best regards, Robert

sumits
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Robert ,

You have write a small javascript function that reads the local machine name and post the same to server as cookie or form parameters . Then on CRM side you have to read the cookie / form parameters and save that local variable and this is basic concept we can achieve this .

Let me know if you need more help here .

Regards

Sumit

robert_kunstelj
Active Contributor
0 Kudos

Great idea. It works just fine.

Thank you.