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 - Error Message

Former Member
0 Likes
434

Hello,

I am trying to use the BAPI 'BAPI_ACC_GL_POSTING_POST', but when I run the code I keep

getting the error message 'G/L account 1512 is not defined in chart of accounts PSO'

Can anyone tell me in laymans terms what this exactly means.

I would appreciate any feedback on this matter.

Thanks

Andy

3 REPLIES 3
Read only

Former Member
0 Likes
413

u need to create G/L acct for that chart of a/c s

Read only

0 Likes
413

Hi,

Thanks for your reply but the GL account must exist. I can use the transaction FB01

with the same GL account 1512 and everything works ok.

This is what is so confusing...

Andy

Read only

Former Member
0 Likes
413

Here's something to try: G/L Account is a 10 character field (not numeric). Ensure that when you set the account field's contents that you include any preceeding zeros. 106950 is NOT the same as 0000106950 in this case.

INCORRECT:

bapiacgl08-gl_account = '106950'. " General Ledger Account

CORRECT:

bapiacgl08-gl_account = '0000106950'. " General Ledger Account