‎2010 Sep 02 11:37 AM
Hi All,
I would like to read offsetting account number information from FI document. I have read that I can utilize function module GET_GKONT.
Inside this, there is a import parameter called GKNKZ. I am wondering what is this. If I just put it blank, it won't work. If I put it with '3' for example, then it will work.
Anybody can share ? Thanks.
‎2010 Sep 02 11:43 AM
Hi,
It is offsetting account determination.
Data element - ALLGGKKZ . Domain - GKNKZ.
1 - Display offsetting account if clearly specified
2 - Always display offsetting account with the highest amount
3 - As case 2, but including line items generated automatically
As you mentioned, when blank, do not display.
Hope it helps.
Sujay
‎2010 Sep 02 11:49 AM
Hi,
Please check the perform gkont_ermitteln in the FM ..
There is a case for GKNKZ for only 3 cases .. 1, 2 and 3 .
If bseg-xauto = space then the CASE 1 and 2 will also work.
Regards,
Srini.
‎2010 Sep 02 11:50 AM
Hi,
Logic for extracting Customer(KUNNR), GL Account(HKONT), Account type (KOART) is based on the value of variable GKNKZ.
See the Coding in Function module Include "LF003F00" called from function module line no : 49.
Regards
Vinod