cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the text on a label for a SAP delivered WD view

GreggHinkle
Participant
0 Kudos

Hi,

I need to change the text that is being displayed for a label in a SAP delivered WD ABAP View. When I look at the properties for this label, the Text property is currently empty, so I assume that the text that is being displayed in the view is coming from the dictionary. I was hoping to change the text of the label via the Enhancement Framework. I created an OTR entry, then went into SE80 for the WD Component, I navigated to the view in question, I pressed the Enhance button and entered $OTR:<package>/<alias name> in the text property for the label. Finally I saved and activated and was prompted to create an Enhancement Implementation, which I did and I selected it. Everything seems to be fine (no errors or warnings). I then ran the WD application. My change was not there. I then went back into SE80 for the WD Component that I created the enhancement. I navigated to the View and looked in the text property of the label and saw that my change was not there. I repeated this process several times and each time when I added the OTR entry to the text property of the label, it saves and activates without issue (in enhancement mode), but when I run the WD App the change does not show up and when I go back to the WD View, my change to the text property is gone. I know that if I really wanted to I could register the object and add the OTR entry to the text attribute of the label, but I am trying to perform this change using a modification free enhancement. Can this be done via an Enhancement, or do I have to register the object and make my change using a modification?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The other option for Modification free enhancement could be to change the data element text using transaction CMOD -> GOTO -> Text Enhancements -> Keywords ->Change. Enter the data element for which you want to change the text.

The only drawback of this approach is that changed description will be applicable in entire system.

Regards

Rohit Chowdhary

Former Member
0 Kudos

hi Rohit,

Are you able change Text of Button or any Property via Enhancement ?

I am also struck in same thing as Gregg is.

If so , plz share .

Thanks in Advance.

Saurav.

daniel_humberg
Contributor
0 Kudos

Hi Gregg,

excellent question. I had the same problem as well before.

What I have learned is that you cannot change a UI Element via Enhancements.

You can add new UI Elements (e.g. new label) or remove existing elements, but you cannot change them (except the layout properties (e.g. colspan) maybe).

The only possibilities I see is

1. Remove the existing label, and add a new label with your desired text

2. Do it as a modification

3. Do it as a configuration (This means you go to the webdynpro application in SE80, right click and select "Create/Change Configuration)

4. Do it as customizing (This means you add the URL parameter sap-config-mode=X to the URL, navigate to the label, right click on it, and select "Change Settings for Current Configuration").

The disadvatages of 3) and 4) are

- texts in configurations and customizing are not translatable (as far as I know)

- if you have multiple configurations, you have to change the label multiple times

Hope this helps a bit,

Daniel