‎2008 Jan 31 9:35 AM
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
‎2008 Jan 31 9:37 AM
‎2008 Jan 31 9:41 AM
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
‎2008 Aug 28 8:13 PM
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