on 02-21-2011 9:01 AM
Hi,
I have a smart form where information regarding order needs to be printed, such that each order should get printed in one page. I kept condition at the end of Main window such that if current line of order internal table is less than or equal to total lines in order internal table then same page is triggered.
But when I try to print 2 orders, first order is printing properly, but for second order header part is being printed in a new page but Main window is not printing.
Please help.
Thanks in Advance.
Theres only one main window in smartforms, the diference between pages can only be about size.
What u must do is, inside the loop to each document to have an element command to jump page.
Hope i helped 😃
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this way.....
Don't create a new Main window in second page instead copy the main window of the first page and continue creating the text-windows or program lines after the command window.
Check this wiki. This might help you.
https://wiki.sdn.sap.com/wiki/x/bAZqBg
Thanks
Sarves
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Firstly create program lines inside your loop, program line should populate additional temp variable. and it shouldbe the first one to populate.
Ex: IF lv_vbeln is initial.
LV_VBELN = vbeln.
ENDIF.
Secondly, Place you command in the first line of your loop to trigger new page, with condition as LV_VBELN NE VBELN.
Display all line items in main window.
At the end of your loop.
IF LV_VBELN NE vbeln.
LV_VBELN = VBELN.
ENDIF.
I guess, above solution will give you the expected results.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.