Quantcast
Channel: SCN : Unanswered Discussions - SAP Business One Integration Technology
Viewing all 373 articles
Browse latest View live

B1i extract XML from SOAP request

$
0
0

Hi experts , I have to extract the data encapsulated in XML, passing me a Web Services with SOAP.

As I can extract the contents of XML encapsulated in a new XML. I read that a new XSLT can be used , but I am not getting any results .


This is my Integration:


<Body>

      <Payload Role="T" Type="Call" />

       <Payload Role="S">*** no test message specified ***</Payload>

      <Payload Role="X" id="atom2">

           <call xmlns="">

                 <SOAPAction>http://www.add.com.br/ExportarDados</SOAPAction>

                 <connect serviceport="Soap1">

  <destProtocol>http</destProtocol>

  <destHost>hmlsginaturabo.add.com.br</destHost>

  <destPort>80</destPort>

  <destPath>Servicos/Integracao/Padrao/IntegracaoPadraoWS.asmx</destPath>

  <query />

                 <proxyHost />

  <proxyPort />

  <authentification />

  <user />

  <password />

  <sslTruststorePath />

  <sslTruststorePassword />

</connect>

<payload operation="">

      <ParametrosExportacao xmlns="http://www.add.com.br/">

            <tokenAutenticacao>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</tokenAutenticacao>

            <interfaceIntegracao>PessoaPadraoERP</interfaceIntegracao>

            <versao>1.0</versao>

  </ParametrosExportacao>

  </payload>

  <query id="httpheader.???" value="" />

  </call>

  </Payload>

<Payload Role="C" id="atom1" statusNo="0" statusMsg="success" reference="atom2" payload="atom2" calltype="solicit response (call/reply)"      adapter="WSAS">

<http.header>

  <http.header.info id="X-AspNet-Version" value="2.0.50727" />

  <http.header.info id="Date" value="Tue, 20 Oct 2015 15:02:04 GMT" />

  <http.header.info id="Content-Length" value="3012946" />

  <http.header.info id="X-UA-Compatible" value="IE=edge,chrome=1" />

  <http.header.info id="Content-Type" value="text/xml; charset=utf-8" />

  <http.header.info id="Server" value="Microsoft-IIS/7.5" />

  <http.header.info id="Cache-Control" value="private, max-age=0" />

  </http.header>

<ExportacaoResponse xmlns="http://www.add.com.br/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<IntegracaoResult>

  <DataHora>2015-10-20T11:02:04.2051563Z</DataHora>

  <CodigoTicket>1111</CodigoTicket>

  <Ticket xsi:type="xsd:string">

  <?xml version="1.0" encoding="utf-8"?> <ArrayOfPessoaPadraoERPOut_v1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <PessoaPadraoERPOut_v1> <CodigoDocumento xmlns="http://www.add.com.br/">8344</CodigoDocumento> <Codigo xmlns="http://www.add.com.br/">-5</Codigo> <Nome xmlns="http://www.add.com.br/">Equipe Comercial</Nome> <Apelido xmlns="http://www.add.com.br/">Equipe Comercial</Apelido> <Tipo xmlns="http://www.add.com.br/">1</Tipo> <PessoaFisica xmlns="http://www.gera.com.br/"> <DataNascimento>1980-01-01T00:00:00</DataNascimento> <Sexo>2</Sexo> <Filhos>0</Filhos> </PessoaFisica> <Funcao xmlns="http://www.add.com.br/">

  <Tipo>1</Tipo> <Telefone>2815334</Telefone> </Telefone> <PessoaFisica xmlns="http://www.add.com.br/"> <DataNascimento>1997-01-19T00:00:00</DataNascimento> <Sexo>1</Sexo> <EstadoCivil>1</EstadoCivil> <Filhos>0</Filhos> </PessoaFisica> <Funcao xmlns="http://www.add.com.br/"> <CodigoFuncao>1</CodigoFuncao> <NomeFuncao>Revendedora</NomeFuncao> <SituacaoComercial>4</SituacaoComercial> <Campanha>201509</Campanha> <SaldoCredito>576000</SaldoCredito> <LimiteCredito>576000</LimiteCredito> <EstruturaComercial0>BRASIL</EstruturaComercial0> <EstruturaComercial1>OF. LA PAZ</EstruturaComercial1> <EstruturaComercial2>CHACALTAYA</EstruturaComercial2> <EstruturaComercial3>Lessly Liszet Conde Mendoza </EstruturaComercial3> </Funcao> <Funcao xmlns="http://www.add.com.br/"> <CodigoFuncao>9</CodigoFuncao> <NomeFuncao>Consumidor Final</NomeFuncao> <SituacaoComercial>1</SituacaoComercial> <SaldoCredito>0</SaldoCredito> <LimiteCredito>0</LimiteCredito> </Funcao> </PessoaPadraoERPOut_v1> </ArrayOfPessoaPadraoERPOut_v1>

