Application Development and Automation 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: 
Read only

Write ASCII Code to SAPScript

Former Member
0 Likes
430

I need to write char(2) and char(3) from ASCII code into a SAPScript... How can I do that? I need to send control commands to a DATAMAX printer.

Thanks in advance.

Oscar

1 ACCEPTED SOLUTION
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
352

You can maintain those print control commands in transaction SPAD for that particular device (probably it is best to mark them as hex interpretation and with the correct hexadecimal value).

Then, you can issue them in your form with a PRINT-CONTROL command or something like that... It has been a while when I did SAPscript for the last time so my memory is a little hazy about the exact syntax, but there is a statement to send print control commands.

2 REPLIES 2
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
353

You can maintain those print control commands in transaction SPAD for that particular device (probably it is best to mark them as hex interpretation and with the correct hexadecimal value).

Then, you can issue them in your form with a PRINT-CONTROL command or something like that... It has been a while when I did SAPscript for the last time so my memory is a little hazy about the exact syntax, but there is a statement to send print control commands.

Read only

0 Likes
352

Thank you very much!

Your solution works without problems...