cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a smartform for mass printing.

Former Member
0 Kudos

i want to create a smartform for mass printing b'cz i have 100 customer with sales order detail and i want to print address of customer in address window and based on that customer, want to print sales order detail on each page.

this time my program printing all sales order in one execution.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

In report or driver program pass the each customer and details through the loop and call the FM to display

Regards

Shiva

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you call FM within loop, that will affect the performance.

you can try this once.

1. Pass the table which will have customer details to the smartform FM.

2. In smartform create a page ( you may already have this) with 2 windows

loop this with the table which you passed from the driver program.

1st window(secondary )- contains address details

2nd window (main) -- customer details.

endloop.

This will create the smartform for all the customers with their address, & other details in each page

Rewards if found helpful

Regards,

Seema

Former Member
0 Kudos

Hi Seema:

Thanks for the reply but I'm really confused what u r trying to say?Actually can't resemble the concept given by u.Are u having both address & line item data into one internal table?Kindly give me the step by step procedure.

Former Member
0 Kudos

HI,

1. pass the sales order details from driver program

2. in Smartform, create Page

3. in first window(secondary) print address of customer

4. in second window(main), create table.

loop at sales_order_table.

print details

endloop.

u said second window based on the customer address of first window, then use the parameter as a condition in the second window that is in table condition.