Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

When using BAPI_ACC_DOCUMENT_POST- How to transfer only amounts in document currency

hagit
Active Participant
0 Likes
3,099

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

7 REPLIES 7
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
2,931

You missed somehow the screenshots.

Read only

hagit
Active Participant
0 Likes
2,931

3a9e4ce873a94034b33dc62b0ce600ee What did I miss?

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
2,931

Screenshots don’t show in your question

Read only

hagit
Active Participant
0 Likes
2,931

3a9e4ce873a94034b33dc62b0ce600ee

What is the problem with the screenshots?

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
2,931

That problem is that they are not visible. At least that's what I can see:

Read only

hagit
Active Participant
0 Likes
2,931

Here they are:

1-

3-

Read only

hagit
Active Participant
0 Likes
2,931

4-

5-

Thanks