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_ACC_DOCUMENT_POST

Former Member
0 Likes
649

Hi,guru:

I want to make AA posting using BAPI BAPI_ACC_DOCUMENT_POST,I fill in this fields:

OBJ_TYPE ="ZBKPF"

OBJ_LEY = "BKPFFXXX"

OBJSYS = "DEVCLNT200"

BUS_ACT = "RFBU"

USERNAME = SY-UNAME

HEADER_TXT = "HEADER TEXT"

COMP_CODE = "8000"

DOC_DATE = SY-DATUM

PSTNG_DATE = SY-DATUM

TRANS_DATE = SY-DATUM

FISC_YEAR = "2009"

FIS_PERIOD = "09"

ITEMNO_ACC = "0000000001"

GL_ACCOUNT = "1601010000"

ITEM+TEXT = "TEST 1"

ACCT_TYPE = "A"

COMP_CODE = "8000"

FIS_PERIOD = "09"

FISC_YEAR = "2009"

PSTNG_DATE = SY-DATUM

VALUE_DATE = SY-DATUM

FUNDS_CTR = "8120"

CMMT_ITEM = "CO00000000"

ASSET_NO = "000000000007"

SUB_NUMBER = "0000"

CS_TRANS_T = "100"

**********

ITEMNO_ACC = "0000000002"

GL_ACCOUNT = "1002010400"

ITEM+TEXT = "TEST 2"

**********

COMP_CODE = "8000"

FIS_PERIOD = "09"

FISC_YEAR = "2009"

PSTNG_DATE = SY-DATUM

VALUE_DATE = SY-DATUM

FUNDS_CTR = "8000"

CMMT_ITEM = "CO00000000"

***********

ITEMNO_ACC = "0000000001"

CURR_TYPE = "10"

CURRENCY = "CNY"

CURRENCY_ISO = "cny"

AMT_DOCCUR = 8000.0000

************

ITEMNO_ACC = "0000000002"

CURR_TYPE = "10"

CURRENCY = "CNY"

CURRENCY_ISO = "cny"

AMT_DOCCUR = -8000.0000

but i got the error message

"Accounting transaction category RFBU 000000000000 is not defined."

"Enter a transaction type"

how to resolve this error??

Best Regards

Martin Xie

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
498

Hi Martin,

1 your code is not readable - why don't you select it with the Mouse and press the above <_> Code button.

2 your code hnas syntax errors because double-quote " is no string delimiter, you may use single-quuote '

3 The currency also in ISO may be 'CNY'; 'cny' can not be processed.

Regards,

Clemens

If you search, you will find pretty much information, i.e. [here|]

Edited by: Clemens Li on Sep 27, 2009 11:54 AM

2 REPLIES 2
Read only

Clemenss
Active Contributor
0 Likes
499

Hi Martin,

1 your code is not readable - why don't you select it with the Mouse and press the above <_> Code button.

2 your code hnas syntax errors because double-quote " is no string delimiter, you may use single-quuote '

3 The currency also in ISO may be 'CNY'; 'cny' can not be processed.

Regards,

Clemens

If you search, you will find pretty much information, i.e. [here|]

Edited by: Clemens Li on Sep 27, 2009 11:54 AM

Read only

Former Member
0 Likes
498

Hi,Li:

Those value is not code,but a list of code.

cny-->CNY is ok,but helpless.

I want to make FI-AA posting,I have done GL/AP/AR without error,but for AA,I do not know what to fill these fields:

OBJ_TYPE

OBJ_KEY

BUS_ACT

Best Regards

Martin Xie