cancel
Showing results for 
Search instead for 
Did you mean: 

line items doubling after print preview and back

Former Member
0 Kudos

Hi ABAPers,

Need help...

Th issue is like when i print preview my smartform output the line items are 7, now when I go back and click on print preview the line items are doubling to 14. this is going on and on.

Kindly help me resolve this issue.

Regards,

Dep.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

Refresh the internal table that you pass to the smartform.

Jshree

Former Member
0 Kudos

Hi,

Yes exactly its correct.Here u need to refresh the item table data.As an temporary alternative u need to come from taransaction level again,that is for preview go with /n<tcode> and again go with preview.

Former Member
0 Kudos

this is a typical CLEAR problem in your driver program.

I strogly suppose when doing it for the second time you pass an itab of items with 14 items instead of 4. This happens since you didnt clear the table before populating the items in it.

Former Member
0 Kudos

Hi,

I believe you have forgotten to refresh teh table being passed to the smartform.

Refresh it,should solve the problem.

Former Member
0 Kudos

Hi Dep,

Check if the table parameter that passes the line item to the form, is being refreshed after the smartform is being called.

It is a good practice to initialize any/all variables before they are used.

Regards,

Chen