on 06-30-2011 7:19 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
Any updates on this issue, Christian ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems, that space is not before print-contol, but behind the "test".
But in SE71 I can't see any space.
Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.