Skip to Content
0
Former Member
Jun 10, 2009 at 10:59 AM

REUSE ALV - different layouts

1063 Views

Hi Gurus,

iam having an ALV report with an ALV display. Form this ALV on click of a button i will navigate to another ALV display.(both ALV's are called within the same program).

Now my problem is with Layout functionalities:

If a layout is saved in the first ALV, then if i go to second ALV and go for the Layout selection, all the layouts saved in the first ALV are coming in the second ALV.

If the user selects a layout of the first alv, obvoiusly, no data will be displayed in the second ALV.

So is there anywy i can go for fresh set of layout's for the two ALV's separately..

(as per my knowledge, the layouts are stored based on the Program name in the database, so if i go to layout option in both the ALV,s... so the common alv's are coming in both displays's.)

the above issue is causing problems to the user...

iam passing the below data for the ALV..

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = sy-repid

i_callback_pf_status_set = pfstatus

i_callback_user_command = c_usercomm1

i_callback_top_of_page = l_v_top

i_grid_title = text-064

is_layout = fp_wa_layout

it_fieldcat = fp_i_fieldcat1

i_default = c_x

i_save = 'A'

TABLES

t_outtab = fp_i_item1

EXCEPTIONS

program_error = 1

OTHERS = 1.

so can anyone of you give me a suggestion for different layouts for different ALV's.

one more point: in the selection screen... iam using

SELECTION-SCREEN ULINE.

which is displaying a black line between the select options.

Now can this color of the black line be changes to grey or white.

Also can a Line can be drawn between two selection fields without wasting the space between the fields(as there are many fields in the selection). the above command is consuming one row. i dont want to waste that space.. so can anyone give code for the same...

Thanks & regards..

Chaitanya..