‎2008 Mar 19 1:28 PM
Hello Folks,
I'm using BAPI_ACC_DOCUMENT_POST to post documents through an upload facility.
I want to be able to post Assets through the same BAPI.
Can you pls let me know how to populate the details for asset line items in the BAPI parameters.
I have populated the following fields in the accountgl table:
it_accountgl-asset_no
it_accountgl-gl_account = asset_no
it_accountgl-sub_number
it_accountgl-acct_type = 'A'
it_accountgl-asval_date
But it doesn't seem to recognize the line item as an asset and gives an error saying that the G/L XXX was not found in the chart of accounts.
Any help?
Thanks!
-Arthi
‎2008 Nov 04 9:40 AM
Solution:
Populate the balance sheet a/c for the asset.
Retrieve KTOGR from ANLA for the asset numb then Retrieve ktansw from t095 based on the KTOGR.
Now populate gl_account with ktansw instead of the asset no.
The rest of the parameters remain the same.
‎2011 Jun 16 3:15 AM
Hi Arthi,
Using the same BAPI for asset posting.
AM_ASSET_READ_FOR_POSTING - FM
T095 - Table based on below values, got ktansw
KTOPL T001-KTOPL
AFABE XABWA-AFABE
KTOGR
Once i pass T095-KTANSW insteas of asset getting the below error:
Account 159900 in company code 4070 cannot be directly posted to
Let me know how to solve this. Thanks in advance.