</Ticket>

  <CheckSum>aea002a83b604096db98b5927149ef8f74a06025</CheckSum>

  </IntegracaoResult>

  </ExportacaoResponse>

  </Payload>


As I can extract the contents of shipping < Ticket > with the structure of XML ??. Experts please help.


How to Enable SMTP/IMAP,POP3 to B1iSN 8.8

$
0
0

How to Enable SMTP/IMAP,POP3 to B1iSN 8.8? Where to find a System Type for Mail Adapter?

Can we have two B1iSN servers installed in parallel and integrated towards B1 ?

$
0
0

Can we have two B1iSN servers installed in parallel and integrated towards B1?

What's the difference of B1iSN9.0 & B1if

$
0
0

What's the difference of B1iSN9.0 & B1if?

 

And I am aware of the fact that the integration components also are shipped with the B1 installation media, also I know we can download the individual B1iSN installation media "B1ISN90P_6-10011802.ZIP"

 

so, What's the difference of the two B1iSN installation media? and What's the difference between B1iSN9.0 and B1if?

How to solve an error of "specify an inbound message" B12B1 in B1if , step of testing?.

$
0
0

Hi all,

I have a problem in B12B1 in B1if, I use SAP B1 9.1 PL6.

 

I tried to configure all configurations needed by using pdf file which shows how to install and configure B1if and then I used video which shows how to integrate B12B1 (of purchase order to sales order). I did all steps correctly but step of testing gives error to test inbound message like this

b1if_error.png

 

There is no rectest.xml file found there like this.

b1if_error2.png

 

 

So what can I do in order to find rectest.xml in that textbox?

I want to continue with my global table.

 

Please anyone can help me.

How to browse B1if files in altova xmlspy 2016?.

$
0
0

Hi all,

I have a problem where I want to edit xml files of B1if (B12B1) in altova xmlspy 2016, I enter username, password and http://localhost:8080/B1iXcellerator/exec/dummy/ .  when I press browse button I find error message HTTP error in server 'localhost' like this

altova error message.png

So I went to MAINTENANCE/Cfg Dev Env and I checked Embedded XML Editor, but the error is still the same.

 

How can I solve that the problem?

 

Please anyone can help me.

B1if Event Sender filter out UDO and UDT

$
0
0

How do I filter out UDOs and UDTs? 

 

I have been monitoring the SEVT table and noticed a large amount of UDOs that seam to cause our B1if scenario for Pick Lists to take some time.  I want to filter out the large amount of UDOs and UDTs that are filling up the SEVT table.  The only problem is the ObjectType field in SEVT table all have -3 followed by the ObjectType.

B1i using http and port 8080

$
0
0

Hi all,

we have created some webservices using the B1i.

The webservices work when I run them using http on the internal network with the local server ip address and port 8080.

They do not work if I do the same thing over the internet using the external ip address.

