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: 

SAPSCRIPT MAIN BOTTOM PERFORMANCE

Clemenss
Active Contributor
0 Kudos

Hi,

we have a massive performance problem with sapscript.

In SAPSCRIPT we use WRITE_FORM with BOTTOM in MAIN WINDOW. When using APPEND, sapscript debugger shows that for every text element all text elements which have been triggered for BOTTOM/APPEND before are triggered again. That means the first is triggered again when the second is triggered and so on. When .

The math genius may calculate what that means for more than 100 text elements triggered: more than 10.000 times the text element gets triggered.

I tried function 'SET' but then only the last element triggered is in the printed output.

The reason for the many text elements is our special technique to print different character sizes in left and right area of bottom: We use a paragraph format with 1 point Line Spacing, i.e. create 7 lines empty and then one with 8pt character format text, then 9 line space, then 1 line with a tab to the right side and a 10 point character formattted text. - The customer wants payment conditions on the left in 6 point, SUM information in 11 point on the right - everything at the bottom of the last (which may be the first) page of the invoice.

I thought the idea of the 1 point line spacing technique was good but now (unicode system!) it takes up to 5 seconds to create one invoice.

Any ideas are welcome.

Regards,

Clemens Li

1 REPLY 1

Clemenss
Active Contributor
0 Kudos

we circumvented the problem using function WRITE_FORM_LINES.