cancel
Showing results for 
Search instead for 
Did you mean: 

Create supplier invoice vai webservice in ByD

825

When I use webservice to create a supplier invoice, It can be successful if the category is "invoice" and associated with a purchase order, but It can't be successful if I change the category to "down payment request" and associated with a purchase order.Please give me a hand, thank you!

WebService Doc below

<SupplierInvoice actionCode="01" ItemListCompleteTransmissionIndicator="true">
    <ObjectNodeSenderTechnicalID>1</ObjectNodeSenderTechnicalID>
    <ChangeStateID>Token 15</ChangeStateID>
    <BusinessTransactionDocumentTypeCode>817</BusinessTransactionDocumentTypeCode>
    <MEDIUM_Name>MY A2X INVOICE</MEDIUM_Name>
    <Date>2019-12-03</Date>
    <ReceiptDate>2019-12-03</ReceiptDate>
    <TransactionDate>2019-12-03</TransactionDate>
    <DocumentItemGrossAmountIndicator>false</DocumentItemGrossAmountIndicator>
    <GrossAmount currencyCode="CNY">150.00</GrossAmount>
    <TaxAmount currencyCode="">0.00</TaxAmount>
    <TaxAmount/>
    <Status>
      <DataEntryProcessingStatusCode>3</DataEntryProcessingStatusCode>
    </Status>
    <CustomerInvoiceReference actionCode="01">
      <ObjectNodePartyTechnicalID>2</ObjectNodePartyTechnicalID>
      <BusinessTransactionDocumentReference>
        <ID>Test123456</ID>
        <TypeCode>28</TypeCode>
      </BusinessTransactionDocumentReference>
    </CustomerInvoiceReference>
    
    <BuyerParty actionCode="01">
      <PartyKey>
        <PartyID>10</PartyID>
      </PartyKey>
    </BuyerParty>
    
    <SellerParty actionCode="01">
      <PartyKey>
        <PartyID>S0068</PartyID>
      </PartyKey>
    </SellerParty>
   
    <BillToParty actionCode="01">
      <PartyKey>
        <PartyID>10</PartyID>
      </PartyKey>
    </BillToParty>

    <CashDiscountTerms actionCode="01">
      <TechnicalID>7</TechnicalID>
      <Code>0007</Code>
      <PaymentBaselineDate>2019-12-03</PaymentBaselineDate>
    </CashDiscountTerms>

    <Item actionCode="01">
      <PurchaseOrderReference actionCode="01">
        <ObjectNodePartyTechnicalID>2</ObjectNodePartyTechnicalID>
        <BusinessTransactionDocumentReference>
          <ID>1803179</ID>
          <TypeCode>001</TypeCode>
          <ItemID>1</ItemID>
          <ItemTypeCode>18</ItemTypeCode>
        </BusinessTransactionDocumentReference>
      </PurchaseOrderReference>
       
      <ObjectNodePartyTechnicalID>15</ObjectNodePartyTechnicalID>
      <BusinessTransactionDocumentItemTypeCode>80</BusinessTransactionDocumentItemTypeCode>
      <Quantity unitCode="Z01">15.0</Quantity>
      <QuantityTypeCode>Z01</QuantityTypeCode>
      <SHORT_Description languageCode="EN">Heater 76</SHORT_Description>
      <NetAmount currencyCode="">150.00</NetAmount>
      <NetUnitPrice>
        <Amount currencyCode="">10.00</Amount>
        <BaseQuantity>1.0</BaseQuantity>
        <BaseQuantityTypeCode>Z01</BaseQuantityTypeCode>
      </NetUnitPrice>
      <Product actionCode="01">
       <ObjectNodeSendertechnicalID>16</ObjectNodeSendertechnicalID>
        <CashDiscountDeductibleIndicator>true</CashDiscountDeductibleIndicator>
        <ProductKey>
          <ProductTypeCode>1</ProductTypeCode>
          <ProductIdentifierTypeCode>1</ProductIdentifierTypeCode>
          <ProductID>FY-01</ProductID>
        </ProductKey>
      </Product>

      <AccountingCodingBlockDistribution AccountingCodingBlockAssignmentListCompleteTransmissionIndicator="true" actionCode="01">
        <TechnicalID>17</TechnicalID>
        <TotalAmount currencyCode="CN">150.00</TotalAmount>
        <TotalQuantity unitCode="Z01">15.00</TotalQuantity>
        <AccountingCodingBlockAssignment actionCode="01">
          <TechnicalID>18</TechnicalID>
          <Amount currencyCode="CN">150.00</Amount>
          <Quantity unitCode="Z01">15.00</Quantity>
          <CostCentreID>1CG</CostCentreID>
        </AccountingCodingBlockAssignment>
      </AccountingCodingBlockDistribution>
  
    </Item>
  </SupplierInvoice>

Webservice return error below

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
   <env:Header/>
   <env:Body>
      <env:Fault>
         <env:Code>
            <env:Value>env:Receiver</env:Value>
         </env:Code>
         <env:Reason>
            <env:Text xml:lang="en">RABAX occurred on server side</env:Text>
         </env:Reason>
         <env:Detail>
            <sap:Rabax xmlns:sap="http://www.sap.com/webas/710/soap/runtime/abap/fault/generic">
               <SYDATUM>20200220</SYDATUM>
               <SYUZEIT>025624</SYUZEIT>
               <ERRORCODE>MESSAGE_TYPE_X_TEXT</ERRORCODE>
            </sap:Rabax>
         </env:Detail>
      </env:Fault>
   </env:Body>
</env:Envelope>

Business communication monitoring info below

Creation of link failed

Accepted Solutions (0)

Answers (1)

Answers (1)

harsh_p9
Advisor
Advisor
0 Kudos

Hi Han,

If you are still facing the same error - Creation of link failed, then I ask you to report and incident with below information:

1) SOAP Query.

2) SOAP Response.

3) Your permission to execute the query.

Thanks & Regards,

Harsh Patel