Skip to Content
0
Feb 25, 2010 at 02:28 PM

Changing report Output Title

795 Views

Hi All,

i made an ALV report and getting output fine, but problem is that in my selection screen there are 4 radiobuttons and i need to change the ALV output title as per the radiobutton selection.

can anyone please help me?

i wrote the code like this but it is not working:

at selection-screen.

data : gv_title(80) type c.

if x_opsel = 'X'.

if r_ag1 = 'X'.

gv_title = text-t01.

  • sy-title = gv_title.

set titlebar 'ABC' with gv_title.

ELSEIF r_ag2 = 'X'.

gv_title = text-t02.

set titlebar 'TITLE' with gv_title.

ELSEIF r_ag3 = 'X'.

gv_title = text-t03.

set titlebar 'TITLE' with gv_title.

ELSEIF r_ag4 = 'X'.

gv_title = text-t04.

set titlebar 'TITLE' with gv_title.

endif.

endif.

regards.