cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Labels

Former Member
0 Kudos

Hi All,

My requirement is to print labels on a roll.

user enters the number of labels to print on the selection screen.

Depending on the input Labels should print on the printer roll paper.

Suppose user enters 10 labels to print, on the selection screen ,

then 3 labels should print on each row and the last row should print 1 label. How to achieve this requirement.

I developed the ZPL code with the dimensions given in the specification and uploaded in the sapscript MAIN WINDOW.

Thanks in advance.

Hari

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

If you want to print labels, i hardly would recommend SAMRTFORMS rather than sap-script, due to way much better formatting options through templates or tables.

then in print programreorganize your data table.

you data table has a certain structure, lets use MARC for example.

what you then need is a new deep table, which has three fields (L,M,R) left mid right.

where every field has structure MARC. now loop over your table, store records of sy-tabix mod 3 = 1 in field L,

store records of sy-tabix mod 3 = 2 in field M,store records of sy-tabix mod 3 = 0 in field R.

now when looping over this new built table you got per record all info needed to print a line of three labels..

hopefully you got my hints, and this is enough to get you started.