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

GET_GKONT Function Module

Former Member
0 Likes
4,442

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.

3 REPLIES 3
Read only

Former Member
0 Likes
2,220

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

Read only

Former Member
0 Likes
2,220

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.

Read only

Former Member
0 Likes
2,220

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