cancel
Showing results for 
Search instead for 
Did you mean: 

Error: An Instance of the View LAYOUT Already Exists in the Component

former_member737583
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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