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: 

Changing LPI parameter value in SPAD - Format

0 Kudos
592

Hello experts,

I have a question regarding the LPI (Lines Per Inch) parameter that can be parameterized for a Format associated with a Device Type using transaction SPAD.

From a couple of forum searches I gathered that both the LPI parameter and the ‘Page Lines’ parameter are used to define the vertical height of the page. I also noticed that all the format/printer settings that were displayed in replies to other threads had the LPI parameter with the value 6, which is parameterized using the expression: \e\0x32. SAP documentation regarding Device Formats (http://help.sap.com/saphelp_40b/helpdata/en/d9/4a95af51ea11d189570000e829fbbd/content.htm) states that the value after the ‘x’ is in Hexadecimal numeration. Nevertheless, the number 32 has 50 as its decimal correspondent and not 6 as one would expect.

So, can anyone explain me what is the process behind the parameterization of the LPI parameter?

I would like to know that in order to change a 6 LPI parameter to 9 LPI parameter.

Thanks and Regards.

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos
324

In my understanding this is also related to page height, so \e\0x41\0x0C\e\0x32 is concatenation of

  • Set 6 LPI = \e\0x41\0x0C where x'0C' =  12 = 72" / 6" where 72" is default height
  • Start this line spacing \e\0x32

So 9 LPI should be  \e\0x41\0x08\e\0x32 ? (x08 = 8 = 72 / 9)

We can also force height with \e\0x43\0x48 set page height to x'48' = 72 lines

But there may be a better space at scn than ABAP Development for this question, like Output Management ?

Regards,

Raymond

0 Kudos
324

Thank you for the fast reply Raymond. Your answer was very clear and allowed me to better understand the parameterization of LPI and Number of Lines parameters in SPAD.

Although I’m still not capable of meeting my goal - defining a page with 4,222 inches height (more precisely 4 and 2/9 inches height). With your answer I thought that I would have to had, Number of Lines = 38 and LPI = 9, which would result in the desired 4,222 inches. I parameterized them as following:

# Number of Lines

\e\0x43\0x26

# LPI = 9

\e\0x41\0x04\e\0x32           

(I parameterized LPI using ‘04’ since is the hexadecimal number closer to 4,222)

Can you tell me what I did wrong? I’m convinced that the error is related with the LPI parameter once again.

Thanks and Regards.

0 Kudos
324

I would have performed in reverse order (and no rounding)

  • first LPI,     \e\0x41\0x08\e\0x32 " 08 = 72 / 9
  • then height,     \e\0x43\0x26

But usually I contact printer manufacturer support

Regards,

Raymond

martingoodnews50
Explorer
0 Kudos
324

Hello there, I'm satisfied with today's research on LPI Summer Internship, and it's only when I came across your content, that it's amazing. I have some similar content that best describes LPI Summer Internship, and it can be helpful to you in any way so all you need to explore is just visit my website through the link below. https://www.makeoverarena.com/lpi-summer-internship/