cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms

Former Member
0 Kudos

Moderator message: please use a more meaningful subject in future

hi experts,

i got a requirement to develop smartform for purchase order.

i am getting data from a report.i am getting header data in one internal table and item data in one more internal table.i need to display multiple po's.

i am in a confusion that how to display each po in indiavidula page.

because if it is one po then we can easily display po header data (because only one header).by comparing header we can display item data.

but here mote than 1 po.

please give me some idea.

Thanks

sai

Edited by: Matt on Nov 11, 2008 10:33 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

put header as well as items in main window....

for each header print item table...

after that next page...

...this will solve your problem

Answers (5)

Answers (5)

Former Member
0 Kudos

hii,

In driver program, you can use 'open form' first . After that call the smart form inside the loop of header table passing the required data of header table and the line items corresponding header to smartform. After that use function module close form.

With regards,

sandeep akella.

Edited by: sandeep akella on Nov 11, 2008 10:04 AM

former_member229034
Participant
0 Kudos

Hi Sai,

Use a Command while the PO number is changing. Follow the path:

Right click on the operating window, Create--> Flow Logic --> Command.

Best Regards,

Chaitanya.C.N

Former Member
0 Kudos

hi lalit,

thank u for ur quick reply.

but i need to display header data in 3 windows and item data in remain 2 windows.

can u please explain me in brief.

Former Member
0 Kudos

add loop node to every window..

for header .

loop at itab1..

window1

loop at itab1..

window2

for item..

anyway u will be having table so no need of any loop..

for other things..

put loop..

-


try to specify window that ur using in smartform ( example .address , footer mainwindow) and what r the data that ur displaying

Former Member
0 Kudos

COMMAND node to trigger new page.

use below link it is explained clearly

Former Member
0 Kudos

Hi,

Create one loop in smartform on header data and inside the loop create a table type with loop on item data.at the footer of item data do the page break.

it will print all the po's on the new page.

cheers

Lalit