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

BAPI ACCOUNT DOCUMENT POST

Former Member
0 Likes
1,008

Hi all,

I am trying to post an accounting entry between an asset and a gl, but each time i post it give me an error

Accounting transaction category RFBURFBU000000000000 is not defined.

Enter another transaction type (Transaction type does not exist)

I have seen people having the same problem but not found how it was solved. Any one with a clue as to solving this??? I will be very greatful.

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
770

Hi,

Please try to following things correctly.

lwa_docheader-obj_type = 'BKPFF'.

lwa_docheader-obj_key = '$'.

lwa_docheader-obj_sys = logical name of ur client.

and remaining miminum fields for a posting.

Regards,

Jeetu

Read only

0 Likes
770

Hi,

Please try to following things correctly.

lwa_docheader-obj_type = 'BKPFF'.

lwa_docheader-obj_key = '$'.

lwa_docheader-obj_sys = logical name of ur client.

and remaining miminum fields for a posting.

Regards,

Jeetu

Read only

0 Likes
770

Thank JEETU,

Let me post a sample of my code here for you to see,


document_header-BUS_ACT = 'RFBU'.
-USERNAME = SY-UNAME
-COMP_CODE = 'COY'
-DOC_DATE = SY-DATUM
-PSTNG_DATE = SY-DATUM
-FISC_YEAR = 2010
-FIS_PERIOD = 12.

ACCOUNTGL-ITEMNO_ACC = 1.
-GL_ACCOUNT = 200002
-ITEM_TEXT = 'TEXT'.
-DOC_TYPE = 'SA'
-ACCT_TYPE = A.
-COMP_CODE = 'COY'
-BUS_AREA = 'RFBU'
-FIS_PERIOD = 12
-FISC_YEAR = 2010
-PSTNG_DATE = SY-DATUM
-ASSET_NO = 0200390
-SUB_NUMBER = 0
APPEND ACCOUNTGL.

ACCOUNTGL-ITEMNO_ACC = 2.
-GL_ACCOUNT = 100002
-ITEM_TEXT = 'TEXT'.
-DOC_TYPE = 'SA'
-COMP_CODE = 'COY'
-BUS_AREA = 'RFBU'
-FIS_PERIOD = 12
-FISC_YEAR = 2010
-PSTNG_DATE = SY-DATUM
APPEND ACCOUNTGL.

CURRENCYAMT-ITEMNO_ACC = 1
-CURRENCY_ISO = NGN
-AMT_DOCCUR = 1000
APPEND CURRENCYAMT.

CURRENCYAMT-ITEMNO_ACC = 2
-CURRENCY_ISO = NGN
-AMT_DOCCUR = -1000
APPEND CURRENCYAMT.

BUT STILL WHEN I POST I HAVE THE SAME PROBLEM

Read only

0 Likes
770

Hi,

But still u have not supplied these below three fields

OBJ_TYPE

OBJ_KEY

OBJ_SYS

Unless u fill it properly it will gave same error.