2017 Aug 04 7:22 AM
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
2017 Aug 04 8:02 AM
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.
2017 Aug 04 9:35 AM
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?
2017 Aug 04 10:28 AM
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.