Hi all,
How can i call a BAPI frm an Application service.
after the deployment, what are the configurations to be done?
The code that i used:
i am not able to retrieve data from the Backend system with the following code.
-
//Custom code block
retValue = null; com.comName.xapps.extsrv.bapi__material__existencecheck.input.BAPI__MATERIAL__EXISTENCECHECK params =
new com.comName.xapps.extsrv.bapi__material__existencecheck.input.BAPI__MATERIAL__EXISTENCECHECK();
params.setMATERIAL(op);
try {
BAPI__MATERIAL__EXISTENCECHECKLocal bapi_local =this.getBAPI__MATERIAL__EXISTENCECHECK();
BAPI__MATERIAL__EXISTENCECHECK_dot_Response response = bapi_local.BAPI__MATERIAL__EXISTENCECHECK(params);
BAPIRETURN1 addr = response.getRETURN();
retValue = new ArrayList();
retValue.add(0,addr.getTYPE());
} catch (Exception e) {
e.printStackTrace();
// throw new ServiceException(e);
}
//end of Custom code block
-
Thanks in advance,
Best regards,
Sudheer.