on 10-28-2018 4:30 AM
I ask for your support with this error when adding a record in a UDO table of Sap Business One using JCO Java, I can not find the solution.
Codigo:
public void tablaUDO(){
try {
IGeneralService gserv= company.getCompanyService().getGeneralService("MY_UDO");
IGeneralData gdata=(IGeneralData) gserv.getDataInterface(SBOCOMConstants.GeneralServiceDataInterfaces_gsGeneralData);
gdata.setProperty("Code", "C0001");
gserv.add(gdata);
} catch (Exception e) {
System.out.println("Error "+e);
e.printStackTrace();
}
}
Error:
om.sap.smb.sbo.wrapper.com.ComFailException: Invoke of: GetGeneralService
Source: SAPbobsCOM.CompaniesService.90.0
Source: SAPbobsCOM.CompaniesService.90.0
Description: Service Not Found
Description: Service Not Found
at com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Native Method)
at com.sap.smb.sbo.wrapper.com.Dispatch.invokev(Unknown Source)
at com.sap.smb.sbo.wrapper.com.Dispatch.callN(Unknown Source)
at com.sap.smb.sbo.wrapper.com.Dispatch.call(Unknown Source)
at com.sap.smb.sbo.api.CompanyService.getGeneralService(Unknown Source)
at Form.Interfaz.tablaUDO(Interfaz.java:201)
at Form.Interfaz.<init>(Interfaz.java:26)
at Form.Interfaz$1.run(Interfaz.java:238)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.