2008 Apr 29 9:52 AM
Hi!
Can I pass to a report which has an alv output a variant. It is possible to
choose a self made layout ? If so how can I create with ALV a variant
and save it. What is necessary for it ?
Regards
ertas
2008 Apr 29 10:22 AM
Hi,
Pass the parameters which are marked in Bold characters.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = Sy-repid
I_STRUCTURE_NAME = 'OUT'
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDTAB
I_DEFAULT = 'A'
I_SAVE = 'A
IS_VARIANT = G_VARIANT
IT_EVENTS = EVENTS[]
IS_PRINT = PRINTS
TABLES
T_OUTTAB = OUT.
In the ALV output, Application toolbar you can find a button for changing the layout. Click on that button, choose the fields for the layout and click on SAVE. Give a name and save it.
Thanks and Regards,
Lakshmi.
Edited by: Santhanalakshmi V on Apr 29, 2008 2:53 PM
Hi!
Can I pass to a report which has an alv output a variant. It is possible to
choose a self made layout ? If so how can I create with ALV a variant
and save it. What is necessary for it ?
Regards
ertas
2008 Apr 29 9:58 AM
2008 Apr 29 10:01 AM
Hi,
It is possible to pass ALV layout in a variant to a report.
In the report you should have a selection parameter for layout.
SUBMIT <Report> with selection-table and return - Using this statement you can populate the selection screen of the report you want to call.
In the report program, you need to retrieve the layout and pass this to the ALV.
Requirement is, first create a layout in the report and save it.
In Reuse_alv_grid_display set I_SAVE = 'A' and I_Callback_program = sy-repid. Now you can see the layout edit icons in the ALV screen. Using that buttons save a variant.
Thanks and Regards,
Lakshmi.
2008 Apr 29 10:12 AM
Hello,
How can I create a layout in the report (ALV output) and save it ?
Regards
sas
2008 Apr 29 10:22 AM
Hi,
Pass the parameters which are marked in Bold characters.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = Sy-repid
I_STRUCTURE_NAME = 'OUT'
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDTAB
I_DEFAULT = 'A'
I_SAVE = 'A
IS_VARIANT = G_VARIANT
IT_EVENTS = EVENTS[]
IS_PRINT = PRINTS
TABLES
T_OUTTAB = OUT.
In the ALV output, Application toolbar you can find a button for changing the layout. Click on that button, choose the fields for the layout and click on SAVE. Give a name and save it.
Thanks and Regards,
Lakshmi.
Edited by: Santhanalakshmi V on Apr 29, 2008 2:53 PM
2008 Apr 29 10:38 AM
Ok I have done so far all your instructions.
What is about ?
SUBMIT <Report> with selection-table and return - Using this statement you can populate the selection screen of the report you want to call.
Regards
ertas
2008 Apr 29 10:51 AM
Hi,
In your question, you asked if it is possible to pass ALV varinat to a report program. I thought you are calling this report from some other program with a layout option.
If that is not your requirement, you can simply ignore that. Now you have saved the variant. What is your next requirement?
If your program needs to display the data automatically with that layout everytime when you run, you can use FM 'REUSE_ALV_VARIANT_DEFAULT_GET'. This will give you the default layout which is saved and pass this variant in REUSE_ALV_GRID_DISPLAY.
Thanks and Regards,
Lakshmi.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |