Skip to Content

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

Error in code like...

Hi,

I have errior of java,.null pointer ...at following codes.

public void onActiontoSubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActiontoSubmit(ServerEvent)

IWDMessageManager Manager = wdComponentAPI.getMessageManager();

try

{

wdContext.currentRequisition_ItemsElement().setPreq_Item(wdContext.currentRequisition_ItemsElement().getPreq_Item());

wdContext.currentRequisition_ItemsElement().setDoc_Type(wdContext.currentRequisition_ItemsElement().getDoc_Type());

wdContext.currentRequisition_ItemsElement().setDeliv_Date(wdContext.currentRequisition_ItemsElement().getDeliv_Date());

wdContext.currentRequisition_ItemsElement().setMaterial(wdContext.currentRequisition_ItemsElement().getMaterial());

wdContext.currentRequisition_ItemsElement().setPlant(wdContext.currentRequisition_ItemsElement().getPlant());

wdContext.currentRequisition_ItemsElement().setQuantity(wdContext.currentRequisition_ItemsElement().getQuantity()

wdContext.currentBapi_Requisition_Create_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

}

catch(WDDynamicRFCExecuteException ce){

Manager.reportException(ce.getMessage(), false);

Please help me ..help will be rewarded.

Gurprit Bhatia

}

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