cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Account Determination

former_member71163
Participant
0 Kudos

Hi,

I am getting an Account determination error message when the Intercompany(STO Scenario) invoice is saved.

When the revenue account determination is analysed it says "G/L account xxxxxxxxx determined from account determination KOFI" - it took the combination of COA+AAG+AcctKey,but the accounting document is not yet generated.

I took a similar scenario in which the account has been determined successfully by the combination of COA+AAG+VALUATION CLASS+AcctKey

Kindly suggest what needs to be done in this context.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi

What is the exact error you are getting ? F5760 ?

When the account determination fails it is usually because the fields in the access sequences are not all filled or perhaps the key is missing in the pricing procedure so the system fails to pick up the valid account maintained in VKOA.

You can try the following method to pin point the exact failure point.

Confirm the exact error message issued (F5670 ?)
In the message you get the FI item number of the error eg 0000000005 

Set a breakpoint in -> rv_accounting_document_create. 'SE37'
Run report SAPFACC0 for the affected invoice 'SE38'
when it stops at the BP, set a watchpoint on XACCIT-POSNR = 0000000005
Save the watchpoint & press F8
When it stops at the error the fields below will show you the exact item
& condition in the billing document that have the problem. You can check the
account determination for the condition.

xACCIT-POSNR
xACCIT-POSNR_SD
xACCIT-KSCHL

If you need to check further the actual accounts are assigned to the
FI items here, in the interface. c000-sakn1 should be filled and it
to XACCIT.

Main Program     SAPLV60A
Source code of   LV60AU08
...
function  RV_INVOICE_ACCOUNT_DETERM
...
LOOP AT tkomv FROM sy-tabix.
...
CALL FUNCTION 'ACCOUNT_ALLOCATION'
...
IF c000-sakn1 = space OR  ......

If all the accounts are assigned correctly and the system calls
function AC_DOCUMENT_CREATE and fails there, then the problem
is one of your tax conditions so make sure they are complete
with key etc in V/08

Hope this helps you further

Kind regards
Brian

Answers (1)

Answers (1)

Lakshmipathi
Active Contributor
0 Kudos

From your comments itself, I could guess that all your VKOA settings are made for the second combination and not for the first one.  So for the scenario what you had tested, check whether it is also meeting the same combination.  Else, maintain that and create a fresh set of documents and check.

G. Lakshmipathi