Bryan Abrams
Bryan Abrams

Reputation: 337

SAP Smartform totals misalignment

I'm using a template to try to nicely align all of the "totals" of the document.

enter image description here

In the print preview from SAP it seems to be going OK.

However, when I print it out on paper it's adding it's own padding or margin.

enter image description here

I'm not sure where this is coming from or why it's being formatted this way. I've also tried taking the text and placing it in a type STRING but that produces the same result.

What code I've tried:

Attempt #1) Text Includes

&DISCOUNT_TEXT& = String

&CURRENCY& = WAERK

&TAXPERCENT& = Integer

Attempt #2) String literals

test_text-subtotal = 'Subtotal'.
test_text-discount = &discount_text&.
test_text-excltax = `Total ` && currency && ` Excl. Tax`.
test_text-taxpercent = taxpercent && `% Tax`.
test_text-incltax = `Total ` && currency && ` Incl. Tax`. 

Upvotes: 4

Views: 3018

Answers (2)

Xavier Salomone
Xavier Salomone

Reputation: 126

Are you using Word as editor? if so, switch to the old sapscript editor and check the paragraph styles again. I think I see that the TAXPERCENT line is not in bold, so it could be a different style.

Upvotes: 0

Karthik Raj
Karthik Raj

Reputation: 189

It is usually because of your printer settings. I faced this issue before. You got no choice other than setting your alignments based on the printer output.

Upvotes: 0

Related Questions