Application Development and Automation 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: 
Read only

Printing Problem in ALV Grid

0 Likes
1,045

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

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
964

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.

6 REPLIES 6
Read only

Former Member
0 Likes
964

HI,

You must print it in the top of page of the ALV.

Regards

Read only

0 Likes
964

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

Read only

vinod_vemuru2
Active Contributor
0 Likes
965

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.

Read only

0 Likes
964

Can you please write code how to do.

Edited by: Chintan01 on Dec 28, 2009 10:56 AM

Read only

0 Likes
964

Yes. Send me the money.

Regards,

Clemens

Read only

0 Likes
964

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.