cancel
Showing results for 
Search instead for 
Did you mean: 

Limit Sapscript lines

Former Member
0 Kudos

Hi experts,

how can i limit a sapscript form to 6 lines in the main window ?

Regards.

Thanks

Soufiane

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for the replies.

Regards.

Soufiane

Former Member
0 Kudos

Hi,

Define the main window with height as 6 lines. New page will be automatically triggered when 6 lines are printed in the main window.

Thus you will always have 6 lines in the main window.

Make sure that you use appropriate Paragraph and character formats.

I hope this solves your problem.

Regards,

Vara

Former Member
0 Kudos

Hi!

You have 2 choices:

- the first is not very nice, you have to write 6 different variables, like this

/ variable1

/ variable2

/ variable3

/ variable4

/ variable5

/ variable6

You can check them if they are empty or not with the following

/: IF variable1 = ''

/ variable1

/: ENDIF

- the second choice, in the printer program you will check the record count, and if you reach the 6th, the you stop the further processing (use EXIT command for example)

Regards

Tamá