Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartforms

Former Member
0 Likes
432

Hi,

i am printing wct certificates through smartforms.

on the basis of range of posting date on selection screen, i am getting multiple vendors. so my requirement is to print certificates for each vendors. means for each vendor there will be header info on first page and line items information on second page.

i have to fetch correct data in my smartforms but not able to separate them.

means all line item is printing on second page for all vendors.

and only first vendor header information is coming.

please suggest me how i should proceed so that i can print each vendor header and line items .

means loop should go to on first page after printing first line item information of vendor.

and how i will seperate the vendor line item information.

Thanks and regards

vijay

marks will be surely awarded for each helpfull answer*

3 REPLIES 3
Read only

Former Member
0 Likes
412

Hi

In driver program use loop and

use at vendor and call the form within that

this will create a separate page for each vendor

Regards

Shiva

Read only

daixiong_jiang3
Active Participant
0 Likes
412

actually there is a loop existing in the smartforms,so you can add some code to start a new page when a new vendor appears:

*LOOP AT IT_TABLE.

AT NEW LIFNR.

NEW-PAGE.

ENDAT.

*ENDLOOP.

PS:YOU NEED TO SORT THE VENDOR AT FIRST

SORT IT_TABLE BY LIFNR.

Read only

Former Member
0 Likes
412

Hi,

In driver program u can call ur smartform for every vendor using loop at vendor. collect ur vendor line item info in the seperate internal table in the same loop and pass this to ur smartform and display it on the next page in ur smartform.