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

How to post asset using BAPI_ACC_DOCUMENT_POST w/o creating custom OBJ_TYPE

Former Member
0 Likes
1,276

Hi,

I want to post asset together with expense into one document. The first approach is to use BAPI_ACC_DOCUMENT_POST with custom obj_type, like ZBKPF. But when we post using the custom obj_type, we cannot reverse the document using FB08.

Is that anyway we can post using BAPI_ACC_DOCUMENT_POST and reverse using FB08?

Or is that any BAPI that can do this?

Thanks,

Tai

Edited by: Tai Pang Ng on Apr 8, 2011 9:37 PM

6 REPLIES 6
Read only

ThomasZloch
Active Contributor
0 Likes
1,074

What's the reason for using a custom object type? You can leave it blank, as far as I know. I have no problems reversing documents that were posted using this BAPI.

Thomas

Read only

0 Likes
1,074

It is because I want to post asset. I tried to post my asset without specified the obj_type and acc_type, then I got an error saying cannot direct post thru my GL account. That's true becuase posting asset, we just use asset number and reconciliation GL.

Then I tried to put my asset no in GL field, then I got another error saying the GL is not in Chart of Account, and that's true also becuase the asset no is never config in our chart of account.

Then I found out that I had to specified the acct_type to 'A'. After that, I got another error saying RFBURFBU000000000000 is not define. That's I cannot post this thru obj_type RBFU. After checking that, I had to specified bus_act to RMWE and custom obj_type to some Z value to make it go.

But after all these, I cannot reverse my posting using FB08 anymore because this is an custom obj_type and not allow to reverse using FB08.

Please let me know if I made mistake in the above.

Thanks,

Tai

Read only

0 Likes
1,074

It was my issue. It is fixed now. Thanks.

Read only

0 Likes
1,074

Please disclose the details, or we will have "necro postings" in three years asking how the heck you fixed it.

Thomas

Read only

0 Likes
1,074

Just leave obj_type blank and let the system assign the value BKPFF. After that, use BADI_ACC_DOCUMENT to update ANBWA. It'll fix all of that.

Thanks,

Tai

Read only

0 Likes
1,074

Hi Tai,

Coul dyou explain more clearly how you fixed this please? I dont' see field ANBWA anywhere.

Thks,

William