Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Changing the frame's title dynamically

Former Member
0 Likes
2,147

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,089

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

Read only

0 Likes
1,089

Hi ,

The frame which am using is in the Module pool programming.

Regards,

Aruna

Read only

0 Likes
1,089

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