2009 Jan 14 1:30 PM
Hi gurus,
when I execute BAPI_ACC_GL_POSTING_POST a new document is correctly created, only field LDGRP(Ledger Group) is empty. I read the forum and found that it can be filled when EXTENSION1 is filled. Only I cannot find how to fill this structure?
What do I need to do exactly to create a value for field ledger group(LDGRP)?
When using BAPI_ACC_DOCUMENT_POST there are even 2 extension structures, but I don't know how to fill those either.
Can anybody help me?
Kind regards,
Wim
2009 Jan 14 1:40 PM
Hi
You can fill the value of LDGRP In field1 when passing to the BAPI and then in the userexit EXIT_SAPLACC4_001 pass the value to the from extension field to ACCHD-LDGRP field .
Also You can find more details on the documention of BAPI.
I hope this hint help you to resolve your issue.
Cheers
Joginder
2009 Jan 14 3:07 PM
Thanks it is implemented,
the structure gets filled correctly in the user-exit but it doesn't get passed this BADI.
When executing FI_DOCUMENT_CHECK --> PERFORM CHECK_ACCIT --> perform check_rldnr, field G_GROUP_LEDGER has value 'ZL' and one entry in ACCIT_FI has field and XOPVW with value 'X' and field awtyp has value 'BKPFF' for both entries in ACCIT_FI. And therefore 'MESSAGE E012(FAGL_POST_SERVICE) with accit_fi-hkont accit_fi-bukrs' is triggered.
Does anybody know what goes wrong?
regards,
Wim
Edited by: Wim van Erp on Jan 14, 2009 4:24 PM
2009 Apr 09 1:29 PM
Hi,
We used the field DOCUMENTHEADER-ACC_PRINCIPLE in the bapi BAPI_ACC_DOCUMENT_POST to determine the ledger group.
Regards,
DAS