cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Error message Copied webdynpro Application from Standard

Former Member
0 Kudos

Hello All,

We have a required to Customized the Standard PLM Webdynpro Application /PLMU/WDC_DIR.

I have copied the webdynpro Application with Z.

But While Activate the Copied Z Webdynpro Application I am getting error message "WD_THIS" is not type-compatible with formal parameter "IO_WDC" where in the Standard is working fine.

Please help me.

Regards

Chittya Bej

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You didnt change anything here. Is it same in STD and in your local comp.

I suspect that it should be wd_this->wd_get_api( )

Former Member
0 Kudos

Hello

Thanks a lot for input.

I have just Copied with Standard and try to Activte and Found the issue.

I have tried to use your option but getting same message.

Please help.

Regards

Chittya Bej

Former Member
0 Kudos

Hi,

then what type is lo_wdc and wd_this (component/View controller ).?

May be you can post the code where you get this error.

Former Member
0 Kudos

Hello ,

Please find the below code

wd_assist->instantiate(

EXPORTING io_context = wd_context

io_wdc = wd_this ).

Where io_wdc is type ref to /PLMU/IWCI_WDC_DIR

wd_this is type ref to IF_COMPONENTCONTROLLER.

Please help

Regards

Chittya Bej

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>Where io_wdc is type ref to /PLMU/IWCI_WDC_DIR

>wd_this is type ref to IF_COMPONENTCONTROLLER.

The SAP component is saving a reference to its own component controller interface in a local variable. They coded their object reference to the exact type name of their component. Therefore as soon as you copy the component it is no longer type compatible. You could also change the data type of this object reference, but I think you should consider if you really need to copy this component. With the Enhancement Framework and Component/Application configuration; copying of Web Dynpro Components to make customer adjustments is generally not necessary or advisable.

Former Member
0 Kudos

Sometimes it's not possible to enhance a standard WDA component because the generation limit has already been reached. Or is there a workaround?