Skip to Content
1
Former Member
Feb 20, 2018 at 04:57 PM

Bapi BAPI_ACC_DOCUMENT_POST is not auto deriving G/L account for Asset journal entries posting.

1199 Views Last edit Feb 20, 2018 at 05:08 PM 2 rev

Hi Gurus,

I'm using bapi BAPI_ACC_DOCUMENT_POST to post journal entries. I'm getting the input data in an excel file. Bapi is working fine for other cases like vendor etc. except for the Asset scenario.

When we post Asset journal entries manually through FB01 transaction the asset G/L will be derived automatically due to this reason i'm not getting the G/L account corresponding to Asset record in input file but G/L is mandatory field in BAPI.

My requirement is to get the asset G/L account on the basis of company code, Asset number, Asset subnumber & Transaction Type.

I already tried the below logic:-

Pass Company code(BUKRS), Asset number(ANLN1) & Asset sub number(ANLN2) in ANLA table & get Account determination(KTOGR). After fetching Account determination(KTOGR) from ANLA, Pass it in T095 table along with Chart of accounts(KTOPL) as ‘GCCA’ & Real depreciation area(AFABE) as ‘1’ and get KTANSW(Bal. sheet account: Acquisition & production costs). Use KTANSW as Asset G/L account. I'm able to post asset entries though this logic.

But as per my functional the G/L should be derived in combination of asset number & transaction type because corresponding asset G/L might change accordingly as this combination will change. My functional consultants are not providing me the logic to derive the G/l because it is auto derived in Standard SAP.

I really appreciate your help here.

Regards,

Ashwani