Retaining the URL and changing the web template
Scenario:At times certain web templates get corrupt, any new changes done to them cannot be saved and the only way out of this situation is to either create a new web template or to create a copy of this web template and totally discard the original web template. The problem with the new web template is that a new web template or a copy web template will have a new name and a new URL. Supposing the web template requiring change is a landing page of the portal from where you could launch different reports then changing the URL needs to be followed up with communicating the new URL to all the users, which can be a huge inconvenience as the users are already used to running the BW reports from a bookmarked link. And as human nature resists changes there may be series of disappointments that a BW team will have to face. This post is an attempt to have a copy of the non working web template being created without changing the URL, so that the user will never have to change his way of report accessing.
Example: A portal which holds the URLs to different reports requires a cosmetic change, but the web template refuses to accept the change and throws up an error message “The technical name of the object TMPL WEB_LANDING_PAGE is not valid”.
Even the changes cannot be performed using the program RS_TEMPLATE_MAINTAIN.
Clicking on change and Save buttons throw up the below mentioned error:
The message points towards a transport problem, whereas a BEx transport has already been created. This error exists even after the web template has been added to the transport.
The execution works here just the way it works on the web:
The URL which the users use to access the page is as displayed below and an understanding of the different segments of the URL is important:
Upon executing the URL in web browser we receive the below web page, which is the landing page from where we can choose the required link which takes us further to another page with reports.
Step 1: Save the web template with a new name using SAVE AS option:
Here I have saved the web template as WEB_LANDING_PAGE_2.
Step 2: Delete the corrupt web template:
Run the same URL again to confirm the deletion:
Step 3: Now we have to create a new template so that the same URL fetches us the report output.
Open the web template which was copied earlier i.e,. WEB_LANDING_PAGE_2, carry out the required changes, which were not possible previously and save as a copy with the original template name, which was deleted previously i.e, ‘WEB_LANDING_PAGE’.
Run the original URL again:
Key in the login credentials and hit log on, the landing page will be displayed in the browser just the way it used to be but with the new changes done:
The same link can now be used to get the changed web template. From the different segments of the URL we understood that the only way a web template is referenced by a particular URL is by mentioning the WEB TEMPLATE ID, so in such scenarios if we make sure to have the same web template ID for the new web template then the old URL will access the new webtemplate.