SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software SAP ABAP Programming and HANA Database Tutorials
Development resources, articles, tutorials, samples, codes and tools for .Net, SQL Server, Windows, Windows Phone, SAP and ABAP, like SAP UI5, Screen Personas, etc.

CRM Companies List
Web Based CRM Software

Set Page Title in Web Dynpro Application

To set page title in a Web Dynpro application, ABAP developers should set the description property of the Web Dynpro application which is created for the related interface view.

Web pages are formed using Windows in a Web Dynpro component. And a Web Dynpro window is served to web after a Web Dynpro application is created which is consuming that window as the interface view. So an application can be thought as a link between the Web Dynpro window and web page displayed on the browser.

In short to set web page properties like title meta tag, set the description field on the web dynpro application for that window. This tutorial shows how to set page title displayed on a web browser tab for a Web Dynpro application.

If ABAP developer does not explicitly set description for the Web Dynpro application which is the web page title for a window, the default displayed page title is the name of the Web Dynpro component itself.

set web page title for SAP Web Dynpro application

Let's first start by examining the SAP Web Dynpro component structure. To do so display the Web Dynpro component objects in a tree view display as follows.

SAP web dynpro objects for ABAP developer

Do not forget! Web pages are Windows in Web Dynpro and served by using Web Dynpro Applications.

Display the Web Dynpro Application by double-click on it on the object tree of the component.

On Properties tab, you will see three main properties of the application:
Description is used as the page title,
Component and Interface View determines which component window is served through this application.

Switch to Change mode. The Component is the current WebDynpro component so leave it unchanged. Press F4 or check possible entries for Interface View input text.

web dynpro application properties

ABAP programmers will see list of windows created as part of the Web Dynpro component where views and used components

If the selected Interface View is for your Window to set the web page title, edit the description text of the Web Dynpro application.

In short, to set web page title for a Web Dynpro component set WebDynpro application descriptions.

Here is the result after Web Dynpro application description is updated with a meaningful text where displayed on the web browser tab as the page title.

SAP Web Dynpro application page title on browser

If you experience problems you can delete the Web Dynpro application created in the component, and check if the service is deleted on the SICF transaction as well. Then you can re-create Web Dynpro Application with the desired description text for the web page title. After you do these steps, you can test SAP Web Dynpro component and see the web page title is updated.

There is title property of Web Dynpro component windows, but setting the title will not update the page title. As similar Window description property, component description or view property settings are useless when trying to set page title displayed on the web browser.

SAP Tutorials

SAP Tutorial

SAP Forums

SAP Tools

SAP Transaction Codes Table

Related Articles and Tutorials(http://www.kodyaz.com/sap-abap/set-page-title-in-web-dynpro-application.aspx)
Display Data on Web DynPro Table Element
Trigger ALV Events in Web Dynpro Component
Display Adobe Form in SAP Web Dynpro
How to Clear Web Dynpro Cache
Set Page Title in Web Dynpro Application
Web Dynpro Text Translation using Assistance Class
SAP Web Dynpro ALV Tutorial
Add Value Help to Web Dynpro Select Options
SAP Web Dynpro Service Cannot be Reached Error
Add Button to ALV Table Header on SAP Web Dynpro
Add Web Dynpro Applications to SAP Favorites Menu
Traffic Lights in SAP Web Dynpro ALV Table
Component Usage ALV Does Not Have an Active Component
Create Search Help in ABAP for Web Dynpro Component
Create Transaction Code for Web Dynpro Application
Display and Download Adobe Form as PDF File in SAP Web Dynpro
Find Web Dynpro Class Name to Search in ABAP Code
Web DynPro Tutorial - How to create Web Dynpro Application (Web Dynpro Component)
Test Web Dynpro ABAP Component by Creating Web Dynpro Application
Remove ALV Buttons on SAP Web Dynpro Component
Read Checkbox Value in Web Dynpro Editable ALV
SAP Web Dynpro File Upload using GOS cl_fitv_gos Class
Web Dynpro Component Service Syntax Error in Program /1BCWDY/O3EC1AX6A3OVKK9L5FXO==CP
Translate Web Dynpro Header Title displayed on Web Browser
Web DynPro Tutorial - Display Spool Requests using Web DynPro Table

Copyright © 2004 - 2018 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems