cancel
Showing results for 
Search instead for 
Did you mean: 

Every time print getting double, triple and so on

Former Member
0 Kudos

Hi All,

I have a smartform for which i am sending the values in an internal table. I am refreshing the table after end of function call to smartform.

But every time I execute the print program, the output is getting double like first time suppose there are 3 values next time I execute it will become 6 then 9 and so on.

I am passing the following in the function module of smartform

Control parameters

no_dialog = X

langu = E

Output Options

tddest = printer name

tddelet = X

tdimmed = X

Kindly suggest what is wrong in it.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

at end of the smartform call , clear the internal table.

if the table is with header line:

then : refresh itab.

if without header line then : clear itab.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Do clear the Internal Tables before fetching data and after displaying.

Because if you execute the smartform on the selection screen again and again, the tables will not get refreshed.

So, clear the internal tables and all global declarations also.

Former Member
0 Kudos

HI

Check the Internal tables that your passing if your are appending entries into it if so avoid it.

check the number of copies also and donot call the smartform in a LOOP ... ..

surya