on 02-06-2006 7:51 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suryakiran,
Try changing sy-title in INITIALIZATION event.
Thanks
Lakshman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
maybe with SET TITLEBAR f.
Rgd
Frédéric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try changing sy-title in AT SELECTION-SCREEN, not at
AT SELECTION-SCREEN OUTPUT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.