‎2009 Apr 21 7:48 PM
Hi ,
I have a Frame on my screen, depending on the different button clicks the text description of the frame should change to make the data displayed on the frame more meaningful.
Can anyone of you please help me in achieving this.
Regards,
Aruna
‎2009 Apr 21 7:51 PM
Hi Aruna,
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE w_title. "w_title is frame's title
SELECTION-SCREEN END OF BLOCK 1.
at selection-screen output.
if p_r1 = 'X'.
w_title = "hello world'.
elseif p_r2 = 'X'.
w_title = "hello india'.
endif.
Regards,
Prabhudas
‎2009 Apr 21 7:57 PM
Hi ,
The frame which am using is in the Module pool programming.
Regards,
Aruna
‎2009 Apr 21 8:04 PM
In report..
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE w_title.
PARAMETERS: p_r1 RADIOBUTTON GROUP rapt default 'X' user-command abc,
p_r2 RADIOBUTTON GROUP rapt.
SELECTION-SCREEN END OF BLOCK 1.
AT SELECTION-SCREEN OUTPUT.
IF p_r1 = 'X'.
w_title = ' hello world'.
ELSEIF p_r2 = 'X'.
w_title = ' hello india'.
ENDIF.
In Module pool Pgm..
first assign some Function code to the radio buttons ...
Keep frame title empty in module poll....
PROCESS BEFORE OUTPUT.
* Module screen GUI-Screen&Status and Screen Logic
MODULE status_1020.
MODULE status_1020 OUTPUT.
CASE ok_code.
WHEN 'Radio1'.
FRAME1020 = "hello world'.
WHEN 'Radio2' .
FRAME1020 = "hello India'.
ENDCASE.
ENDMODULE. " STATUS_1020 OUTPUT
regards,
Prabhudas