If I use https and port 8443 they work with the external IP over the internet.

 

Why won't http and port 8080 work with the external ip?

 

thanks,

Costas


Can we have both B1iSN and B1if installed on separate server but need to integrate with the same B1 server.

$
0
0

Can we have both B1iSN and B1if installed on separate server but need to integrate with the same B1 server.

 

I am not sure if the Event Sender and DI Proxy can communicate with two integration platform at the same time.

B1if new cockpit via external browser

$
0
0

Hello experts,

 

I wonder to have access to the new B1IF cockpit via browser outside B1iXcellerator application.

 

Is it possibile?

 

Many thanks in advance.

 

Regards,

 

Pierre

Save Attachement to Delivery

$
0
0

Hello Experts,

 

is there a possibility to save a Attachment to Document, for example to a Delivery?


I have found the object 221 / Attachement 2 but my attempt failed:


<AdmInfo>            <!--multiple such elements are allowed-->            <Object>221</Object>            <Version>2</Version>        </AdmInfo>        <Attachments2_Lines>            <!--multiple such elements are allowed-->            <row>                <!--multiple such elements are allowed-->                <SourcePath>C:\temp\Out\test.pdf</SourcePath>                <FileName>test.pdf</FileName>                <FileExtension>pdf</FileExtension>                <!--<Override>tNo</Override>-->            </row>        </Attachments2_Lines>    

the Errormessage is not helpful:

<Payload status="success" id="atom3" Role="C" DImsg=" 
Exception : DI error: Invoke of: GetBusinessObjectFromXML Source: SAPbobsCOM.Company.90.0 Description: ...." 
DIresult="failure" keyvalue="" keyname="" payload="atom4" objectid="221" method="Synchronous Insert" 
b1login="Technical User" system="0010000113"/>

has anybody solved this problem?

 

 

Thanks and best Regards

B1if Error

$
0
0

Hi All,

 

i am getting following error in B1if.

 

 

java.lang.RuntimeException: Invoke of: EndTransactionSource: SAPbobsCOM.Company.90.0Description: (207)

 

 

 

anyone know about this error. Please help me. this package working fine yesterday today only i have this issue

 

 

 

 

Thanks & Regards

narain

B1if - Call Crystal Reports atom

$
0
0

Hi All,

I'm trying to generate PDF using Call Crystal Report atom. I received an exception:

 

com.sap.b1i.xcellerator.XcelleratorException: XCE116 The directory for for BizStore transfer to temporary report-files could not be created: C:\Program Files (x86)\sap\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator\reports.temp

 

Does anyone know this issue?

 

Kind Regards,

Szymon

Prefix not mapped

$
0
0

Hi!

I'm having trouble with namespaces and this is not the first time.

I'm developing a scenario step that has inbound BusinessPartner event and void output. The BP information is sent to a salesforce webservice in 5 http call atoms inside the step.

Last week this worked very well.

 

But now, after adding more atoms and logic, I get the exception "Prefix not mapped: soapenv".

 

  1. I have now put the namespace definition xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" in every possible places in all xsl-files and in the bdf-file. But this doesn't help.

  2. I found Bastians recommendation Prefix is not mapped to a namespace and added all namespaces in the Inbound Channel Identification Namespace list:
    xmlns:b1e="urn:com.sap.b1i.sim:b1event"

xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent"

xmlns:b1im="urn:com.sap.b1i.sim:b1imessage"

xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms"

xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter"

xmlns:rfc="urn:sap-com:document:sap:rfc:functions"

xmlns:sim="urn:com.sap.b1i.sim:entity"

xmlns:utils2="com.sap.b1i.bpc_tools.Utilities"

xmlns:vpf="urn:com.sap.b1i.vplatform:entity"

xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xup="urn:com.sap.b1i.xcellerator:upltdoc"

xmlns:urn="urn:enterprise.soap.sforce.com"

