PRINT-CONTROL FUNCTION 'SBP03'. WRITE: 'BARCODEDATA' NO-GAPS. PRINT-CONTROL FUNCTION 'SPS03'.
Where do these "positioning commands" come from? We also see such positioning commands right in the middle of the text. It looks like a maximum of ten characters can be WRITTEN without any repositioning. Even the WRITE command sends 60 or more characters.
My preferred troubleshooting approach -- which I would recommend here -- is to use the SAPscript debugger. It allows stepping through or tracing the form flow, and thus provides an excellent way to flush out the underlying problem. To switch on the debugger from the initial SAPscript screen, click on utilities --> activate debugger. Note that you will need to produce your form in the foreground to step through or trace it. It is not necessary to send it to a physical printer as a print preview should suffice.
This was first published in August 2006