cancel
Showing results for 
Search instead for 
Did you mean: 

alv / pdf

0 Kudos

Hi All,

My task : ALV report to PDF format (from a abap report)

  • after calling REUSE_ALV_LIST_DISPLAY in sp01 it showing all columns (9 coulmns) .

  • I used FM CONVERT_ABAPSPOOLJOB_2_PDF and download the file, there I can see only 4 coulmn.

When I use sy-batch = 'X' , it popup a device windows , if I change the FORMAT from X_PAPER to X_65_255 . Now , using convert process it is showing all.

My question is how to set x_65_255 dynamically. (no user input).

Thanks in Advance

Balamurugan.R

Accepted Solutions (0)

Answers (2)

Answers (2)

narin_nandivada3
Active Contributor
0 Kudos

Hi,

Please check these threads

Hope this would help you.

Good luck

Narin

Former Member
0 Kudos

Try submitting the layout as below to this program which does the conversion process in your code so that the conversion process triggers as soon as this code is encountered in your code.

SUBMIT RSTXPDF5

WITH SPOOLNO EQ SRC_SPOOLID

WITH DSTDEVIC EQ DST_DEVICE

VIA JOB BTC_JOBNAME NUMBER BTC_JOBCOUNT

TO SAP-SPOOL DESTINATION DST_DEVICE

IMMEDIATELY ' '

NEW LIST IDENTIFICATION 'X'

LAYOUT 'X_65_80'

SAP COVER PAGE 'N'

WITHOUT SPOOL DYNPRO

AND RETURN.

Regards,

Bhaskar.

0 Kudos

Hi Bhaskar,

You have mentioned to use rstxpdf5 , this is nothing but FM

CONVERT_ABAPSPOOLJOB_2_PDF.

My problem is , in spool I am able to see whole report. But I try to convert using above FM , I can see only half of the report.

(ie in PDF file).

While running ALV report it is taking layout as 'X_PAPER'.

In that case using conversion I am getting half Coulumn (PDF).

But when I activate sy-Batch = 'X'. ALV report prompt for device information , there i Changed layout into X_65_255.

Now the conversion working fine.

My question is how to change the layout in ALV without user input.

Note : tried your tips also, again half coulmn only.

Thanks

Balamurugan.R