cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

API: Journal Entry – Clearing (Asynchronous) 錯誤: 子訊息 'MSG_20240730_02' 程序失敗

viclin
Explorer
0 Likes
450

Payload 參考官方文件的「Sample Payload for Full Clearing

viclin_3-1722331999082.png

payload如下圖: 欲結清日記帳分錄: 1800000021(DR) 與 1400000013(DZ)

viclin_2-1722331976442.png

API回傳錯誤訊息如下圖:

  • 子訊息 'MSG_20240730_02' 程序失敗
  • 已同時結清項目 FIVE 2024 1400000013 001

viclin_1-1722331892435.png

從「管理客戶明細項目」這邊看還是未結清狀態:

viclin_4-1722332176544.png

以下附上完整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>

 

 

Accepted Solutions (1)

Accepted Solutions (1)

viclin
Explorer
0 Likes

如同回覆,此問題已解決

Answers (0)