Skip to Content

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

Code is not working upto date

Hi,

My code is like that......

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

{

//@@begin onActionSubmitPressed(ServerEvent)

IWDMessageManager manager = wdComponentAPI.getMessageManager();

wdThis.wdFirePlugToUploadView();

String ename = wdContext.currentZzbapi_Tavel_Request_InputElement().getEmpname();

String costcenter = wdContext.currentZzbapi_Tavel_Request_InputElement().getCostcenter();

String country = wdContext.currentZzbapi_Tavel_Request_InputElement().getDest_Country();

String city = wdContext.currentZzbapi_Tavel_Request_InputElement().getDest_City();

wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Form Submitted: Name" + ename + "Costcenter" +costcenter);

wdThis.wdGetUploadDownloadInteractiveFormCompController().ExecuteBapi();

//@@end

}

<b>and my method excute bapi method is like that.......</b>

{

//@@begin ExecuteBapi()

IWDMessageManager manager = wdComponentAPI.getMessageManager();

try

{

wdContext.currentZzbapi_Tavel_Request_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

}

catch(WDDynamicRFCExecuteException ce)

{

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

}

//@@end

}

But database can not updated ....

Regards,

Gurprit Bhatia

Former Member

Helpful Answer

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