on 09-19-2007 9:43 AM
HI,
I'm using SALV_WD_TABLE for displaying some data and I try to create layout variant. Then I get short dump:
"An Instance of the View LAYOUT Already Exists in the Component". Exception is: CX_WDR_RT_EXCEPTION. Have anyone idea why this short dump occures?
I revard any helping answers with points.
BR, Tomek
Hi,
this means that you have a view layout which is created in a component which already
has one with the same name, is it possible that you try to display 2 alvs using
the same component usage?
or that you use the view in two viewcontainers? another option is that you created
a view in your component with the name layout and you try to add the alv with the
same name, what are the names of your views in the application? you cannot have
two view usages with the same name
if you add the usage dynamically, handle it like this:
DATA: lr_usage TYPE REF TO if_wd_component_usage.
lr_usage = wd_this->wd_cpuse_layout( ).
IF lr_usage->has_active_component( ) IS INITIAL.
lr_usage->create_component( ).
ENDIF.
but you normally shouldn't do this when you add the component
usage to the component and to the correct view on design time
grtz,
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.