Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Why I already assigned value in web service but it still show null?

This is my code.

public void wdDoInit()

{

//@@begin wdDoInit()

ComplexType_xxxUsrAcct UsrAcct = new ComplexType_xxxUsrAcct();

UsrAcct.setUserAccount("USERACCOUNT");

wdComponentAPI.getMessageManager().reportSuccess(UsrAcct.getUserAccount());

ComplexType_xxxMessageSync querymsg = new ComplexType_xxxMessageSync();

querymsg.setxxxUserAccount(UsrAcct);

wdComponentAPI.getMessageManager().reportSuccess(querymsg.getxxxSelectionByUserAccount().getxxxUserAccount());

RequestxxxUserAccountRequest useraccount = new RequestxxxUserAccountRequest();

useraccount.setParameters(querymsg)

IPrivateTestESView.IRequestxxxUserAccountRequestElement Element = wdContext.createRequestxxxUserAccountRequestElement(useraccount);

wdContext.nodeRequestxxxUserAccountRequest().bind(Element);

try{

wdContext.currentRequestxxxUserAccountRequestElement().modelObject().execute();

}catch(Exception Ex){

wdComponentAPI.getMessageManager().reportException(Ex.getMessage(),false);

wdComponentAPI.getMessageManager().reportException(Ex.getLocalizedMessage(),false);

}

//@@end

}

I already set SAPUserAccount's value in UsrAcct object and also set UsrAcct object to querymsg object. in UsrAcct case, I can print its value.But in querymsg case, it show null value.

Do everyone have any idea and suggestion to me?

Thank you.

Former Member
Not what you were looking for? View more on this topic or Ask a question