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

Issue with BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
2,852

Hi,

We are using Function module BAPI_ACC_DOCUMENT_POST for posting FI documents. When I try to post an item with special GL indicator BAPI is returning an error message .,u2019Special G/L transactions of type W are not supportedu2019. All other items other than Sp Gl are posting correctly without any error. Can I use the same BAPI BAPI_ACC_DOCUMENT_POST to post sp GL account also? If Yes, why it is giving such an error message while posting the special GL item.

Thank you,

Nidhi

8 REPLIES 8
Read only

Former Member
0 Likes
1,609

Hi,

Try this bapis:

BAPI_ACC_GL_POSTING_POST Accounting: General G/L Account Posting

BAPI_GL_GETGLACCPERIODBALANCES Posting period balances for each G/L account

Thanks,

AMS

Read only

Former Member
0 Likes
1,609

Hi Nidhi,

I have posted FI documents with Special G/L indicator using the BAPI_ACC_DOCUMENT_POST. What are the tables of the BAPI interface you have used? How did you populate the special G/L indicator?

Regards,

Immanuel.

Read only

mrio_espinheira
Participant
0 Likes
1,609

Hello,

Are you using field ACC_PRINCIPLE from the parameter BAPIACHE09 (structure)?

Best regards.

Read only

0 Likes
1,609

hi Mário Espinheira ,

No we are not populating ACC_PRINCIPLE in the document header. Could you pls explain me more..

- Nidhi

Read only

0 Likes
1,609

Hi,

In the message documentation,

SAP has given that Special G/L transactions of type are not supported in the interface to FI.

Also, It has recommended to post manually in financial accounting.

Sujay

Read only

0 Likes
1,609

Hello,

Well, I can't explain it in functional terms, but when I had a requirement to post documents in another ledger I used this field to define the ledger for the post. Check table TACC_PRINCIPLE for available ACC_PRINCIPLE values. You should also request the help of someone from the FI functional team.

Best regards.

Read only

Former Member
0 Likes
1,609

Hi Immanuel.,

We are populating the following tables ACCOUNTGL,ACCOUNTRECEIVABLE,CURRENCYAMOUNT along with Documentheader

-Nidhi

Read only

0 Likes
1,609

Hi Nidhi,

The special GL indicator can be populated in the SP_GL_IND field of the table ACCOUNTRECEIVABLE. This field is not available in the ACCOUNTGL table. If you want to fill this field you can fill it in the EXTENSION1 table and populate in the BTE for the BAPI.

Regards,

Immanuel.