Skip to Content
avatar image
Former Member

Issue with displaying ALV in a popup window

Hi Experts,

I am trying to create an popup window with an ALV in it. TO display the ALV i have defined the component usage for SALV_WD_TABLE component.When the ALV is displayed for the first time it shows up correctly with required data. When i try to display ALV popup again only the popup window frame gets displayed the ALV is missing from the popup window.

If i refresh the main component by clicking browser refresh buttion and then click for ALV popup dsplay i get the correct popup display the first time and then agin the same issue.

Has anyone else come across this issue before. All your suggestions, responses are welcome.

Thanks,

Vivek

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Sep 13, 2010 at 11:49 PM

    Hi Vivek,

    Please check where is the code written to popluate the values for the ALV,if it is written in the intitialization part then it needs to be moved to WDDOMODIFYVIEW.

    Hope this help

    Regards,

    Kedar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 14, 2010 at 06:00 AM

    HI Vivek,

    Please make sure that you are writing the ALV initialization code in WDDOINIT of second view (pop-up).

    Regards,

    Manogna

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 14, 2010 at 06:08 AM

    Hi Vivek,

    Put the ALV related code on WDDOPEN method of the window(window which you are using for window pop up)

    Madhu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 14, 2010 at 03:24 PM

    HI,

    My popup window has only one embedded view, the TABLE view of used component SALV_WD_TABLE hence i cannot modify the TABLE view.

    I tired putting the following code for context node initialization in both the the methods WDDOONOPEN and WDDOINIT of the window which has the embedded view. But it dosen't make any difference i face the same issue even with these changes.

     types: begin of  ty_belnr,
             belnr type vbkpf-belnr,
           end of  ty_belnr.
    
    data: lt_belnr type standard table of ty_belnr,
          lo_node type ref to if_wd_context_node,
          lo_element type ref to if_wd_context_element.
    
    select belnr
      from vbkpf
      into table lt_belnr
     where ausbk = 'UC'
       and bukrs = 'UC'
       and gjahr = '2011'
       and usnam = sy-uname.
    
     if sy-subrc eq 0.
       lo_node = wd_context->get_child_node( 'DOC_NUMBERS').
       lo_node->bind_elements( new_items = lt_belnr[] ).
     endif.
    

    Edited by: Vivek Priyadarshi on Sep 14, 2010 5:24 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Same issue even when code if placed in HANDLEDEFAULT event of popup window. I suspect this has nothing to do with data not being populated in the context node.

  • avatar image
    Former Member
    Sep 15, 2010 at 04:25 PM

    Hi all,

    Finally the issue is resolved. I had to delete the instance of the used ALV component on action WDDOONCLOSE. Below is the code i used to resolve the issue.

    method WDDOONCLOSE .
    
    DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
    l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).
    IF l_ref_cmp_usage->has_active_component( ) IS not INITIAL.
    l_ref_cmp_usage->DELETE_COMPONENT( ).
    ENDIF.
    
    endmethod.
    
    

    Add comment
    10|10000 characters needed characters exceeded