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

Problem in Posting data using BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
408

Hi ,

I am trying to post a Sub-ledger account using the BAPI_ACC_DOCUMENT_POST.

The Details I am passing are

DOCUMENTHEADER

USERNAME - UPPUVID

COMPANY CODE - 1030

DOC_DATE - 2/2/2009

PSTNG_DATE- 2/2/2009

FISCAL YEAR- 2009

PERIOD - 02

DOC TYPE - DR

ACCOUNTGL

ITEMNO_ACC 0000000002

GL_ACCOUNT 230400

PROFIT_CTR 110001

ACCOUNTRECEIVABLE

ITEMNO_ACC 0000000001

CUSTOMER 40000087

GL_ACCOUNT 110100

CURRENCYAMOUNT

ITEMNO_ACC CU CURRE CUR AMT_DOCCUR

0000000001 USD 1,000.0000

0000000002 USD 1,000.0000-

The result shown is as follows.

Document posted successfully: BKPFF 180001511510302009 DV1CLNT200

But when we go and check in FB03 .

I am getting an error message saying Document doesnot exist for the Tcode 1030 .

Also there is no corresponding entry in BKPF .

Please let me know If I have to pass anything else to post the data.

Regards,

Vidyulatha U.

2 REPLIES 2
Read only

Former Member
0 Likes
368

hi

try bapi BAPI_ACC_GL_POSTING_POST

hope this helps

regards

Aakash Banga

Read only

Former Member
0 Likes
368

Hi Vidyulatha,

You can also use FM : POSTING_INTERFACE_START & POSTING_INTERFACE_DOCUMENT & POSTING_INTERFACE_END.

As you know you can post all types of documents through FB01.

You can set the i_tcode as 'FB01' & i_sgfunct as 'C'.

You just Pass on the values to these FMs.

Edited by: Yogesh Karanjikar on Feb 2, 2009 10:55 AM

Edited by: Yogesh Karanjikar on Feb 2, 2009 10:56 AM