cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms displaying data in new page based on value change

Former Member
0 Kudos

Hi Friends

i m developing Packing list smart form

in my shipment order ,and it has some deliveries

i have to display each delivery and its line item data in new page along with rest of the windows

lets say i have 1 shipment

it has 10 deliveries, each delivery has 10 line item

so, here in 1 page 1 delivery1 and its 4 line items

then in next page delivery1 and its 4 line items

then in next page delivery1 and its 2 line items

then in next page delivery2 and its 4 line items

like this i have to display

please guide me

Thanks

Anil

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I solved this with my own logic

Former Member
0 Kudos

Hi,

first keep only page in smartform and give next page as 'first page' only.

then create main window of size which can contain say 4 records (4 lines).create table in main window.ive loop and display all fields u want.

The main window will contain only four records and will go to next page for 5th record as u have set size of main window.

now to go to next page for new delivery create program lines

at start of loop -> del_no = itab-vbeln ( ur del no.)

create command line as if del_no ne itab-vbeln -> go to next page.

give next page as first page only.

i think this will help u.

Regards

Former Member
0 Kudos

Hi Vishal

I solved this in different way

by using flag, like for each new delivery no. the flag will be X

and in command based on flag X it will go to new page(Except first time) ...

any how , Thanks for your response...