cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Space before Print-Control

Private_Member_19084
Active Contributor
0 Likes
483

Hi experts,

we are printing labels via SAP-Script.

In this SAP-Script we use print-controls, which we have to save into a datamatrix on the label (customer needs this at scan).

Therefore we have created print-controls (SPAD->Device Types) which following setup:

name = ZGS ; Direct ; Hexadecimal ; Value = "1D"

These are the sapscript lines, which saves the content (=test<PC>test2) into datamatrix (<> = format).

<* > test

</: > PRINT-CONTROL ZGS

<= > test2

(there are no spaces after test and test2)

Our big problem is, that there is a space BEFORE the print-control.

content sould be = "test<PC>test2" (without space)

content is = "test <PC>test2" (space betweend test and <PC>

Any ideas, how I can avoid the space BEFORE the print-control?

(space between PRINT-CONTROL and ZGS has to be! Otherwise command does not run.

Thx for any help

View Entire Topic
Former Member
0 Likes

Hi,

Did you try to use the new editor ( it looks like Word processor) to edit those text ?

I think it could be more visual to be sure that you've removed all the space.

Overall I think that the space is generated by the command Print-control.

May be you have to find a solution to work around if the requirement is seriously needed

I'm thinking of a way to define the text in variables, then concatenate them. But I haven't tried yet.

Private_Member_19084
Active Contributor
0 Likes

Hi,

thx for the fast help.

I've also tried an other editor - no spaces in sap-script.

I already found out, that space is appended to the text when a PC is followed.

And this only happens, when PC follows. If a text follows a text, there are no spaces appended.

I've already sent an OSS-request.

I will update this forum after the answer from SAP.

Solution with concatinating PC into text, is also my last hope.

But I would like to know the answer from SAP.

Private_Member_19084
Active Contributor
0 Likes

As already written, yesterday I've sent an OSS-request to solving this issue.

However, I still got no answer, although the priority was "high".

So I try it again on this way.

I use the print-control to store a special character into the datamatrix (group separator = 1E (hex) = 030 (ascii)), which is used from the customer to identify parts automatically.

Is there another way to store a hex-value into the datamatrix via sap-script than using print-control command?

fyi: command :/hex does not run