cancel
Showing results for 
Search instead for 
Did you mean: 

Space before Print-Control

Private_Member_19084
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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 Kudos

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 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Any updates on this issue, Christian ?

Private_Member_19084
Active Contributor
0 Kudos

Hi,

yes, today I've got the answer from SAP.

We have implemented note 539298 and now our problem is solved.

As written this note solves more than one form problem.

Thank you very much for your help!

Kind regards

Christian

Private_Member_19084
Active Contributor
0 Kudos

It seems, that space is not before print-contol, but behind the "test".

But in SE71 I can't see any space.

Any ideas?