cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms page 1 of X in Zebra

aidan_mulcahy
Active Participant
0 Kudos

Hi,

I have a window in my SF with page 1 of X using

Page: &SFSY-PAGE& of &SFSY-FORMPAGES&

. This outputs fine horizontally but when I rotate the window it prints out like:


5

page 1 of

Anyone seen this before? The window is wide and high enough.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aidan,

Maybe you can try Page: &SFSY-PAGE(C)& of &SFSY-FORMPAGES(C)&

So it uses less space and maybe it fits.

Gr., Frank

aidan_mulcahy
Active Participant
0 Kudos

tried that - no difference.

Former Member
0 Kudos

Hi Aidan,

can you find out how the zpl2 commands looks which smartforms generated.

And then the part only for this. Compare it with the same part of yuor test

with Page: &SFSY-PAGE& of 5.

Gr., Frank

P.S.: this is one of the reasons i prefer SAP-scripts for Zebra

former_member205763
Active Contributor
0 Kudos

try &SFSY-PAGE(2ZC)& of &SFSY-FORMPAGES(2ZC)&

aidan_mulcahy
Active Participant
0 Kudos

2ZC made no difference.

Frank, how do I check the ZPL code? I debugged the smartform FM and the only difference I could see was the L_TOKEN table - it had and extra 4 lines for the formapges section.

But I could not see any ZPL code?

Former Member
0 Kudos

Hi Kroc,

Take two variable of type data: p1(2) type c , p2(2) type c. as global variables

then create a program line and assign p1 = sfsy-pages. p2 = sfsy-formpages.

Hope this works out .

Cheers,

Suvendu

aidan_mulcahy
Active Participant
0 Kudos

Suvendu,

I am not sitting in the same country as the Zebra printer today so can't test it. I will try your suggestion on Monday.

Thanks.

Former Member
0 Kudos

Hai Kroc,

Please check and give points if the discussion was helpful.

Thanks and Regards,

Suvendu

Former Member
0 Kudos

Hi Aidan,

That is a nice one to find out. I really do not know how to check which zpl2 code is generated by smartforms. I will post this one on the forum.

Gr., Frank

aidan_mulcahy
Active Participant
0 Kudos

thanks guys

Suvendu,

I tried your suggestion and it worked. Actually, I didn't define the variables as type 'c' but used their correct types from SFSY. That confused me even more as I thought the values would have been identical.

Thanks.

Answers (1)

Answers (1)

aidan_mulcahy
Active Participant
0 Kudos

one thing I forgot to mention.....

As a test, I changed the code to:

page &SFSY-PAGE& of 5

This output correctly rotated on one line.