Insert into Table using xml using Business One Integration Framework
Re: Insert into Table using xml using Business One Integration Framework
Re: Insert into Table using xml using Business One Integration Framework
Hi Ronny,
The reason i chose sql is because i know its quite easy to use it,
Can you provide the full keyvalue parameter..marked with red color on you screenshot just to confirm i am doing the right thing,
Other question after i have done all the steps,will i be able to retype all columns name from table into xml one by one or the system will autogenerate them.
I understand that DocEntry is a primary key.
Regards
Mafoko.
Setting NULL value
Hi!
How to set a null value in a B1 field using B1 outbound?
I have tried:
- <U_MyDate nil="true" />
- <U_MyDate nil="true">0</U_MyDate>
- <U_MyDate nil="true">18991230</U_MyDate>
Nothing works.
The nil attribute doesn't seem to work at all in B1 outbound. But nil is used in B1i in B1 retrieval.
If I erase the text in my date field U_MyDate in B1 client, then it will become null in the database.
Regards
Lars
Re: Call B1 function Parameter error
Hello Pierre,
in your post from
Re: Insert into Table using xml using Business One Integration Framework
Hi Mafoko,
"To avoid out of memory errors at integration framework runtime, the integration framework in general reduces SQL statements to 1000 characters in the return payload."
Jan
Re: Call B1 function Parameter error
Hi Thomas,
you are right atom was atom7.
Anyway nothing to be confused! You must use the xsl:include in the same atom you call the tempate b1ilib.strgReplace.
See your local documentation for useful examples.
Regards,
Pierre
looking for SAP existing services to create Sales Order
Hi,
Which method or services that already exist in sap business one integration framework i can use to create Sales Order and Create Invoice and Getitem details instead of creating my Own.
Note:it shouldn't be a mobile solution
Regards,
Mafoko
Error when searching for Sales Order in SAP Customer Checkout v2.0
Dear Experts,
I am using the Dutch localization. I got the application to work. Making transactions from the POS works, and they are synchronized to the ERP. However when i try to get a sales order from the ERP i run into the error below(i got it from the error log)
PS: I ran through all the guides rechecked everything, even filled blank settings, but i am unable to find anything wrong.
2016-05-18 11:20:55,304 [http-bio-127.0.0.1-9999-exec-6] FATAL com.sap.scco.ui.servlets.SearchServlet - java.lang.NullPointerException: while trying to invoke the method generated.GetOpenDocumentforBPResponseType$OpenDocumentListforBP.getRow() of a null object returned from generated.GetOpenDocumentforBPResponseType.getOpenDocumentListforBP()
2016-05-18 11:20:55,345 [Thread-6] INFO com.sap.scco.env.CNotificationMXBean - UI: java.lang.NullPointerException: while trying to invoke the method generated.GetOpenDocumentforBPResponseType$OpenDocumentListforBP.getRow() of a null object returned from generated.GetOpenDocumentforBPResponseType.getOpenDocumentListforBP()
2016-05-18 11:21:09,953 [http-bio-127.0.0.1-9999-exec-6] INFO org.apache.cxf.services.BusinessOneService.ipostep_vP.001sap0011.in_WCSX_com.sap.b1i.vplatform.runtime_INB_WS_CALL_SYNC_XPT_INB_WS_CALL_SYNC_XPT.ipo_proc_SoapBinding_HTTP.ipostep_vP.001sap0011.in_WCSX_com.sap.b1i.vplatform.runtime_INB_WS_CALL_SYNC_XPT_INB_WS_CALL_SYNC_XPT.ipo_proc - Outbound Message
---------------------------
ID: 2
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml
Headers: {Accept=[*/*], Authorization=[Basic QjFpYWRtaW46QjJpYWRtaW4=], SOAPAction=[""]}
Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetInvoiceByID><SysId>0010000101</SysId><InvoiceList><InvoiceInfo><ObjectType>17</ObjectType><InvoiceID>6058</InvoiceID><FetchDetails>true</FetchDetails></InvoiceInfo></InvoiceList></GetInvoiceByID></soap:Body></soap:Envelope>
--------------------------------------
2016-05-18 11:21:11,660 [http-bio-127.0.0.1-9999-exec-6] INFO org.apache.cxf.services.BusinessOneService.ipostep_vP.001sap0011.in_WCSX_com.sap.b1i.vplatform.runtime_INB_WS_CALL_SYNC_XPT_INB_WS_CALL_SYNC_XPT.ipo_proc_SoapBinding_HTTP.ipostep_vP.001sap0011.in_WCSX_com.sap.b1i.vplatform.runtime_INB_WS_CALL_SYNC_XPT_INB_WS_CALL_SYNC_XPT.ipo_proc - Inbound Message
----------------------------
ID: 2
Response-Code: 500
Encoding: ISO-8859-1
Content-Type: text/xml
Headers: {connection=[close], Content-Length=[8171], content-type=[text/xml], Date=[Wed, 18 May 2016 14:21:11 GMT], Expires=[Thu, 01 Jan 1970 00:00:00 GMT], Server=[], Set-Cookie=[JSESSIONID=58957C64DEFE82CB80837A04441D4EB6; Path=/B1iXcellerator; HttpOnly]}
Payload: <?xml version='1.0' encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Server Error</faultstring><detail><xci:reason xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc">while trying to invoke the method com.sap.b1i.bizprocessor.BizProcMessage.setProperty(java.lang.String, java.lang.String) of an object loaded from local variable 'inMsg'</xci:reason><xci:tid xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc">16051716091835763642C0A80207419D</xci:tid><xci:exception xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc">com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception:
com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: java.lang.NullPointerException: while trying to invoke the method com.sap.b1i.bizprocessor.BizProcMessage.setProperty(java.lang.String, java.lang.String) of an object loaded from local variable 'inMsg'</xci:exception><xci:callStack xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc">com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception:
com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: java.lang.NullPointerException: while trying to invoke the method com.sap.b1i.bizprocessor.BizProcMessage.setProperty(java.lang.String, java.lang.String) of an object loaded from local variable 'inMsg'
at com.sap.b1i.xcellerator.IPOWorkResource.execute(IPOWorkResource.java:527)
at com.sap.b1i.xcellerator.IPOStepInstance.executeInner(IPOStepInstance.java:683)
at com.sap.b1i.xcellerator.IPOStepInstance.executeOuter(IPOStepInstance.java:518)
at com.sap.b1i.xcellerator.Xcellerator.trigger(Xcellerator.java:1409)
at com.sap.b1i.xcellerator.SingleAdapterPool.trigger(SingleAdapterPool.java:462)
at com.sap.b1i.xcellerator.ActiveListenerInteractor.trigger2(ActiveListenerInteractor.java:191)
at com.sap.b1i.xcl_wsar.WSARListener.executeWSAx(WSARListener.java:219)
at com.sap.b1i.xcl_wsar.WSARListener.handleWS(WSARListener.java:156)
at com.sap.b1i.xcl_http.HTTPListener._doXxx(HTTPListener.java:1504)
at com.sap.b1i.xcl_http.HTTPListener._doPost(HTTPListener.java:1405)
at com.sap.b1i.xcl_http.HTTPListener.service(HTTPListener.java:805)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:789)
Caused by: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: java.lang.NullPointerException: while trying to invoke the method com.sap.b1i.bizprocessor.BizProcMessage.setProperty(java.lang.String, java.lang.String) of an object loaded from local variable 'inMsg'
at com.sap.b1i.bizprocessor.AtomScheduler.process(AtomScheduler.java:188)
at com.sap.b1i.bizprocessor.IncludeAtom.process(IncludeAtom.java:200)
at com.sap.b1i.bizprocessor.IncludeAtom.processOuter(IncludeAtom.java:171)
at com.sap.b1i.bizprocessor.BizProcessor.process(BizProcessor.java:451)
at com.sap.b1i.xcellerator.IPOStepInstance.executeTransaction(IPOStepInstance.java:1094)
at com.sap.b1i.xcellerator.IPOWorkResource.execute(IPOWorkResource.java:425)
... 24 more
Caused by: java.lang.NullPointerException: while trying to invoke the method com.sap.b1i.bizprocessor.BizProcMessage.setProperty(java.lang.String, java.lang.String) of an object loaded from local variable 'inMsg'
at com.sap.b1i.xcellerator.XsPort.call(XsPort.java:67)
at com.sap.b1i.bizprocessor.CallAtomClassInstance.execute(CallAtomClassInstance.java:70)
at com.sap.b1i.bizprocessor.CallAtom.process(CallAtom.java:152)
at com.sap.b1i.bizprocessor.AtomStatusToken.process(AtomStatusToken.java:433)
at com.sap.b1i.bizprocessor.AtomScheduler.run(AtomScheduler.java:788)
at com.sap.b1i.bizprocessor.BPThreadPool$BPRunnable.run(BPThreadPool.java:51)
at com.sap.b1i.bizprocessor.QedWorkerThreadPool$QedWorkerThread$BeforeAfterThread.run(QedWorkerThreadPool.java:243)
at com.sap.b1i.bizprocessor.QedWorkerThreadPool$QedWorkerThread.start(QedWorkerThreadPool.java:310)
at com.sap.b1i.bizprocessor.BPThreadPool.createBPThread(BPThreadPool.java:77)
at com.sap.b1i.bizprocessor.AtomScheduler.process(AtomScheduler.java:231)
at com.sap.b1i.bizprocessor.IncludeAtom.process(IncludeAtom.java:200)
at com.sap.b1i.bizprocessor.AtomStatusToken.process(AtomStatusToken.java:427)
at com.sap.b1i.bizprocessor.AtomScheduler.run(AtomScheduler.java:788)
at com.sap.b1i.bizprocessor.BPThreadPool$BPRunnable.run(BPThreadPool.java:51)
at com.sap.b1i.bizprocessor.QedWorkerThreadPool$QedWorkerThread$BeforeAfterThread.run(QedWorkerThreadPool.java:243)
at com.sap.b1i.bizprocessor.QedWorkerThreadPool$QedWorkerThread.start(QedWorkerThreadPool.java:310)
at com.sap.b1i.bizprocessor.BPThreadPool.createBPThread(BPThreadPool.java:77)
at com.sap.b1i.bizprocessor.AtomScheduler.process(AtomScheduler.java:231)
at com.sap.b1i.bizprocessor.IncludeAtom.process(IncludeAtom.java:200)
at com.sap.b1i.bizprocessor.AtomStatusToken.process(AtomStatusToken.java:427)
at com.sap.b1i.bizprocessor.AtomScheduler.run(AtomScheduler.java:788)
at com.sap.b1i.bizprocessor.BPThreadPool$BPRunnable.run(BPThreadPool.java:51)
at com.sap.b1i.bizprocessor.QedWorkerThreadPool$QedWorkerThread$BeforeAfterThread.run(QedWorkerThreadPool.java:243)
at com.sap.b1i.bizprocessor.QedWorkerThreadPool$QedWorkerThread.start(QedWorkerThreadPool.java:310)
at com.sap.b1i.bizprocessor.BPThreadPool.createBPThread(BPThreadPool.java:77)
at com.sap.b1i.bizprocessor.AtomScheduler.process(AtomScheduler.java:231)
at com.sap.b1i.bizprocessor.IncludeAtom.process(IncludeAtom.java:200)
at com.sap.b1i.bizprocessor.AtomStatusToken.process(AtomStatusToken.java:427)
at com.sap.b1i.bizprocessor.AtomScheduler.run(AtomScheduler.java:788)
at com.sap.b1i.bizprocessor.BPThreadPool$BPRunnable.run(BPThreadPool.java:51)
at com.sap.b1i.bizprocessor.QedWorkerThreadPool$QedWorkerThread$BeforeAfterThread.run(QedWorkerThreadPool.java:243)
at com.sap.b1i.bizprocessor.QedWorkerThreadPool$QedWorkerThread.start(QedWorkerThreadPool.java:310)
at com.sap.b1i.bizprocessor.BPThreadPool.createBPThread(BPThreadPool.java:77)
at com.sap.b1i.bizprocessor.AtomScheduler.process(AtomScheduler.java:231)
at com.sap.b1i.bizprocessor.IncludeAtom.process(IncludeAtom.java:200)
at com.sap.b1i.bizprocessor.AtomStatusToken.process(AtomStatusToken.java:427)
at com.sap.b1i.bizprocessor.AtomScheduler.run(AtomScheduler.java:788)
at com.sap.b1i.bizprocessor.BPThreadPool$BPRunnable.run(BPThreadPool.java:51)
at com.sap.b1i.bizprocessor.QedWorkerThreadPool$QedWorkerThread$BeforeAfterThread.run(QedWorkerThreadPool.java:243)
at com.sap.b1i.bizprocessor.QedWorkerThreadPool$QedWorkerThread.start(QedWorkerThreadPool.java:310)
at com.sap.b1i.bizprocessor.BPThreadPool.createBPThread(BPThreadPool.java:77)
at com.sap.b1i.bizprocessor.AtomScheduler.process(AtomScheduler.java:231)
... 29 more
</xci:callStack><xci:retryLater xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc">false</xci:retryLater></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
--------------------------------------
Re: Call B1 function Parameter error
Got it. Thanks!
It simply needed to be a child of the stylesheet.
Now the scenario works.
Thanks for help & the usefull blog.
Regards,
Thomas
Re: looking for SAP existing services to create Sales Order
Hi Mafoko,
I think, that you must create your own scenario with B1 atoms ... but SAP Business One Mobile App has opportunity AddSalesOrder and GetItemDetail.
Jan
Business One Mobile App - Will not work, all out of ideas.
1. I have setup my user code as follows:
- mobile user check box
- mobile phone number
- mobile device ID
- User is super user, maximum licenses and authorization in SAP B1.
2. I have Installed the app on an iphone 6S.
- added server name e.g. SERVER1-LOCATION:8080
- selected SSL no (have tried yes as well)
- added company database name
- added user code (same as above)
- added phone number (same as above)
- copied and pasted emailed device id to user code above
3. Logged onto "Integration Administration" - integration framework link (B1i login)
- followed instructions in http://correct.org.il/b1_mobileapp_guide.pdf
4. Attempt to logon to the app (while connected to company WIFI), after 30 seconds I get the following message:
"CONNECTION FAILED - The request timed out. (-1001)"
5. I also followed this guide iPad and iPhone Configuration Setting, but I get lost at LAN Server area at the bottom.
What am I missing here?
Regards,
Re: DiServer "Could not load virtual interface"
Hi Alberto,
I am facing same issue .Do you find any solution for this ? .
Thanks
Surajit
Email error
Hi all
I am getting following issue when i am sending mail using gmail.
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. w28sm4960920qtc.16 - gsmtp
Thanks & Regards
Sampath.P.T
Master replicate in Console DB
Hi Expert,
In the intercompany integration add-on we found that we can't replicate the master data to Console DB.
So please anybody let me know if we want to replicate the Master data to console DB then what configuration we have to do.
And if its not possible then please give me the reason.
Regards,
Tushar
Re: Master replicate in Console DB
Hi Tushar,
Only currencies, cost centers, distribution rules and project masters are supposed to replicate to Consolidation company, as Consolidation company is just a dummy company for consolidation reporting only.
Regards,
Yash
Re: Master replicate in Console DB
Hi Yash,
Thanks for your reply.
So I have doubt that then what about those JE which have customer or vendor information. Like AR Invoice & AP Invoice JE, On those JE its hit Customer / Vendor Code
Regards,
Tushar
Re: Master replicate in Console DB
Hi Tushar,
The question is not clear.
For JEs replication, you have to use Consolidation process of Intercompany Solution, is this what you are asking for?
Regards,
Yash
Re: Master replicate in Console DB
Hi Yash,
Yes I will use the consolidation process.
But for ex. in one of my JE is for AR Invoice.
Debit <Customer> (Customer Code)
Credit Sales Revenue
But in my consolidation database there is no customer so how this JE will be passed to Console database from Branch ?
Regards,
Tushar
Webservice error
Hi all i am getting following error when i was post value in webservice.
but same url bring some values in when i am using SOAP UI tool
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode><faultstring xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</faultstring></s:Fault></s:Body></s:Envelope>