Application Development 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: 

Set Margin while printing an ALV in Background

Former Member
0 Kudos
255

Hi Gurus!

I have an ALV program that runs in background mode. I need to have a 2 centimeters left margin while is being printed. Where do I set this up? From the ALV program or from the page format?

Thanks in adavance!

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos
104

I think you can customise your device type in SPAD where in "printer initialization" tab.

  1. set left margin to 0

aRs

Former Member
0 Kudos
104

But I don´t want to change this parameter to ALL the pages that are printed in this printer. Only for the one of the Z report.

former_member194669
Active Contributor
0 Kudos
104

I have created a custom device type thru SPAD, and i used only for my report.

I think in alv in background it is not possible. I could not able to find any methods to set left margin.

otherwise write simple list report using the following commands


PRINT-CONTROL

Additions:
1. ... CPI cpi
2. ... LPI lpi
3. ... SIZE size
4. ... COLOR
5. ... LEFT MARGIN col
6. ... FONT font
7. ... FUNCTION f
8. ... LINE line
9. ... POSITION col 

aRs