cancel
Showing results for 
Search instead for 
Did you mean: 

Change URL in a Web Dynpro Application

Former Member
0 Kudos

Hello Together,

it is possible to change the URL of a Web Dynpro App. ?

I have to change there sth but i don't know how.

Regards Chris

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear Chris,

U want to change the Message server in the URL dynamically with the client ur executing?

Regards,

Raghuram.

Former Member
0 Kudos

Dear Chris,

Can u please elaborate your requirement?

Regards,

Raghuram

Edited by: kr.raghuram on Sep 23, 2010 9:55 AM

Former Member
0 Kudos

Hello,

so i have the URL like this in my Web Dynpro Application.

https://<MS-Name>.com:4453/sap/bc/webdynpro/sap/zs2ssaplogwebapp

so i Have to change the Message-Server Name of the URL in my Web Dynpro application.

I have read that the URL is beeing automatically generated from the SAP system.

But i would like to change this Message-Server name.

Regards Chris

Madhu2004
Active Contributor
0 Kudos

HI,

Message server name appearing in the web dynpro application is that of what is configured in SM51 host name.

Web dynpro URL takes this hostname as message server name .

To chnage this take the help of BASIS.

Regards,

Madhu

Former Member
0 Kudos

Yes this should be like you say.

But in TA SM51 is another Message-Server like in my Applikation URL.

But the applikation works, even with the other MS, fine.

And now i want to change this MS.

Regars Chris

Madhu2004
Active Contributor
0 Kudos

Hi,

Do you want to change the message server name thriugh coding then use the below code.

Store the message server name in a customizing table.

use the below code to replace the MS name:

DATA    lv_temp_str TYPE char255.
  DATA    lv_split1 TYPE char255.
  DATA    lv_split2 TYPE char255.
 DATA :  lv_string TYPE string,
          lv_application TYPE string.
 DATA    lv_dns_str TYPE /mrss/t_rm_dns_str.

CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = lv_application " webdynpro application name
    IMPORTING
      out_absolute_url = lv_string."url of the application.

lv_dns_str = message server name form the customizing table

 lv_temp_str = lv_string.

  SPLIT lv_temp_str AT '//' INTO lv_split1 lv_split2.
  CLEAR lv_split1.
  lv_temp_str = lv_split2.
  SPLIT lv_temp_str AT '.' INTO lv_split1 lv_split2.
  lv_temp_str = lv_split1.

  REPLACE lv_temp_str IN lv_string WITH lv_dns_str.

Regards,

MAdhu

Former Member
0 Kudos

No i don't want to change the URL during Runtime. I want to change it in the Administration Data (SE80 -> after creating a Application). Is this somehow possible?

I don't know how to explain, i cannot upload here an image to show.

Madhu2004
Active Contributor
0 Kudos

HI,

You cannot change the URL generated in SE80 manually

It can only be changed only if the MS configured in SM51 is changed.

regards,

madhu

Former Member
0 Kudos

My problem:

In SM51 the Message-Server has got the name:

rb3nf71

In my Application he takes another Messageserver:

rb3ddsm6

So how can that be and how can i change this in the URL?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

It is the instance profile parameter icm/host_name_full that is controlling this value in the generated URL. Check the configuration for this parameter.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/3c5d3df7e771b9e10000000a421937/frameset.htm

ChrisPaine
Active Contributor
0 Kudos

Sorry Chris - what do you mean change the URL?

could you give a bit of an example?

Thanks,

Chris