xmlns:urn1="urn:sobject.enterprise.soap.sforce.com"

 

But this results in an exception in an atom that uses the document function: "Exception while sending warning. in 'document' - function"

 

The code for the document is:

<xsl:variable name="vpSF_SYSTEM" select="/vpf:Msg/vpf:Header/vpf:Properties/vpf:prop[./@id=&apos;SF_SYSTEM&apos;]/@value"></xsl:variable>

<xsl:variable name="sysIdDocPath" select="concat(&apos;/com.sap.b1i.system.sld.directory/SysId.xml/&apos;,$vpSF_SYSTEM,&apos;(Id)&apos;)"/>

<xsl:variable name="sysIdDoc" select="document($sysIdDocPath)"/>

<xsl:variable name="sysIdHTTA" select="$sysIdDoc/sim:SysId/sim:ConnectivityList/sim:Connectivity[./@ConnectivityTypeId=&apos;HTTA&apos;]"/>

 

Both sim and vpf is in the namespace list. Why is this happening?

This code works if I don't add the namespaces in the Inbound channel.

 

Any help appreciated!

 

Regards

Lars

B1i extract XML from SOAP request

$
0
0

Hi experts , I have to extract the data encapsulated in XML, passing me a Web Services with SOAP.

As I can extract the contents of XML encapsulated in a new XML. I read that a new XSLT can be used , but I am not getting any results .


This is my Integration:


<Body>

      <Payload Role="T" Type="Call" />

       <Payload Role="S">*** no test message specified ***</Payload>

      <Payload Role="X" id="atom2">

           <call xmlns="">

                 <SOAPAction>http://www.add.com.br/ExportarDados</SOAPAction>

                 <connect serviceport="Soap1">

  <destProtocol>http</destProtocol>

  <destHost>hmlsginaturabo.add.com.br</destHost>

  <destPort>80</destPort>

  <destPath>Servicos/Integracao/Padrao/IntegracaoPadraoWS.asmx</destPath>

  <query />

                 <proxyHost />

  <proxyPort />

  <authentification />

  <user />

  <password />

  <sslTruststorePath />

  <sslTruststorePassword />

</connect>

<payload operation="">

      <ParametrosExportacao xmlns="http://www.add.com.br/">

            <tokenAutenticacao>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</tokenAutenticacao>

            <interfaceIntegracao>PessoaPadraoERP</interfaceIntegracao>

            <versao>1.0</versao>

  </ParametrosExportacao>

  </payload>

  <query id="httpheader.???" value="" />

  </call>

  </Payload>

<Payload Role="C" id="atom1" statusNo="0" statusMsg="success" reference="atom2" payload="atom2" calltype="solicit response (call/reply)"      adapter="WSAS">

<http.header>

  <http.header.info id="X-AspNet-Version" value="2.0.50727" />

  <http.header.info id="Date" value="Tue, 20 Oct 2015 15:02:04 GMT" />

  <http.header.info id="Content-Length" value="3012946" />

  <http.header.info id="X-UA-Compatible" value="IE=edge,chrome=1" />

  <http.header.info id="Content-Type" value="text/xml; charset=utf-8" />

  <http.header.info id="Server" value="Microsoft-IIS/7.5" />

  <http.header.info id="Cache-Control" value="private, max-age=0" />

  </http.header>

