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

changing Frame Title at runtime

Former Member
0 Likes
1,527

Hi Experts,

Does anybody know how to change the Frame title of Selection screen block at runtime ?

Regards,

V Joshi

1 ACCEPTED SOLUTION
Read only

former_member182670
Contributor
0 Likes
1,029

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

2 REPLIES 2
Read only

former_member182670
Contributor
0 Likes
1,030

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

Read only

Former Member
0 Likes
1,029

Hi Tomek Mackowski ,

That trick solved my problem.Thanks a lot !

Regards,

V Joshi