Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 06, 2006 at 08:50 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 06, 2006 at 08:00 AM

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

    AT SELECTION-SCREEN OUTPUT

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Feb 06, 2006 at 08:26 AM

    Hi,

    maybe with SET TITLEBAR f.

    Rgd

    Frédéric

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 06, 2006 at 08:48 AM

    Hi Suryakiran,

    Try changing sy-title in INITIALIZATION event.

    Thanks

    Lakshman

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 06, 2006 at 09:38 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded