‎2012 Dec 18 3:38 AM
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
‎2012 Dec 18 4:35 AM
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