Application Development 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: 

Challenging one Regarding layouts in Report

Former Member
0 Kudos
77

Dear all,

I am developing a report using function modules.Here in my report i want a feature of VA05.In VA05 if we goto <b>SETTINGS->LAYOUT->CHOOSE</b>.It will allow us to select a layout. If we select <b>header level</b> layout it will display all records without duplicates.Again if we select<b> item level</b> layout it will display records with duplicates.Can anybody tell me how can i implement this logic in my report.

Regards,

vineel

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos
54

YOu can have alook at the sample program:

BCALV_GRID_09

BCALV_GRID_10

BCALV_GRID_11

These reports are specifically for saving alv lyouts.

Regards,

Ravi

Former Member
0 Kudos
54

Hi.

You can achieve such reports using ALV where you can create different Layouts for your program. You can use function module REUSE_ALV_HIERSEQ_LIST_DISPLAY for header level and item level records to be shown.

thanks,

sksingh

Former Member
0 Kudos
54

you can pass the parameter I_SAVE = 'A' when u call your FM, to display the report output. (REUSE_ALV_GRId or LIST or SET_TABLE_FOR .... whichever it is ).

also, you have to pass the VARIANT structure.

data: LS_VARI TYPE DISVARIANT.

ls_vari-report = sy-repid.