Dynamic text for a pushbutton on the application tool bar
I would like to create two push buttons on the application tool bar but want the texts to be determined through my program logic ...
Is it possible ? If yes. Kindly help me .
Vijay Dudla replied
Yes it is possible.
v_fieldname = 'TESTBUTTON'.
call screen 100.
module STATUS_0100 output.
SET PF-STATUS 'ZTEST'.
endmodule. " STATUS_0100 OUTPUT
While setting the pf-status, i added the button in the application toolbar, there it ask for text , i will use the option Dynamic, Instead of Static which is default option, then it ask for the fieldname , you mention the fieldname which is there in Program. Conditionally populate the field.