cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform: Line Item Problem

Former Member
0 Kudos

Actually I have created a Purchase Order through smartform.

But when, more than 10 Line Item is in the PO then it goes in the next page.

Everything is fine as off now.

But when the line item shows in next page, it shows the value of first page.

For example:

Freight value in first page for line item 1 is 220.

Freight value in second page for line item 10 is 220, but it shuld be 440.

Please help as soon.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI,

I think you might have used two main windows,,,one in fisrt page and other one main window in second page, so it might happend please chech that also........

Former Member
0 Kudos

Hii,

My Dear Smartform only having 1 Main window, if having more than 1 one window then it will never activate.

Thanks

Former Member
0 Kudos

Check if you are correctly looping the line item table and mapping the line item field with the workarea of your Looping table.

create Loop TABLE into WORKAREA.

And then put your line item field under this loop tree.

If loop and mapping is correct then need to check if your table is haing correct values or not.

create program lines just before the LOOP.

in the program lines writer Break-point. or BREAK <your SAP ID>.

Activate the program and check at runtime if you are getting correct values in your line item table.

let me know if your prob. is not resolved.

cheers

NK

Former Member
0 Kudos

Hi,

Go to the output options tab of a perticular text where you are printing item details. check the check box Page protection.

Hope this will helps you.

Regards,

Kiran

Former Member
0 Kudos

Hii Karan,

I think Page Protection is used for display line item in only 1 page.

But in my case, there are so many Line items in PO.

So, It will be display in 3 or 4 pages.

My query is:

In these 4 pages the first line item shows the value as 1 page Line item.

But all values are different in PO.

Former Member
0 Kudos

Hi Nitin,

1) Is the problem only with the value of one field or the entire row is getting repeated on all the pages?

2) It it correctly printing from next line onwards (assuming item 10 data is overwritten with item 1 from first page, is data for items 11 - 20 printing correctly)?

Regards,

Shyam

Former Member
0 Kudos

Hii Shyam,

1) The entire first row is getting repeated on all the pages.

2) Yes, from the next line onwards, it is correctly printing.

I Can say if first page have 10 to 19 items, all is fine as off now, but second page having 20 to 29 items then 20th item is the only wrong item, this item shows the entire first row value of first page. All items are fine from 21th to 29th.

All pages from 2 to 4th shows 1 item value of first page.

Please help me at the earliest.

Regards,

Nitin Garg

Former Member
0 Kudos

hi,

thats a weird problem. Its possible something didnt get refresh when move dto 2nd page.

Have you debugged and checked teh values?

Put a breakpoiny when SFSY-FORMPAGE = 2.

And check is the value coming in internal table for 1st entry is the same?

Former Member
0 Kudos

Yes, I have debugged.

When SFSY-FORMPAGE = 2 it will revert back the item value i.e. EBELP = 0010.

I don know why it is revert this value of line item 1 on first page.

Former Member
0 Kudos

hi,

in the main window where you have defined the table. How have you defined the loop under data tab?

is it "loop internal table into workarea"?

have you selected some other option?