Application Development 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: 

Changing a Checkbox-Label in a Dynpro

Hello,

I am looking for a solution for my Problem for a long time. Now I hope you can help me.

Is there a possibility to Change the Label of an Dynpro-Checkbox at the PBO Event? Maybe in the Loop at Screen .

I hope you can help me.

Greetings,

Pascal

3 REPLIES 3

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

I'm afraid, you cannot change the labels of dynpro elements using MODIFY SCREEN.

As a workaround, suppress it (empty text in screen painter) and place output fields referring to global program variables behind the checkbox that can be filled at PBO.

0 Kudos

This solution I had already thought, but the department would like to activate the checkfield also when clicking the text.

Is this possible with your solution?

horst_keller
Product and Topic Expert
Product and Topic Expert

Yeah, you can connect a text field to a check box.

It works for selection screens with the addition FOR FIELD

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS para AS CHECKBOX.
SELECTION-SCREEN COMMENT ...(...) ... FOR FIELD para.

So it should work for general dynpros too. I'm too busy to check, but you can create a small selection screen like this and look with screen painter into its properties. There you should find the setting.