‎2008 Oct 13 3:31 PM
Hi to all.
I have the following problem:
when I use the FM "BAPI_ACC_DOCUMENT_POST" for Accounting Vendor Document post, if I use the field SP_GL_IND (Special G/L Indicator) in ACCOUNTPAYABLE structure to refer to field GL_ACCOUNT of the same structure, the BAPI create the document with G/L account referred to Vendor and not the value insert before in GL_ACCOUNT field.
Help me please.
Thanks thanks thanks.
Umberto
‎2008 Oct 13 3:45 PM
Hi
U should insert the GL account data in the structure ACCOUNTGL, not in ACCOUNTPAYABLE, check the help of BAPI:
If the vendor account number VENDOR_NO is not given, only the general
ledger is updated. In this case, an entry must be made in the field
GL_ACCOUNT (G/L account for general ledger accounting).
Max
‎2008 Oct 13 3:45 PM
Hi
U should insert the GL account data in the structure ACCOUNTGL, not in ACCOUNTPAYABLE, check the help of BAPI:
If the vendor account number VENDOR_NO is not given, only the general
ledger is updated. In this case, an entry must be made in the field
GL_ACCOUNT (G/L account for general ledger accounting).
Max
‎2008 Oct 13 3:53 PM
Hi Max,
sorry for the english :).
Suppose that CO.GE of vendor is equal to 'PPPD999999' and I fill the ACCOUNTPAYABLE structure as:
ACCOUNTPAYABLE-ITEMNO_ACC = '10'.
ACCOUNTPAYABLE-VENDOR_NO = '0000000011'.
ACCOUNTPAYABLE-GL_ACCOUNT = 'PP12345678'.
ACCOUNTPAYABLE-SP_GL_IND = 'J'.
After executution of the BAPI, G/L account 'PP12345678' was replaced by 'PPPD999999'.
This isn't correct!
Can you help me?
Thanks!
Umberto
‎2008 Oct 13 4:43 PM
Hi
If 0000000011 is vendor code you DON'T HAVE TO FILL the field GL_ACCOUNT.
ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.
ACCOUNTPAYABLE-VENDOR_NO = '0000000011'.
ACCOUNTPAYABLE-SP_GL_IND = 'J'.
and
ACCOUNTGL-ITEMNO_ACC = '0000000002'.
ACCOUNTGL-GL_ACCOUNT = 'PP12345678'.
Max
‎2008 Oct 13 5:11 PM
‎2008 Oct 13 5:25 PM
Hi
What doesn't work?
What PPPD999999 and PP12345678? i.e. what kind of gl account?
PPPD999999 is reconciliation account? If it's so it should be posted automatically.
Give us more details
Max