cancel
Showing results for 
Search instead for 
Did you mean: 

model object issue

Former Member
0 Kudos

Hi all,

By default ess/skl DC contains 1 model namely "Skills"; and I've added ZSkills new model.

I got errors when I try to execute the coding below:

wdContext.nodeZ_Hr_Xss_Skl_Get_Quali_Detail_Input().bind(

(Z_Hr_Xss_Skl_Get_Quali_Detail_Input) model.createModelObject(

Z_Hr_Xss_Skl_Get_Quali_Detail_Input.class));

Error message:

Couldnt find info for class com.tw.zskills.model.Z_Hr_Xss_Skl_Get_Quali_Detail_Input in model com.sap.xss.hr.skl.model.Skills@1ae81ae8[scope=APPLICATION_SCOPE]

When i mouse over on "model" of "model.createModel.." I found that the model is refering to "Skills com.sap.xss.hr.skl.FcSklBusinessLogic.model"

How to change the model to refer to ZSkills model instead?

Greatly appreciate any comment/suggestion.

Best regards,

Xiang Li Heah

Edited by: xiangli heah on Jun 2, 2009 8:28 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try this if this is Adaptive WebService Model:

ZSkills objZSkillsModel=new ZSkills();
Z_Hr_Xss_Skl_Get_Quali_Detail_Input objReq=new Z_Hr_Xss_Skl_Get_Quali_Detail_Input(objZSkillsModel);
wdContext.nodeZ_Hr_Xss_Skl_Get_Quali_Detail_Input().bind(objReq);

Try this if this is Adaptive RFC Model:

ZSkills objZSkillsModel=new ZSkills();
Z_Hr_Xss_Skl_Get_Quali_Detail_Input objReq=new Z_Hr_Xss_Skl_Get_Quali_Detail_Input();
wdContext.nodeZ_Hr_Xss_Skl_Get_Quali_Detail_Input().bind(objReq);

(Or)

ZSkills  model=new ZSkills();
wdContext.nodeZ_Hr_Xss_Skl_Get_Quali_Detail_Input().bind(
(Z_Hr_Xss_Skl_Get_Quali_Detail_Input) model.createModelObject(
Z_Hr_Xss_Skl_Get_Quali_Detail_Input.class));

Regards,

Charan

Former Member
0 Kudos

Hi Charan,

This solve the problem. Many thanks.

Best regards,

Xiang Li Heah

Answers (0)