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

Asset posting in BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
1,978

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

2 REPLIES 2
Read only

Former Member
0 Likes
737

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.

Read only

0 Likes
737

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.