Skip to Content
avatar image
Former Member

ALV in abap wendynpro is not getting refreshed

Hi All,

I am creating a ALV report in ABAP WebDynPro.

I have been successfully able to create the report.

But my problem is after first population of the data in the alv, if i chnage the selection criteria and again execute the report my context is getting loaded with new set of data but the alv is not refelecting the same.

The ALV is not refreshing with the new set of data.

Kindly help ASAP.

Thanks and Regards,

Nuzhat

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Dec 29, 2009 at 09:13 AM

    Hi

    On search method, refresh the context then fetch the data based on the selection criterion and then set the new data to context using method bind_table. The key is to make latest data available in the context.

    Regards,

    Saket.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Can u please help me how to refresh the context node.

      I know how to empty the node by invalidate only.

      But if i am using invalidate method nothing is getting populated.

      may be its effecting the node binding of my component to the ALV Interface Controller DATA node.

      Regards,

      Nuzhat

  • avatar image
    Former Member
    Dec 29, 2009 at 09:54 AM

    Hello,

    It may be not the direct reply to your question but a suggestion, for reporting through ALV, you should use POWL.

    Its a SAP Standard way how the reporting should be done.

    best regards,

    Rohit

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2009 at 11:05 AM

    hi Nuzhat,

    Bind table to context node in WDDOMODIFYVIEW method. not in WDDOINIT.

    regards,

    vijay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2009 at 01:57 PM

    Hi,

    did you bind the same context node to your ALV "data" node? On your left hand side...under your component name....go to "component usage" this is right under views and window options.....open the "component usage"....double click on the INTERFACECONTROLLER_USAGE....than selec the DATA node....and than check the "mapping path" right at the bottom of the screen....see where this "data" node is getting its value.....

    because if you context node is getting the new values....and if your ALV DATA node is bind to this context node....display should get refreshed....

    pls explain more if you bind the same context node to alv "data" node or not?

    thanks...

    AS...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2009 at 02:12 PM

    Hi,

    This is a bug in the ALV functionality. Check OSS notes 1318988 and 1319829. They should fix the problem (if you have a similar problem that I did).

    Regards,

    Karri

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2009 at 05:44 PM

    Hi, apart from all other suggestions by colleagues, also change the View property of the view containing ALV to "when visible" in the Properties of View.

    thanks,

    Phani

    Add comment
    10|10000 characters needed characters exceeded