2014 Jun 19 11:06 AM
Hi all
i am creating this document for customer.
so it gives me this error: "Account 1250701 in company code 2000 cannot be directly posted to"
and if i didnt pass the GL account it give me error you must set the GL Account parameter.
FYI, i did create this document by my hand from the screen F-02 and it is working very good.
here is the sample of my code:
("ITEMNO_ACC", "1");
table.SetValue("CUSTOMER", "241");
table.SetValue("GL_ACCOUNT", "0001250701");
please advise.
thanks,
2014 Jun 19 2:24 PM
Hi all
i am creating this document for customer.
so it gives me this error: "Account 1250701 in company code 2000 cannot be directly posted to"
and if i didnt pass the GL account it give me error you must set the GL Account parameter.
FYI, i did create this document by my hand from the screen F-02 and it is working very good.
here is the sample of my code:
("ITEMNO_ACC", "1");
table.SetValue("CUSTOMER", "241");
table.SetValue("GL_ACCOUNT", "0001250701");
please advise.
thanks,
2014 Jun 19 2:24 PM
2014 Jun 23 3:36 PM
BAPI_ACC_GL_POSTING_POST only allows G/L accounts (e.g. CC 40; 50), not customer nor vendor, you must use another BAPI. e.g. generic BAPI_ACC_DOCUMENT_POST. (Also use search tool before posting - The SCN Rules of Engagement)
NB: You should not be allowed to post directly on a Reconciliation Account.
Regards,
Raymond