Payload 參考官方文件的「Sample Payload for Full Clearing」
payload如下圖: 欲結清日記帳分錄: 1800000021(DR) 與 1400000013(DZ)
API回傳錯誤訊息如下圖:
- 子訊息 'MSG_20240730_02' 程序失敗
- 已同時結清項目 FIVE 2024 1400000013 001
從「管理客戶明細項目」這邊看還是未結清狀態:
以下附上完整Payload:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sfin="http://sap.com/xi/SAPSCORE/SFIN"> <soapenv:Header/> <soapenv:Body> <sfin:JournalEntryBulkClearingRequest> <MessageHeader> <ID>MSG_20240730_FULL</ID> <CreationDateTime>2024-07-30T13:00:00.1234567Z</CreationDateTime> <TestDataIndicator>false</TestDataIndicator> </MessageHeader> <JournalEntryClearingRequest> <MessageHeader> <ID>MSG_20240730_02</ID> <CreationDateTime>2024-07-30T13:00:00.1234567Z</CreationDateTime> </MessageHeader> <JournalEntry> <CompanyCode>FIVE</CompanyCode> <AccountingDocumentType>AB</AccountingDocumentType> <DocumentDate>2024-07-30</DocumentDate> <PostingDate>2024-07-30</PostingDate> <CurrencyCode>TWD</CurrencyCode> <DocumentHeaderText>Clearing API</DocumentHeaderText> <CreatedByUser>CB9980000020</CreatedByUser> <APARItems> <ReferenceDocumentItem>1</ReferenceDocumentItem> <CompanyCode>FIVE</CompanyCode> <AccountType>D</AccountType> <APARAccount>1000000</APARAccount> <FiscalYear>2024</FiscalYear> <AccountingDocument>1800000021</AccountingDocument> <AccountingDocumentItem>1</AccountingDocumentItem> </APARItems> <APARItems> <ReferenceDocumentItem>2</ReferenceDocumentItem> <CompanyCode>FIVE</CompanyCode> <AccountType>D</AccountType> <APARAccount>1000000</APARAccount> <FiscalYear>2024</FiscalYear> <AccountingDocument>1400000013</AccountingDocument> <AccountingDocumentItem>1</AccountingDocumentItem> </APARItems> </JournalEntry> </JournalEntryClearingRequest> </sfin:JournalEntryBulkClearingRequest> </soapenv:Body> </soapenv:Envelope>