Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic Title on the Selection Screen

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.

Tags:
Former Member
Former Member replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question