Application Development 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: 

Bapi for posting FI documents for new General ledger accounting

Former Member
0 Kudos
2,605

Hi,

We have a requirement for posting FI documents for new General ledger i.e for transaction FB01L. Is there any BAPI for the same so that BDC can be avoided.

The BAPI "BAPI_ACC_DOCUMENT_POST" is used for FB01. Can we use it for FB01L?? As in this BAPI ledger group field is not there. Please suggest.

Thanks in advance.

Regards,

Gaurav

15 REPLIES 15

Former Member
0 Kudos
273

Resolved it myself

0 Kudos
273

hi,

Can you tell me the detailed info about using the this BAPI?

Thanks in advance.

0 Kudos
273

Hi Gaurav,

could you please share your solution with us.

I have the same problem.

Kind Regards

Philip

0 Kudos
273

Please tell me your solution.

Thanks.

Uschi

0 Kudos
273

Hi ,

Can you please tell me which BAPI you are used to update Ledger group field in FB50L transaction

0 Kudos
273

Hi Ursula,

Could you resolved the problem with de ledger group? I appreciate your help...

Thanks,

Sandra M.

0 Kudos
273

Can you please guide me for the below case.

I have to post GL with 0L,1L & 2L using BAPI -  BAPI_ACC_GL_POSTING_POST. In this case also i have to implement BADI?

Or can you please give sample code if possible.

0 Kudos
273

Hi Philip,

Solved myself using the below options.

If you are using the BAPI - BAPI_ACC_GL_POSTING_POST, you can pass accounting principle field in importing structure BAPIACHE08. The relation between Legder group & accounting principle has to be configured in SPRO by FICO consultant. Once they configured in the system, get the accounting principles and then pass the accounting principle .


Code:  s_documentheader-acc_principle  = wa_header-acc_principle.



Reward me if this will help you.


Thanks,

Yerukala Setty

0 Kudos
273

Hi Ursula,

Solved myself using the below options.

If you are using the BAPI - BAPI_ACC_GL_POSTING_POST, you can pass accounting principle field in importing structure BAPIACHE08. The relation between Legder group & accounting principle has to be configured in SPRO by FICO consultant. Once they configured in the system, get the accounting principles and then pass the accounting principle .


Code:  s_documentheader-acc_principle  = wa_header-acc_principle.

Reward me if this will help you.


Thanks,

Yerukala Setty

0 Kudos
273

Solved myself using the below options.

If you are using the BAPI - BAPI_ACC_GL_POSTING_POST, you can pass accounting principle field in importing structure BAPIACHE08. The relation between Legder group & accounting principle has to be configured in SPRO by FICO consultant. Once they configured in the system, get the accounting principles and then pass the accounting principle .


Code:  s_documentheader-acc_principle  = wa_header-acc_principle.



Reward me if this will help you.


Thanks,

Yerukala Setty

0 Kudos
273

Hi Venkat,

Solved myself using the below options.

If you are using the BAPI - BAPI_ACC_GL_POSTING_POST, you can pass accounting principle field in importing structure BAPIACHE08. The relation between Legder group & accounting principle has to be configured in SPRO by FICO consultant. Once they configured in the system, get the accounting principles and then pass the accounting principle .


Code:  s_documentheader-acc_principle  = wa_header-acc_principle.



Reward me if this will help you.


Thanks,

Yerukala Setty

Former Member
0 Kudos
273

Hi gaurav,

could you please let me know how you have resolved the issue for new general ledger.

My requirement is to update ledger group using bapi . Please can you share your ideas with us.

Thanks in advance

srinivas

0 Kudos
273

Solved myself using the below options.

If you are using the BAPI - BAPI_ACC_GL_POSTING_POST, you can pass accounting principle field in importing structure BAPIACHE08. The relation between Legder group & accounting principle has to be configured in SPRO by FICO consultant. Once they configured in the system, get the accounting principles and then pass the accounting principle .


Code:  s_documentheader-acc_principle  = wa_header-acc_principle.



Reward me if this will help you.


Thanks,

Yerukala Setty

Former Member
0 Kudos
273

Hello Gaurav,

Could you help me, I´m using bapi but the field ldgrp didn´t take it. How you resolved the problem for new general ledger,

Thanks you.

Sandra

0 Kudos
273

Hi Sandra,

Solved myself using the below options.

If you are using the BAPI - BAPI_ACC_GL_POSTING_POST, you can pass accounting principle field in importing structure BAPIACHE08. The relation between Legder group & accounting principle has to be configured in SPRO by FICO consultant. Once they configured in the system, get the accounting principles and then pass the accounting principle .


Code:  s_documentheader-acc_principle  = wa_header-acc_principle.



Reward me if this will help you.


Thanks,

Yerukala Setty