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

FB50 and BAPI BAPI_ACC_GL_POSTING_POST?

Former Member
0 Likes
3,494

Hi

I have one question, I want to simulate FB50 through BAPI BAPI_ACC_GL_POSTING_POST is this BAPI the correct?

In FB50 I have a field called D/C (Debit / Credit) but the field doesn't exist in BAPI internal table ACCOUNTGL.

Any idea?

Thanx in advanced

2 REPLIES 2
Read only

Former Member
0 Likes
1,528

Hi

The debit/credit flag is automatically setted by the BAPI in order to the sign of the amount (CURRENCYAMOUNT structure):

- H if the amount is less than 0 (sign -),

- S if the sign is greater than 0 (sign +).

Max

Read only

Former Member
0 Likes
1,528

Hi There,

You could use bapi BAPI_ACC_DOCUMENT_POST to post to FB50. The debit/credit indicator is in the table - accountgl in the bapi.

Thanks nina.