cancel
Showing results for 
Search instead for 
Did you mean: 

Error sending an invoice through B1IF

Former Member
0 Kudos

He entered trying to send an invoice for the sap through B1IF, for so I am using an atom "xform" and another atom "B1 Object" set up an entry xml for testing.

However at the time of testing the atom of xform passes to the atom of b1 object and the following error:

The following image

I do not know what might be causing this error that the customer already ten a sale already held in his name, already modified input xml data but to no avail at all.

Also follows the atom b1 object configuration:

thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Another thing friends,

tested also trying to send a new client for SAP using the following xml:

<BOM>

  <BO>

  <AdmInfo>

  <Object>2</Object>

  </AdmInfo>

  <BusinessPartners>

  <row>

  <CardCode>CLJ0000000019</CardCode>

  <CardName>CLIENTE TESTE B1IF33</CardName>

  <Phone2>(  )</Phone2>

  <Phone1>    -</Phone1>

  <Cellular>(  )    -</Cellular>

  <EmailAddress></EmailAddress>

  <GroupCode>100</GroupCode>

  <U_PDV_CARTAO_FIDELID></U_PDV_CARTAO_FIDELID>

  <FatherCard></FatherCard>

  <PriceListNum>2</PriceListNum>

  </row>

  </BusinessPartners>

  <BPAddresses>

  <row>

  <AddressName>ENTREGA</AddressName>

  <AddressType>bo_ShipTo</AddressType>

  <Street>22</Street>

  <Block>55</Block>

  <Country>BR</Country>

  <County>124</County>

  <TypeOfAddress>11</TypeOfAddress>

  <U_Aniversario></U_Aniversario>

  <StreetNo>33</StreetNo>

  <City>SEI LA</City>

  <State>AM</State>

  <ZipCode>     -   </ZipCode>

  <BuildingFloorRoom>44</BuildingFloorRoom>

  </row>

  <row>

  <AddressName>COBRANÇA</AddressName>

  <AddressType>bo_BillTo</AddressType>

  <Street>22</Street>

  <Block>55</Block>

  <Country>BR</Country>

  <County>124</County>

  <TypeOfAddress>11</TypeOfAddress>

  <U_Aniversario></U_Aniversario>

  <StreetNo>33</StreetNo>

  <City>SEI LA</City>

  <State>AM</State>

  <ZipCode>     -   </ZipCode>

  <BuildingFloorRoom>44</BuildingFloorRoom>

  </row>

  </BPAddresses>

  <BPFiscalTaxID>

  <row>

  <Address>ENTREGA</Address>

  <TaxId0></TaxId0>

  <TaxId4>111.111.111-11</TaxId4>

  <TaxId1></TaxId1>

  <TaxId5>22222222222</TaxId5>

  </row>

  </BPFiscalTaxID>

  </BO>

  </BOM>

and returned the following message

Acho que pode ser alguma configuração que fiz errado pois esta dando erro quando envio um cliente e quando envio uma fatura

Tanks

bastian_schaefer
Active Contributor
0 Kudos

Hi,

if you want to add an invoice, please use the Documents object.

At the moment you're trying to add an invoice (object id 13) but you're using the xml format of a Business partner.

Please run the metadata retrieval and check the object structure under HELP -> B1 object.

Best regards

Bastian

P.S..:

B1 object atom automatically creates a template of the selected object in the predecessor xform, when pressing "Generate Schema".

Former Member
0 Kudos

He worked used the template that generates B1IF, put feathers the basic fields:

The following example:

<BOM>

  <BO>

  <AdmInfo>

  <Object>13</Object>

  <Version>2</Version>

  </AdmInfo>

  <Documents>

  <row>

  <DocType>dDocument_Items</DocType>

  <HandWritten>tNO</HandWritten>

  <Printed>psNo</Printed>

  <DocDate>20151028</DocDate>

  <DocDueDate>20151028</DocDueDate>

  <CardCode>C20000</CardCode>

  <DocTotal>508.760000</DocTotal>

  </row>

  </Documents>

  <Document_Lines>

  <row>

  <ItemCode>A00003</ItemCode>

  <Quantity>1.00000</Quantity>

  <UnitPrice>508.760000</UnitPrice>

  <Usage>10</Usage>

  <LineTotal>508.760000</LineTotal>

  <LineNum>1</LineNum>

  </row>

  </Document_Lines>

  </BO>

</BOM>

thank Bastian

Answers (0)