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

PDF Landscape Format

Former Member
0 Likes
1,336

Friends,

I have a program which writes a report. Since this is scheduled in the background, a spool is created. I am converting this spool into a PDF (function module CONVERT_ABAPSPOOLJOB_2_PDF) and sending this PDF as a mail attachment (function module SO_DOCUMENT_SEND_API1). The PDF which I am getting is in portrait format.

Can I get a PDF which is in Landscape format?

I tried customising function module CONVERT_ABAPSPOOLJOB_2_PDF and changing the standard layout from 'X_65_80' to 'X_90_120' but the PDF output is still portrait.

Please suggest a solution.

Warm Regards,

Sagar Satalkar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
985

Hi,

Check the Device type and the Page format attached to this device type from SPAD settings, try attaching the Landscape page format to the device type and check,

Hope this helps,

Rgds,

Friends,

I have a program which writes a report. Since this is scheduled in the background, a spool is created. I am converting this spool into a PDF (function module CONVERT_ABAPSPOOLJOB_2_PDF) and sending this PDF as a mail attachment (function module SO_DOCUMENT_SEND_API1). The PDF which I am getting is in portrait format.

Can I get a PDF which is in Landscape format?

I tried customising function module CONVERT_ABAPSPOOLJOB_2_PDF and changing the standard layout from 'X_65_80' to 'X_90_120' but the PDF output is still portrait.

Please suggest a solution.

Warm Regards,

Sagar Satalkar

4 REPLIES 4
Read only

Former Member
0 Likes
986

Hi,

Check the Device type and the Page format attached to this device type from SPAD settings, try attaching the Landscape page format to the device type and check,

Hope this helps,

Rgds,

Read only

Former Member
0 Likes
985

hai Mr.Sagar,

if it's possible means can u send me your code..to my personal ID (for this code)

[email protected]

(for smartform and abap editor program samrt styles)

thanks,

sn

Read only

Former Member
0 Likes
985

Try X_65_255.

Regards,

Sidney

Read only

0 Likes
985

Hi,

where did you set this layout?

Regards,

Markus