‎2022 May 19 12:30 PM
Hello experts,
We upload documents from Excel file with BAPI_ACC_DOCUMENT_POST.
When we post as a parked document then it is ok. But when it is not a parked document then there is a dump.

What happens is In include LGLT0F64:
1. In BALANCE_TAB table it searches amount<> 0 (line 149)
2. If found then sy-subrc gets the value 1. (line 153)
3. It calls INTERNAL_ERROR routine (line 157)

1. In INTERNAL_ERROR routine it checks if sy-subrc<>0 (line 17)
2. Previously in LGLT0F64 sy-subrc was set to 1 therefore it is considered as error. And comes to line 38 which causes the dump.

Table BALANCE_TAB has the sum of the amounts in different currency types:
1. In the document currency (00)
2. In the company currency (10)
3. In the group currency (30)
The problem is in group currency which was translated from HUF to USD.

The question is:
How can I "tell" the program to ignore small difference in CURTP <>00. Or to "tell" the program to ignore the amounts in CURTP <>00 and to calculate them again.
The last option exists in FBV2 (change parked document) (in the document header) - you can flag the indicator of "Doc.currency" which means "Only transfer amnts in document curr"
Thankyou in advance
Hagit
‎2022 May 19 2:44 PM
‎2022 May 19 5:36 PM
‎2022 May 19 6:00 PM
‎2022 May 19 6:41 PM
3a9e4ce873a94034b33dc62b0ce600ee
What is the problem with the screenshots?
‎2022 May 20 7:21 AM
‎2022 May 22 6:28 AM
‎2022 May 22 6:33 AM