cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with displaying ALV in a popup window

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

try placing the code in the HandleDefault method.

Former Member
0 Kudos

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.

Madhu2004
Active Contributor
0 Kudos

Hi Vivek,

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

Madhu

former_member1151507
Participant
0 Kudos

HI Vivek,

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

Regards,

Manogna

Former Member
0 Kudos

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