2009 Dec 26 6:51 AM
Dear Expert,
While printing of alv grid , whatever i have given the input. I want to display that input in print output on page.
Regards,
Chintan Shah
2009 Dec 26 1:26 PM
Hi Chetan,
After the ALV FM call, can't we use write statements to print the input values between statements PRINT-CONTROL ON/OFF?
Probably we can keep a check IF sy-batch EQ 'X' before writing this data. This won't work if you are running the report in foreground and using the standard print option from ALV.
Thanks,
Vinod.
2009 Dec 26 6:57 AM
2009 Dec 26 7:01 AM
I don't want write in top of page , instead of that i want only this input in printing. not in top of page.
Regards,
Chintan
2009 Dec 26 1:26 PM
Hi Chetan,
After the ALV FM call, can't we use write statements to print the input values between statements PRINT-CONTROL ON/OFF?
Probably we can keep a check IF sy-batch EQ 'X' before writing this data. This won't work if you are running the report in foreground and using the standard print option from ALV.
Thanks,
Vinod.
2009 Dec 28 5:26 AM
Can you please write code how to do.
Edited by: Chintan01 on Dec 28, 2009 10:56 AM
2009 Dec 28 10:31 AM
2009 Dec 28 1:30 PM
Hi,
I tried some options but it is creating 2 spool requests. If you want the input options in the same spool, then i can suggest one idea.
Use ALV block list instead of ALV list/Grid. In the first block, display the input parameters and in the second block display your actual data. Hope this will resolve your issue. You have to call 3 FMs.
1.REUSE_ALV_BLOCK_LIST_INIT
2.REUSE_ALV_BLOCK_LIST_APPEND (Twice one for input values, one for actual data)
3.REUSE_ALV_BLOCK_LIST_DISPLAY
You can search SCN or refer standard report BCALV_TEST_BLOCK_LIST for sample code.
Thanks,
Vinod.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |