cancel
Showing results for 
Search instead for 
Did you mean: 

Asset Posting using BAPI_ACC_DOCUMENT_POST

P13599469
Explorer
0 Kudos

Hi Experts,

I am facing the issue in posting the assets using BAPI_ACC_DOCUMENT_POST, we are already using this BAPI to post entries for cost centers and now we want to enhance this program to post assets. We don't want to use BDC program.

The error messages I am getting are....

1. Accounting transaction category RFBURFBU000000000000 is not defined.

2. Enter another transaction type (Transaction type does not exist)


Please find the below data that I am passing to the BAPI, PLease let me know if there is any parameter missing in that.

Header data

BUS_ACT = RFBU

USERNAME = SY-UNAME

HEADER_TXT = Header Text

COMP_CODE = 1000

DOC_DATE = 20171008

PSTNG_DATE = 20171008

FISC_YEAR = 2018

FIS_PERIOD = 09

DOC_TYPE = KR (invoice)

REF_DOC_NO = 10042017

ACCOUNTGL: Item 1

ITEMNO_ACC = 0000000001

GL_ACCOUNT = XXXXXX

ITEM_TEXT = Line Item text1

ACCT_TYPE = ‘S’ (cost centers)

TAX_CODE = ‘XY’

TAXJURICODE = ‘TXXXXX’

COSTCENTER = ‘0000001002’

Item2

ITEMNO_ACC = 0000000002

GL_ACCOUNT = YYYYYYY

ITEM_TEXT = Line Item text2

ACCT_TYPE = ‘A’ (Asset)

TAX_CODE = ‘XY’

TAXJURICODE = ‘TXXXXX’

ASSET_NO = ‘0000090040’

SUB_NUMBER = ‘0000’

CS_TRANS_T = ‘100’ (Transaction type)

ACCOUNTPAY

ITEMNO_ACC = 0000000003

VENDOR_NO = ‘0000012345’

PMNTTERMS = ‘1008’

TAX_CODE = ‘XY’

We have specific GL account for Asset and that is constant. Transaction type for asset entries is constant.

many people were already asked about this issue but no proper answer, I feel..

Please let me know what is missing, it is very urgent, Thanks for your help in advance....

Regards,

Dileep.

Accepted Solutions (0)

Answers (2)

Answers (2)

iklovski
Active Contributor
0 Kudos

Hi,

Why won't you use a BAPI for assets acquisition, i.e. BAPI_ASSET_ACQUISITION_POST?

Regards,

Eli

P13599469
Explorer
0 Kudos

Hi Eli,

Thanks for your reply, we are using this program for simple posting(expenses posting against cost center) through BAPI_ACCT_DOCUEMNT_POST, now we are planning to post assets along with those expenses for the same vendor and invoice reference. I don't think we can use this

BAPI_ASSET_ACQUISITION_POST for that.

Regards,

Dileep.

iklovski
Active Contributor

Why not, actually? If you are creating an asset posting, you would like equally to have asset document. Otherwise, how you are going to reconcile your AA sub-ledger with FI.

pokrakam
Active Contributor

I'm with Eli, assets live in a different financial universe to expenses. It's like buying a car and putting my registration documents in my receipts box together with the bus ticket from when I went to go pick it up.

Asset postings will automatically generate the related G/L posting. Please discuss with your functional person if unsure.

P13599469
Explorer
0 Kudos

Hi,

The issue is resolved, I have implemented one BADI to pass some missing data. I debugged FB60 and BAPI and found that there is one table where VORGN, ANBWA fields are not filling when we post the assets though BAPI. I am filling these fields though BADI. problem solved. Now I am able to post expenses, assets and both.

But still I have a doubt that this fix is correct or not.I am checking with my functional consultant.

Regards,

Dileep.

former_member345626
Participant
0 Kudos

Hi Dileep,

For expense posting, Business user may be using FB60 and document type KR.

However for the asset posting, the business users use different transactions and different document types.

Please speak to your functional consultant on this.

Thanks and Regards,

Udaykumar P.P.

0 Kudos

Hi @ldkumar,

Can you share the BADI used to fix the error? and the internal table not filled too...

I'm facing this error right now and looking for answer...

raymond_giuseppi
Active Contributor
0 Kudos

This document doesn't comply with your Asset Customizing. (Look at table TABWD, RFBU is not provided by default)

NB: In some case, some OSS notes are available depending on your exact system level and active business function, so perform some search or ask basis.

P13599469
Explorer
0 Kudos

Hi Raymond,

Thanks for your reply, RFBU is not given in TABWD, but I am able to post the asset through FB60.

Regards,

Dileep.

raymond_giuseppi
Active Contributor
0 Kudos

Yes but the BAPI and the FI transactions are not using the same interface (AC/FAGL vs ACC/ACID_PI) BAPI have a behavior more similar to MIRO, MIGO, etc.

P13599469
Explorer
0 Kudos

Hi Raymond,

Thank you, you mean we can't use BAPI for asset posting? please provide some more explanation.

Regards,

Dileep.

raymond_giuseppi
Active Contributor
0 Kudos

(In my systems asset are related to PO so BAPI_INCOMINGINVOICE_CREATE)

Did you try to add the FI-AA transaction type in one of the EXTENSION parameters, and handle it with their associated BTE or BAdI?