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 selection screen block title

thw
Explorer
0 Likes
5,129

Hello experts,

I want to make a selection-screen reusable, so I created an include for that.

Furthermore it is possible to set the texts for the parameters and select-options dynamically.

But I can't find a possibility to set the title for a selection screen block dynamically. For example in that code, I want to set that for text-001.


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001

*... Parameters and Select-Options ...

SELECTION-SCREEN END OF BLOCK b1.

Thank you in advance

Thomas

1 ACCEPTED SOLUTION
Read only

former_member302911
Active Participant
0 Likes
2,596

Hi Thomas,

you can set the frame title of Selection-Screen Block in INITIALIZATION statement

Example:


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text.

  PARAMETER par TYPE char1.

SELECTION-SCREEN END OF BLOCK b1.

*

INITIALIZATION.

*

text = 'DynamicText'.

Regards,

Angelo.

Hi Thomas,

you can set the frame title of Selection-Screen Block in INITIALIZATION statement

Example:


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text.

  PARAMETER par TYPE char1.

SELECTION-SCREEN END OF BLOCK b1.

*

INITIALIZATION.

*

text = 'DynamicText'.

Regards,

Angelo.

4 REPLIES 4
Read only

former_member302911
Active Participant
0 Likes
2,597

Hi Thomas,

you can set the frame title of Selection-Screen Block in INITIALIZATION statement

Example:


SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text.

  PARAMETER par TYPE char1.

SELECTION-SCREEN END OF BLOCK b1.

*

INITIALIZATION.

*

text = 'DynamicText'.

Regards,

Angelo.

Read only

anubhab
Active Participant
0 Likes
2,596

Hi Thomas,

     If I understood your question, are you looking for INITIALIZATION event on condition basis?

Regards,

Anubhab

Read only

Former Member
0 Likes
2,596

Hi ,

Pls try this scenario.

Selection screen begin of block b1 with frame title a1.

parameter par type char1.

selection screen end of block b1.

perform selection_screen.

form selection screen.

a1 = 'Dynamic Test'.

end form.

So in this part u can include some text for selection screen in future too.

Read only

thw
Explorer
0 Likes
2,596

Many thanks for your help! It worked