on 2024 Aug 12 9:28 AM
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>
Hi,
As you see, this soap Api can not return AccountingDocument ID. This is current system design.
The circumstance you described relates to missing functionality. If you feel that the SAP S/4HANA public cloud customer base would benefit from an enhancement of this functionality you can raise a feature request.
Thanks and Best Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
116 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.