2007 May 02 4:39 PM
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
2007 May 02 4:42 PM
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
2007 May 02 4:45 PM
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
2007 May 02 4:47 PM
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.