<ExportacaoResponse xmlns="http://www.add.com.br/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<IntegracaoResult>

  <DataHora>2015-10-20T11:02:04.2051563Z</DataHora>

  <CodigoTicket>1111</CodigoTicket>

  <Ticket xsi:type="xsd:string">

  <?xml version="1.0" encoding="utf-8"?> <ArrayOfPessoaPadraoERPOut_v1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <PessoaPadraoERPOut_v1> <CodigoDocumento xmlns="http://www.add.com.br/">8344</CodigoDocumento> <Codigo xmlns="http://www.add.com.br/">-5</Codigo> <Nome xmlns="http://www.add.com.br/">Equipe Comercial</Nome> <Apelido xmlns="http://www.add.com.br/">Equipe Comercial</Apelido> <Tipo xmlns="http://www.add.com.br/">1</Tipo> <PessoaFisica xmlns="http://www.gera.com.br/"> <DataNascimento>1980-01-01T00:00:00</DataNascimento> <Sexo>2</Sexo> <Filhos>0</Filhos> </PessoaFisica> <Funcao xmlns="http://www.add.com.br/">

  <Tipo>1</Tipo> <Telefone>2815334</Telefone> </Telefone> <PessoaFisica xmlns="http://www.add.com.br/"> <DataNascimento>1997-01-19T00:00:00</DataNascimento> <Sexo>1</Sexo> <EstadoCivil>1</EstadoCivil> <Filhos>0</Filhos> </PessoaFisica> <Funcao xmlns="http://www.add.com.br/"> <CodigoFuncao>1</CodigoFuncao> <NomeFuncao>Revendedora</NomeFuncao> <SituacaoComercial>4</SituacaoComercial> <Campanha>201509</Campanha> <SaldoCredito>576000</SaldoCredito> <LimiteCredito>576000</LimiteCredito> <EstruturaComercial0>BRASIL</EstruturaComercial0> <EstruturaComercial1>OF. LA PAZ</EstruturaComercial1> <EstruturaComercial2>CHACALTAYA</EstruturaComercial2> <EstruturaComercial3>Lessly Liszet Conde Mendoza </EstruturaComercial3> </Funcao> <Funcao xmlns="http://www.add.com.br/"> <CodigoFuncao>9</CodigoFuncao> <NomeFuncao>Consumidor Final</NomeFuncao> <SituacaoComercial>1</SituacaoComercial> <SaldoCredito>0</SaldoCredito> <LimiteCredito>0</LimiteCredito> </Funcao> </PessoaPadraoERPOut_v1> </ArrayOfPessoaPadraoERPOut_v1>

</Ticket>

  <CheckSum>aea002a83b604096db98b5927149ef8f74a06025</CheckSum>

  </IntegracaoResult>

  </ExportacaoResponse>

  </Payload>


As I can extract the contents of shipping < Ticket > with the structure of XML ??. Experts please help.


No scenario step (vBIU) assigned for step for sender system (SysId)

$
0
0

Hi All,

 

 

I import data from CSV File. Actually i have this packages in my previous version i just imported in New Patch Level.  Most of the time i imported packages from previous Patch level i got this error.

 

highly dispointed with this issue.

 

 

 

No scenario step (vBIU) assigned for step for sender system (SysId)

Call a step through Outbound is not working

$
0
0

  Hi Experts,

 

     We have designed a scenario step to call a scenario step through Outbound.

     First Step posts the BP, Second step makes a payment against the posted BP.

     We have designed the second step with predecessor type, and called it in the Outbound of First step.

 

 

     Outbound Setup:

 

 

 

 


1.jpg

 

 

 

 

 

 

 

Inbound Setup for the step to be called:

 

 

 

 

 

2.jpg

 

 

 

 

 

Step 1 Execution Success:

 

 

3.jpg

 

 

 

 

Is anything to do with the atom0?. Do we miss any content here.??

 

 

 

 

 

4.jpg

 

 

 

 

Suggestions highly appreciated.

 

 

Thanks & Regards,

 

Venki .A

SAP Business One Mobile Tutorial

$
0
0

Hi experts,

 

I need to install the ver. 1.11.2 on my iPhone 4 (works with iOS 7.1.2) and I need to connect myself to a SAP HANA server where my database run.

I'm able to complete all the steps for the generation of a certificate, but I'm always in difficult whenever I try to setup the Integration framework and the connection settings inside the application settings.

 

I've installed the B1if in my computer and I've activate the mobile scenario and now I need to understand:

 

