cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Title on the Selection Screen

Former Member
0 Kudos

Hi,

I have a program which has a radiobutton group.

For each radio button, I need to have the Title on the Selection Screen Populated dynamically.

I tried changing the Sy-Title to the corresponding value at "AT SELECTION-SCREEN OUTPUT". But htis doesn't reflect on the selection screen.

I beleive there should be a FM to refresh the sy values onto the screen.

Please suggest.

Thanks,

Suryakiran D.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi suryakiran,

1. Simple SY-TITLE won't work.

2. We EXPLICITLY need to use

SET TITLEBAR 'ABC' WITH mytitle.

3. Where Title bar is defined with

some title and &1 &2 paramters

4. Try this program.

copy paste in new program.

It has got radio buttons.

5. Double click on ABC (title bar)

and in Title write

&1 in it.

6. IN SE80

ACTIVATE THE WHOLE PROGRAM. THEN RUN.

7.

REPORT abc NO STANDARD PAGE HEADING.

DATA : mytitle(50) TYPE c.

PARAMETERS : a RADIOBUTTON GROUP g1 USER-COMMAND hh,

b RADIOBUTTON GROUP g1.

AT SELECTION-SCREEN OUTPUT.

IF a = 'X'.

mytitle = 'THIS IS A'.

ENDIF.

IF b = 'X'.

mytitle = 'THIS IS b'.

ENDIF.

SET TITLEBAR 'ABC' WITH mytitle.

Regards,

Amit m.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

PARAMETERS: P1 RADIOBUTTON GROUP RAD1 USER-COMMAND flag,

P2 RADIOBUTTON GROUP RAD1.

AT SELECTION-SCREEN OUTPUT.

IF P1 EQ 'X'.

SET TITLEBAR 'TIT' WITH 'ONE'.

ELSEIF P2 EQ 'X'.

SET TITLEBAR 'TIT' WITH 'TWO'.

ENDIF.

it will solve your problem man.

Lakshmant1
Active Contributor
0 Kudos

Hi Suryakiran,

Try changing sy-title in INITIALIZATION event.

Thanks

Lakshman

FredericGirod
Active Contributor
0 Kudos

Hi,

maybe with SET TITLEBAR f.

Rgd

Frédéric

hymavathi_oruganti
Active Contributor
0 Kudos

try changing sy-title in AT SELECTION-SCREEN, not at

AT SELECTION-SCREEN OUTPUT

Former Member
0 Kudos

Even the same logic at "AT SELECTION-SCREEN" doesn't help.

But,

I call the program through a transaction which sets the radiobutton. I do not do any action on the selection screen. In the Initial display itself, based on the radio button selected, the Title has to be dynamically populated.

Please suggest.

Thanks,

Suryakiran D.

athavanraja
Active Contributor
0 Kudos

AT selection-screen output . event

you need to use

set titlebar 'MAIN' with '<text for place holders>' .

Regards

Raja

athavanraja
Active Contributor
0 Kudos

at selection-screen output

type

set titlebar 'MAIN' with 'This is' 'Title'.

double click on MAIN and it will take you to create GUI title dialog.

where

in the title field enter "& my &"

now when you use statement set titlebar you can replace the & with your dynamic text.

Regards

Raja

abdul_hakim
Active Contributor
0 Kudos

Hi use the below code.

PARAMETERS: P1 RADIOBUTTON GROUP RAD1,

P2 RADIOBUTTON GROUP RAD1.

AT SELECTION-SCREEN OUTPUT.

IF P1 EQ 'X'.

SET TITLEBAR 'TIT' WITH 'ONE'.

ELSEIF P2 EQ 'X'.

SET TITLEBAR 'TIT' WITH 'TWO'.

ENDIF.

Note: double click on TIT and type for eg 'My title &1' and press 'all title' button and then save and activate.

Regards,

Abdul