cancel
Showing results for 
Search instead for 
Did you mean: 

display invoice no of displayed items in smartforms

Former Member
0 Kudos

hai all,

i am implementing smartform based on multiple invoice no`s, i am able to display each item in each page, but i am unable to display exact invoice no for the bellow items.i am using two pages here. is there any solution

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Start displaying the contents this way.......

after preparing the header data & the item data in their respective internal tables..

1) create a loop at the itab_header.

create-> flow logic-> loop

chk the Internal Table option in Data tab and specify the header itab:

loop: itab_header into wa_header.

2) Create one more loop within this loop for the item details..

In iternal table option specify: itab_item into wa_item

-> In the where condition option specify the fieldname invoice

fld_invoice = wa_header-invoice.

this wud display the item details for the corresponding invoice number itself..thn proceed with further logic...

Hpe it helps..

Regards,

Mdi.Deeba

Former Member
0 Kudos

Hi Gautam,

r u displaying each invoice no in a seperate page?

how exactly do you want your smarform to be displayed?

suppose if you want each invoice no in each page and some item data related to it to be displayed below it ..then you can go for a table ..by specifying your invoice no in header and your item data in the main area...

Former Member
0 Kudos

yes it is my requirement, but the invoice no are not displaying correctly as per the items displayed bellow