- which are the fields of the SLD needs to be compiled and how.

I need to write on the destHost the IP or the server name? Which port is the right one for SAP HANA? 30015/40000?

 

- I need to understand if I only have to compile the B1A Server (as the user guide shows) and what are the right credentials for it, or if I also need to compile the WSforMobile.

 

Please, it's so important for me to solve this issue!

I'm working with SAP Business One version for SAP HANA 9.1 PL07 (I'm NOT WORKING for SAP Business One Analytics powered by SAP HANA).

Thanks for the help,

 

Michele

Problem with BP update

$
0
0

Hi!

I'm creating and updating business partner from external system and gets the famous error:

 

DI Error: (-2035) This entry already exists in the following tables (ODBC -2035)

 

The table name is not shown but it must be either CRD1 (BPAddresses) or OCPR (ContactEmployees) as it's the only nodes that I send in besides OCRD.

It seems that I handle the key value wrong as it only happens when updating an existing customer. Creating a new customer works ok.

 

This is how I do:

 

<BPAddresses>

     <row>

          <AddressName>Name of address</AddressName>

          <BPCode>existing cardcode</BPCode>

          <AddressType>bo_ShipTo</AddressType>

          ...

 

<ContactEmployees>

     <row>

          <InternalCode>existing CntctCode</InternalCode>

          <Name>existing name</Name>

          ...

 

The action is performed in a B1 Call atom. Here is the payload:

 

<Envelope xmlns="urn:com.sap.b1i.xcellerator:spltdoc">

     <Header>

          <Action throwException="true" autoCommit="false">add</Action>

          <WritePolicy insert_on_exists="fallback2U" update_policy="regular" update_on_miss="fallback2I"/>

     </Header>

     <Body>

          <BOM>

               <BO>

                    <AdmInfo>

                         <Object>2</Object>

                         <Version>2</Version>

                    </AdmInfo>

                    <QueryParams>

                         <CardCode>99848</CardCode>

                    </QueryParams>

                    <BusinessPartners>

                         <row>

                              <CardCode>99848</CardCode>

                              <CardName>Test Uppdatering 5</CardName>

                              <CardType>cCustomer</CardType>

                              <GroupCode>104</GroupCode>

                              <Notes>Lite allmän info</Notes>

                              <PayTermsGrpCode>1</PayTermsGrpCode>

                              <ShipToDefault>Leverans</ShipToDefault>

                              <CompanyPrivate>cPrivate</CompanyPrivate>

                         </row>

                    </BusinessPartners>

                    <BPAddresses>

                         <row>

                              <AddressName>Leverans</AddressName>

                              <Street>Kungsgatan 1</Street>

                              <ZipCode>15678</ZipCode>

                              <City>Stockholm</City>

                              <AddressType>bo_ShipTo</AddressType>

                              <BPCode>99848</BPCode>

                         </row>

                    </BPAddresses>

                    <ContactEmployees>

                         <row>

                              <InternalCode>33827</InternalCode>

                              <Name>Olof Gustafsson</Name>

                              <FirstName>Olof</FirstName>

                              <LastName>Gustafsson</LastName>

                         </row>

                    </ContactEmployees>

               </BO>

          </BOM>

     </Body>

</Envelope>

 

What is wrong with this payload?

I have checked tables OCRD, CRD1 and OCPR and all these entries exists. But are not updated.

 

B1 version is 9.1 PL07 SQL version.

 

Regards

Lars

namespace issue in b1if

$
0
0

Hi all,

 

 

i am using namespace but i got following message when i am going to save. I am using patch level  SAP B1 9.1 and Patch Level 9

 

but same namespace working in SAP B1 9.1 and Patch Level 6. that time i am using same namespace multiple packages.  any one know this issue. really i am stuck in last one week.

 

 

 

 

Thanks & Regards

B.Lakshmi narayanan

Viewing all 373 articles
Browse latest View live