Application Development 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: 

BAPI_ACC_DOCUMENT_POST for t-code F-47 is not generation document Number???

Former Member
0 Kudos
419

Hi All,

I am facing a problem while using BAPI_ACC_DOCUMENT_POST.

I tried doing a manual entry in F-47 with the following data.

Document date :sy-datum

Posting date :sy-datum

Document type : 'KA'

Company code : BUKRS

Currency : INR/USD

Refrence :TEST

Doc.Header Text : TEST

Account :LIFNR(Vendor)

Sp G/L Ind: 'C'

Amount :

Bus/Section:

Bus Area:

Due Date:sy-datum

PO Number with Item no:

TEXT:TEST

House/bank: BANK_ID/Housebnkid

It is generating a document number with single entry against posting key 39.

But when I tried using BAPI_ACC_DOCUMENT_POST in Z Prog for executing a preliminary posting.

Its not generating the document number.

The following table was filled in the BAPI.

>ACCOUNTGL - 1 entry

>ACCOUNTPAYABLE - 1 entry

>currencyamount - 2 entry

Exporting Parameter:documentheader - 1 entry

Please suggest solution to this.

5 REPLIES 5

Former Member
0 Kudos
215

Hi,

What is the message you are getting.Its not generating the number means there is some problem.Find out the message BAPI is returning.

Former Member
0 Kudos
215

Getting Error message F5354

Account XXXXXX in company code XXXX cannot be directly posted to.

0 Kudos
215

Hi,

Change the g/l account no or must use FM 'CONVERSION_EXIT_ALPHA_INPUT' for g/l, vendor and customer.

Former Member
0 Kudos
215

Hi Dhiraj,

I am passing a10 digit G/L account Number.

Still its showing the same error.

Regards,

Nishi.M

0 Kudos
215

Hi,

It seems the G/L account is a reconcillation account..Try with another G/L account and see.

Regards,

Nagaraj