on 02-25-2008 1:51 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Some experts out there
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.