‎2011 Jan 26 11:48 AM
Hi Experts,
Does anybody know how to change the Frame title of Selection screen block at runtime ?
Regards,
V Joshi
‎2011 Jan 26 12:07 PM
From keyword documentation:
You can specify the addition TITLE to define a title for a block with a frame. For the title, you can either specify a name of your choice with a maximum of 8 characters or the name of a text symbol from the program in the form text-idf, where idf is the three-character ID of the text symbol. If you specify a name of your choice, the runtime environment generates a global variable of the same name, belonging to type c with a length of 70. When the selection screen is displayed, the content of the text symbol or the global variables is positioned at the top left hand corner of the frame. If the specified text symbol is not found, the system does not create a title.
So
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE gv_title.
PARAMETERS: p1 TYPE abap_bool.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
gv_title = 'Foo'.should do the trick
‎2011 Jan 26 12:07 PM
From keyword documentation:
You can specify the addition TITLE to define a title for a block with a frame. For the title, you can either specify a name of your choice with a maximum of 8 characters or the name of a text symbol from the program in the form text-idf, where idf is the three-character ID of the text symbol. If you specify a name of your choice, the runtime environment generates a global variable of the same name, belonging to type c with a length of 70. When the selection screen is displayed, the content of the text symbol or the global variables is positioned at the top left hand corner of the frame. If the specified text symbol is not found, the system does not create a title.
So
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE gv_title.
PARAMETERS: p1 TYPE abap_bool.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
gv_title = 'Foo'.should do the trick
‎2011 Jan 26 12:36 PM
Hi Tomek Mackowski ,
That trick solved my problem.Thanks a lot !
Regards,
V Joshi