cancel
Showing results for 
Search instead for 
Did you mean: 

How to change text of a radio button in an enhancement of SAP delivered WD

Former Member
0 Kudos

I am trying to change the text of a radio button in the Create Expense Report - Review view. I tried binding the text to a context attribute and setting the context attribute in a Post-Exit of WDDOModify. When I save and activate it looks like it saved the mapping but it doesn't. The text is not changed in the WD /iView and when I go back to SE80 and open the view the mapping is gone.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

most probably radio buton would be using a OTR text

go to transaction SOTR_EDIT enter the Alias name(search for it) used to denote the text change it there instead of changing the code.

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you all for the replies. Murugesh's solution was the simplest so I tried that and it worked.

ChrisPaine
Active Contributor
0 Kudos

Have you thought of using a configuration of the application?

You'd not need to do any enhancement in this case.

have a look at Thomas's eLearning

[Web Dynpro ABAP Application Configuration|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/af5e19e7-0b01-0010-37af-bc816f9a240c]

yesrajkumar
Active Participant
0 Kudos

Hi,

Use the following code in the WDDOMODIFYVIEW,

data lr_radiobutton type ref to cl_wd_radiobutton.

lr_radiobutton ?= view->get_element( 'SAVE' ).

lr_radiobutton->set_text( 'ABAP WEBDYNPRO' ).

Regards,

Rajkumar.S