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: 

how to avoid print in double space a detail in a Sapscript

Former Member
0 Kudos

Hi;

with a Z sapscript ZF110_HN_CHEQUE i made a Z copy, i had to add the detail of documents that the check is paying. the problem is that documents are displayed in double space.

How can i make this to print in a single space.

the ZF110_HN_CHEQUE sapscript is with no detail of documents, so i had to add it.

This is the code i´ve added under line 525.

525 -

-


PARTIDAS -

-


PROTECT

&REGUD-BELNR& &REGUD-XBLNR& ........

ENDPROTEC

Thanks on advance.

4 REPLIES 4

Former Member
0 Kudos

Hi David,

I don't understand what you mean with double space, but I gues : it's printed twice. You could try do declare a variable and after first print, set it to 'X'.

/: define &set&

/: if &set& = space

....your coding

/: &set& = 'X'

/: endif

So it will only be printed once.

Cheers,

Stefan.

Former Member
0 Kudos

Daivd,

of course you new variable should be declared where it is called only once, so in top of MAIN.

Cheers,

Stefan.

Former Member
0 Kudos

solved

0 Kudos

Moderator message - When closing old threads, there is no need to add a comment. Adding a pasted answer like "solved " only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved.