cancel
Showing results for 
Search instead for 
Did you mean: 

Exit or Enhancement for changing GL account before FI document posting

wwc0220
Participant
0 Kudos
875

Hi Experts,

Currently I am using one single account for the gain/loss when perform foreign currency revaluation.

Our client from other country request that they need two separated accounts for gain and loss.

But the account determination (OBA1-KDF) for revaluation is apply to COA level. I can't change it easily.

Is it possible that using exit or enhancement to change the G/L account directly when performing revaluation by Tcode FAGL_FCV

Per my understanding, Badi INVOICE_UPDATE can't modify the value directly. Any exit or enhancement can do that?

Accepted Solutions (0)

Answers (4)

Answers (4)

wwc0220
Participant

I solved it by substitution, since the GB01 set the HKONT field excluded from the substitution orginally. After I update the table, it works well now.

Jean-Marie_R
Explorer
0 Kudos

Hello again.

Is the substitution defined at callPoint 2 (line)? You can then make a prerequisite using the company code (and also with BKPF-GLVOR if necessary). No need for an exit. Try if this works with a simple subtitution.

Best regards,

Jean-Marie

wwc0220
Participant
0 Kudos

Between I try with substitution - completed document for the BSEG-HKONT data field. But it is not work. When I execute the revaluation, it can't trigger the exit part to change the G/L account.

Jean-Marie_R
Explorer
0 Kudos

Hello Derek.

In OBA1-KDF SAP has specifically foreseen one account for gain and one for loss. I suppose that your customizing has defined one account for both. You need to specify a different account in customizing. No need for enhancements.

Best regards,

Jean-Marie

wwc0220
Participant
0 Kudos

Since I already adopt one single account for both gain and loss for serval companies now. I can't change it. That's why i ask for exit or enhancement.