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

Push button

Former Member
0 Likes
348

I have a req i need a pushbutton name abc when the user clicks it shud allow to validate ...after it passes all validation the name shud change to xyz.

pls help me on dis...

Moderator message: please do more research before posting, do not use SMS speak

Message was edited by: Thomas Zloch

1 REPLY 1
Read only

reachdebopriya
Active Participant
0 Likes
319

Hi Kaushik,

You can change the text on a pushbutton dynamically. To do this, you must have set the Output field attribute in the Screen Painter to active, and created a global field with the same name in your ABAP program. Because the Screen Painter field and the program field have the same name, any changes to the field contents will be immediately visible on the screen (similarly to input/output fields).

You can write similar code in ur PBO.

button = 'ABC'.

if v_click eq 'X'.

loop at screen.

if screen-name eq 'BUTTON'.

g_button1 = 'XYZ'.

clear v_click.

endif.

modify screen.

endloop.

endif.

Check the below link also if needed....

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba9a635c111d1829f0000e829fbfe/content.htm

Regards,

Debopriya Ghosh