cancel
Showing results for 
Search instead for 
Did you mean: 

Model Execution Problem

Former Member
0 Kudos

Hi

I have this structure of the model

Z_Bw_Exec_Query_Input

E_Datacol

E_Result

I_Params

W3Query

att:name

att:value

Output

att:I_Query

Z_Bw_Exec_Query_Output

W3Query

Zbwdatacol

Zbwresult

and I am writing this code in wdDoInit() of component controller



Z_Bw_Exec_Query_Input model =new Z_Bw_Exec_Query_Input();
model.setI_Query("ZDDVTEST123");
wdContext.nodeZ_Bw_Exec_Query_Input().bind(model);


			
W3Query paramElement1 = new W3Query();
paramElement1.setName("FILTER_VALUE_1");
paramElement1.setValue("201033");

W3Query paramElement2 = new W3Query();
paramElement2.setName("FILTER_IOBJNM_1");
paramElement2.setValue("0CALVEEK");

model.addI_Params(paramElement1);
model.addI_Params(paramElement2);

I am getting an error message as follows when I see the preview-

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Couldnt find info for class com.conexa.sap.model.W3Query in model com.conexa.sap.model.BW_Model@59d97818[scope=APPLICATION_SCOPE]

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.associatedModelClassInfo(DynamicRFCModelClass.java:220)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.elementIndexForFrontendName(DynamicRFCModelClass.java:1359)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsString(DynamicRFCModelClass.java:664)

at com.conexa.sap.model.W3Query.setName(W3Query.java:140)

at com.conexa.sap.comp.GR_GR_Comp.wdDoInit(GR_GR_Comp.java:113)

What should I do to resolve this issue?

Thanks and Regards,

Pankaj

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I am getting confusion, why you assigning W3Query object to I_Params. Please bind with proper context/node.

Former Member
0 Kudos

Hi Sheik

the structure of the model is like this. Under I_Params node there is a class node W3Query and that has attributes name and value. So basicly I have to assign many elements to I_Params which takes W3Query as parameter. That is why I am creating object of W3Query class and passing that as parameter but unfortunately getting error message.


Z_Bw_Exec_Query_Input
                   E_Datacol
                   E_Result
                   I_Params
                             W3Query
                                       att:name
                                       att:value
                   Output
                   att:I_Query
Z_Bw_Exec_Query_Output
W3Query
Zbwdatacol
Zbwresult

Former Member
0 Kudos

I didn't notice that there were some modifications done in the function module at the backend and the cache was not invalidated. I restarted the J2EE engine and that solved my problem.