Skip to Content

Webdynpro ALV Columns - Layout Not Refreshing

Dear Gurus,

I have created a application, user gives the input and based on the input am changing the columns dynamically. At first time its displaying the columns as per the input and showing the respective values in the columns, but whenever in the same screen if the user gives different input the columns are not changing dynamically means the layout it's not refreshing basically.

I have tried ALV interface controller refresh and table setting refresh at each time whenever the action triggers. Kindly advice.

Thanks,

Mahesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Sep 16, 2016 at 09:59 AM

    Mahesh,

    Try to refresh the context node mapped to the ALV data and repopulate the context node based on the user input.

    BR,

    Arun.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 17, 2016 at 03:39 PM

    Hi Mahesh,

    Go to the component SALV_WD_TABLE->COMPONENT_CONTROLLER. Go to methods,find out the method name with refresh(check whether interface check box is selected) . Call that method under the action/event where the data needs to be refresh.

    Vikram

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 19, 2016 at 04:46 AM

    Hello Mahesh,

    Try calling your code in WDDOMODIFYVIEW method of the view itself. This will refresh the data on every user click.

    Thanks,

    Varuna

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 19, 2016 at 06:19 AM

    hi..

    Or you can go with dynamic node creation..

    Using an ALV with Dynamic Context Nodes in Web Dynpro

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 19, 2016 at 11:04 AM

    Hi Mahesh,

    After changing the displayed structure of the ALV, you need to call the ALV interface controller's SET_DATA method to regenerate the ALV with the new structure. Documentation on this method is available on help.sap.com:

    SET_DATA - Web Dynpro for ABAP - SAP Library

    Cheers,
    Amy

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 19, 2016 at 03:00 PM

    Thanks to all. Its solved.

    Seems the standard functionality of REFRESH is not working as it should, so i am handling by condition.

    If the type is A then HIDE else Visible, this condition is used to solve the issue.

    Anyway thanks to all.

    Add comment
    10|10000 characters needed characters exceeded