on 09-13-2010 11:09 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vivek,
Put the ALV related code on WDDOPEN method of the window(window which you are using for window pop up)
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Vivek,
Please make sure that you are writing the ALV initialization code in WDDOINIT of second view (pop-up).
Regards,
Manogna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.