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

Problem in alv output

Hi All,

For one my reports i used alv grid display as output.

Correct output is coming but the problem is when i press the refresh button the output valus getting duplicated.

For eg :

My output before i press refresh button is

A B C

25 abc xyz

When i press the refresh button the output is changes to

A B C

25 abc xyz

25 abc xyz

here new line added with same entries when i press refresh.I f i again press refresh then one more line added with same entries.

Please let me know what is the problem and suggest me the solution for this.

Thanks a lot.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 06:57 AM

    HI Shweta,

    Probably you are building up your internal table for output in PBO. As Refresh will trigger PBO again this piece of program is triggered again.

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2007 at 07:01 AM

    Hi,

    Hae u cretaed the ALV by checking whether it is INITIAL.

    DATA  :  w_grid  TYPE REF TO CL_GUI_ALV_GRID,
     IF w_grid IS INITIAL.
    
    creating custom container instance
      
    ENDIF.

    This will oslve ur problem, or else when u click on the row also it will generate dupliactes.

    Reward if this helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2007 at 07:16 AM

    Hi Shweta,

    Please if possible attach the code, coz. only then it would be possible to see where the fault is and fix it :).

    Regards,

    Ravi 😊.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2007 at 07:16 AM

    Hi Shweta,

    Please if possible attach the code, coz. only then it would be possible to see where the fault is and fix it :).

    Regards,

    Ravi 😊.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 08:39 AM

    Hello,

    Check the entries in the internal table.Probably entries in your internal table are getting duplicated.Or before refreshing,you can write:"delete adjacent duplicates..." .

    Also check if you are creating the alv instance only when it is initial or not.

    Regards,

    Beejal

    **reward if this helps

    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.