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

Dynamic text for a pushbutton on the application tool bar

kinnera_christinatenali
Product and Topic Expert
Product and Topic Expert
0 Likes
659

Hi,

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 .

Regards,

christina.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
579

Yes it is possible.

data: v_fieldname(10).

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.

Hi,

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 .

Regards,

christina.

2 REPLIES 2
Read only

Former Member
0 Likes
580

Yes it is possible.

data: v_fieldname(10).

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.

Read only

franois_henrotte
Active Contributor