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 transaction FB01 with account posting key

Former Member
0 Kudos
607

Hi,

I have to use a BAPI for registering Invoices into the FI module through the FB01 transaction.

I am trying to use the standard BAPI: BAPI_ACC_DOCUMENT_POST

The problem is that this BAPI does not manage the account posting key (field BSCHL).

Could anyone provide help?

Thank you very much in advance.

2 REPLIES 2

Former Member
0 Kudos
83

In this BAPI the account key depend on operation key ACCT_KEY (or KTOSL): see the table T030B.

Max

Message was edited by: max bianchi

Former Member
0 Kudos
83

It is happening here in the BAPI


CALL FUNCTION 'FI_GET_POSTING_KEY'
         EXPORTING
              i_ktosl       = gs_accit-ktosl
         IMPORTING
              e_bschs       = ld_bschs
              e_bschh       = ld_bschh
              e_umskz       = ld_umskz
         EXCEPTIONS
              error_message = 1.

As max pointed out, it is dependent on the transaction key(KTOSL).

Srinivas