cancel
Showing results for 
Search instead for 
Did you mean: 

Label printing

Former Member
0 Kudos

Hello alltogether,

does somebody knows how we can trigger a formfeed within a smartforms form?

We are trying to print labels which should be printed on label paper of 50mm in height and 100mm in width.

After printed 5 Lines we wanna do a formfeed to jump to the next label and print the next position.

Any ideas?

B.t.w. is it only possible within SapScript?

Thanks a lot

Wolf.

Edited by: Wolf on Feb 25, 2008 3:19 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Declare a global variable 'v_count' and incriment the variable for each lable in the loop node. and put a condition node with in the loop node as last node and go with condtions tab and plase condition 'v_count = 5' & select in the drop down which you get in genaral-options tab of the condition nodego to new page.

and after the condition node and with in the loop node place a program lines node in which write following code

Clear : v_count.

result:

1. the condition node wiil take the print to new page and the program line node resets the v_count variable to no value so that next new page can be achived.

Hope it is clear

Answers (5)

Answers (5)

Former Member
0 Kudos

No ideas?

Former Member
0 Kudos

Hello,

think we need more help in solving this problem.

As you have advised we included a command at the end of table.

There is no need for any counter cause there must be a new page command on every loop.

In general attributes we marked 'Go to new page' as add-on we tried 'FIRST, NEXT, INITIAL', but unfortunately with the same result

"output could not be issued"

after we repeated message within transaction VL02N.

We didn't made any settings at Reset paragraph numbering and Include printer control (we tried also, but without any positive results)

Structure (R/3 4.6c):

Main -> Tableitem -> ..... fields, Command at the end

Hope you can see the error.

Looking forward in some more clues.

Former Member
0 Kudos

Hi Wolf,

Could you please provide me the node sequence in the Smart form, designed by your designer.

So that i will check where my prevously given ans fits.

Thanks,

Surya

Former Member
0 Kudos

Hi,

I made a screencopy of our label smartform definition, so if you give me your email I will sent it to you?

What do you think?

Thx

Wolf.

Former Member
0 Kudos

Hi Wolf,

Sorry i am bit late is the issuee still open?

If yes send details to vespa143@yahoo.co.in

Thanks,

Surya

Former Member
0 Kudos

Hello Surya,

I sent an email to your adress.

Thx.

Former Member
0 Kudos

Hi Wolf,

First I'll assume you have a main window in your smartform and in that you have a table. Also that you have created a page format in SPAD that matches the dimensions of your labels.

In your table (let's say after the text element that writes your item) you need to create an ABAP node that increases a counter (and sets it back to 1 when it's greater than 5) as Surya describes. After this create a command node, with a condition that this counter is equal to 5 and in the general attributes tab check 'go to new page' and select your current page.

Regards,

Nick

Former Member
0 Kudos

Wolf,

After 5 lines, will it be the next lable? If so you can reduce the size of the main window.

Thanks,

Pranav

Former Member
0 Kudos

Some experts out there

Former Member
0 Kudos

Hello,

first thanks to Surya for his repsonse.

I talked to our abap and smartforms specialist.

What do you mean with: "... and put a condition node with in the loop node as last node and go with condtions tab and plase condition 'v_count = 5' & select in the drop down which you get in genaral-options tab of the condition nodego to new page."

Which drop down in general options do you refer to?

What is the meaning of "nodego" ?

I just want to print 5 lines and then trigger a form feed to print the next 5 lines onto the next label.

Thanx.