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 modify lines of OTF spool

Former Member
0 Kudos

Hi all,

my requirement is to write in a sapscipt document a line with characters in white color (invisible when the document is printed but visible for a third software).

Since sapscript doesn't support colors, the only solution I think could work is to modify the OTF document once the spool is created.

Anyone knows about modifying OTFs specially if I want to change the color of characters???

One example of OTF line is this:

UL    +0000000000000

SW   00036

CT   FFFFFF00

ST   0220562CompanyID|Do
ST   0204162cumentID|DocType|DocumentStart|
ST   0027408ZipC
ST   0199162ode|Country|City|StreetAndNumbe
ST   0210362r|FirstName|LastName|Company|Ma
ST   0189058ilAddress

How can I know what numbers to change in order to manipulate the characters format?

Thanks,

ILIE

1 ACCEPTED SOLUTION

roberto_vacca2
Active Contributor
0 Kudos

Hi.

In the OTF data internal table, the ST command means the text.

Before this line insert CT command for text color. The code of colors should be this:

Documentation from http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10dd1e35-a012-2a10-a6a2-c688a2b67...

You should try change this values.

Hope to help

Bye

1 REPLY 1

roberto_vacca2
Active Contributor
0 Kudos

Hi.

In the OTF data internal table, the ST command means the text.

Before this line insert CT command for text color. The code of colors should be this:

Documentation from http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10dd1e35-a012-2a10-a6a2-c688a2b67...

You should try change this values.

Hope to help

Bye