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

Setting ledger group(LDGRP)

Former Member
0 Likes
3,062

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

3 REPLIES 3
Read only

joginder_singh
Active Participant
0 Likes
1,590

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

Read only

0 Likes
1,590

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

Read only

0 Likes
1,590

Hi,

We used the field DOCUMENTHEADER-ACC_PRINCIPLE in the bapi BAPI_ACC_DOCUMENT_POST to determine the ledger group.

Regards,

DAS