Skip to Content
author's profile photo Former Member
Former Member

Every time print getting double, triple and so on

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2009 at 10:45 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2009 at 10:19 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2009 at 10:51 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.