‎2011 Apr 08 8:32 PM
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
‎2011 Apr 09 8:27 PM
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
‎2011 Apr 11 3:43 PM
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
‎2011 Apr 12 6:01 PM
‎2011 Apr 12 6:08 PM
Please disclose the details, or we will have "necro postings" in three years asking how the heck you fixed it.
Thomas
‎2011 Apr 12 6:32 PM
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
‎2011 Oct 01 11:12 PM
Hi Tai,
Coul dyou explain more clearly how you fixed this please? I dont' see field ANBWA anywhere.
Thks,
William