cancel
Showing results for 
Search instead for 
Did you mean: 

How to changethe text of a pageheader that exists in thestandard component?

Former Member
0 Kudos

Hi All,

I am developing a webdynpro component which is using a standard component.

I need to change the text of a PAGEHEADER which is in the view of a standard component.How to do that?

Regards,

Lakshmi.

Edited by: Lakshmi Atukury on Jul 1, 2008 11:07 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Lakshmi,

Create a enhancement for the standard component by pressing ctrl+f4.

then go to wddomodifyview and create a postexit (scroll to the right of the wddomodifyview and you will find postexit.just click that and it will open the code editor for the postexit)

write the below code in the postexit of the wddomodifyview

if first_time eq abap_true.

data lr_detail_group_header type ref to CL_WD_PAGE_HEADER.

data display_name_txt type string.

lr_detail_group_header ?= view->get_element( 'TEST' ). where TEST is the ID of the pageheader

display_name_txt = 'Employee Data'.

lr_detail_group_header->SET_TITLE( display_name_txt ).

endif.

Answers (3)

Answers (3)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

If the link provided does not solve your problem then please post the complete error message.

Sorry wrong thread - too many tabs open. Please ignore.

Edited by: Thomas Jung on Jul 1, 2008 9:38 AM

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Although you can use the Enhancement Framework as suggested, for something as simple as changing the text on a page header you probably can just use Component Configuration:

[http://help.sap.com/saphelp_nw70/helpdata/EN/47/5e9442d644ce6ae10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/47/5e9442d644ce6ae10000000a155106/frameset.htm]

Former Member
0 Kudos

Hello,

You can use enhancements to do it. Take a look on this: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70d4cef8-b7ed-2a10-66a3-c3a95715c8f1].

Regards.