Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Changing lebel name on the push button dynamically

Former Member
0 Likes
905

Hi Experts,

How to change push button lables dynamically in screen.

req:I have one push button say with lable "insert".

in runtime i have to change this pushbutton with lable "Modify".

depend un the requirement.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
828

Hi sdnhelp,

If you set the Output field attribute for a pushbutton, you can set its text dynamically in the ABAP program. To do this, you must create a field in the ABAP program with the same name as the pushbutton. You must then assign the required text to the field before the screen is displayed which is done in the PBO.

Regards,

Ram.

Hi Experts,

How to change push button lables dynamically in screen.

req:I have one push button say with lable "insert".

in runtime i have to change this pushbutton with lable "Modify".

depend un the requirement.

Thanks

4 REPLIES 4
Read only

Former Member
0 Likes
828

use icon_create fm to solve your issue

Read only

Former Member
0 Likes
829

Hi sdnhelp,

If you set the Output field attribute for a pushbutton, you can set its text dynamically in the ABAP program. To do this, you must create a field in the ABAP program with the same name as the pushbutton. You must then assign the required text to the field before the screen is displayed which is done in the PBO.

Regards,

Ram.

Read only

0 Likes
828

Hi

Yes , the logic given by Ram is rite and make ur field declaration under TOP include

Read only

Former Member
0 Likes
828

Hello,

Please go through the below link.

[http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba9a635c111d1829f0000e829fbfe/content.htm]

Hope this will really pull you out of your problem.

best of luck,

Cheers,

Suvi