Supplier Invoice - Create (A2X, Inbound, Synchronous)
供應商發票API寫入後只回傳供應商發票ID,請問可以透過什麼方式取得對應的日記帳分錄ID(AccountingDocument)?
提供完整Payload如下:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global"> <soap:Header/> <soap:Body> <glob:SupplierInvoiceERPCreateRequest_sync> <MessageHeader></MessageHeader> <SupplierInvoice> <BillFromParty> <InternalID>1000008</InternalID> </BillFromParty> <CompanyID>FIVE</CompanyID> <TypeCode>004</TypeCode> <IssueDate>2024-07-28</IssueDate> <PostingDate>2024-07-29</PostingDate> <CashDiscountTerms> <PaymentBaselineDate>2024-07-29</PaymentBaselineDate> </CashDiscountTerms> <CompletenessAndValidationStatusCode>5</CompletenessAndValidationStatusCode> <BillFromID>ZW35429603</BillFromID> <PriceCalculation> <GrossAmount currencyCode="TWD">25200</GrossAmount> </PriceCalculation> <TaxCalculation> <AutomaticIndicator>false</AutomaticIndicator> <ProductTaxDetails> <TaxAmount currencyCode="TWD">1200</TaxAmount> <TaxBaseAmount currencyCode="TWD">24000</TaxBaseAmount> <TaxationCharacteristicsCode>V6</TaxationCharacteristicsCode> <TaxCountry>TW</TaxCountry> </ProductTaxDetails> <TaxDeterminationDate>2024-07-18</TaxDeterminationDate> </TaxCalculation> <Item> <ID>1</ID> <TypeCode>002</TypeCode> <ProcessingTypeCode>S</ProcessingTypeCode> <PriceCalculation> <NetAmount currencyCode="TWD">4000</NetAmount> </PriceCalculation> <TaxCalculation> <ProductTaxDetails> <TaxationCharacteristicsCode>V6</TaxationCharacteristicsCode> <TaxCountry>TW</TaxCountry> </ProductTaxDetails> </TaxCalculation> <AccountingCodingBlockDistribution> <AccountingCodingBlockAssignment> <AccountDeterminationExpenseGroupCode>54320002</AccountDeterminationExpenseGroupCode> <CostCentreID>A000B044</CostCentreID> </AccountingCodingBlockAssignment> </AccountingCodingBlockDistribution> <Text>test 456</Text> </Item> <Item> <ID>1</ID> <TypeCode>002</TypeCode> <ProcessingTypeCode>S</ProcessingTypeCode> <PriceCalculation> <NetAmount currencyCode="TWD">20000</NetAmount> </PriceCalculation> <TaxCalculation> <ProductTaxDetails> <TaxationCharacteristicsCode>V6</TaxationCharacteristicsCode> <TaxCountry>TW</TaxCountry> </ProductTaxDetails> </TaxCalculation> <AccountingCodingBlockDistribution> <AccountingCodingBlockAssignment> <AccountDeterminationExpenseGroupCode>12561000</AccountDeterminationExpenseGroupCode> <CostCentreID>A000B044</CostCentreID> </AccountingCodingBlockAssignment> </AccountingCodingBlockDistribution> <Text>test 123</Text> </Item> <SupplierInvoiceNoteText>test</SupplierInvoiceNoteText> </SupplierInvoice> </glob:SupplierInvoiceERPCreateRequest_sync> </soap:Body> </soap:Envelope>