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

Journal Entry - Clearing (asynchronous) SOAP API Error

prathish_23
Participant
0 Likes
1,624

Hi,

I am working on Journal Entry - Clearing (Asynchronous) SOAP API for clearing "Open Items" in "SAP S/4 Hana cloud System - Customer Line Items".

I am testing this API with the help of SOAPUI tool and I got an error i.e., "Balance in transaction currency AED 945.00 is too large for automatic correction"

Test 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_2023-02-21_APITEST</ID>

<CreationDateTime>2023-02-21T00:00:00Z</CreationDateTime>

<TestDataIndicator>false</TestDataIndicator>

</MessageHeader>

<JournalEntryClearingRequest>

<MessageHeader>

<ID>SUB_MSG_2023-02-21_01</ID>

<CreationDateTime>2023-02-21T00:00:00Z</CreationDateTime>

</MessageHeader>

<JournalEntry>

<CompanyCode>10</CompanyCode>

<AccountingDocumentType>DZ</AccountingDocumentType>

<DocumentDate>2023-02-21</DocumentDate>

<PostingDate>2023-02-21</PostingDate>

<CurrencyCode>AED</CurrencyCode>

<DocumentHeaderText>Test for Clearing</DocumentHeaderText>

<APARItems>

<AccountType>D</AccountType>

<APARAccount>2000005</APARAccount>

<FiscalYear>2023</FiscalYear>

<AccountingDocument>9400000034</AccountingDocument>

<AccountingDocumentItem>000001</AccountingDocumentItem>

</APARItems>

</JournalEntry>

</JournalEntryClearingRequest>

</sfin:JournalEntryBulkClearingRequest>

</soapenv:Body>

</soapenv:Envelope>

Error Description Screenshot:

Open Item Screen Shot:

Please help me in understanding & solving this error I mentioned.

Thanks & regards,

Prathish.

View Entire Topic
Jerry_Lowery
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Prathish

I believe you are running a business logic error, not a technical issue with the SOAP Message.

For example:

3080961 - SAP Fiori: Tolerance check with maximum percentage rate

So i expect there is a tolerance check for the journal entry that is set and the value you have is above the tolerance limit so i requires some special authorization, etc.

I would suggest to check with your business colleagues about the tolerance limits. Otherwise you could find a journal entry with a lower value to test your SOAP logic.

Thank you
Jerry