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: 

BAPIs for FB01

Former Member
0 Kudos

Hi developers!

I need to use a BAPI for the FB01 transaction.

I think I should use BAPI_ACC_DOCUMENT_POST .

I can manage without problems this header's field:

BKPF-BUKRS

BKPF-BLDAT

BKPF-BUDAT

BKPF-BUDAT

BKPF-BLART

BKPF-XBLNR

BKPF-BKTXT

and positions field such as:

BSEG-WRBTR

BSEG-MWSKZ

BSEG-SGTXT

BSEG-KOSTL

BSEG-PROJK

but I can't with this other position field

BSEG-BSCHL ?? (I know it depends on operation key ACCT_KEY (or KTOSL))

RF05A-NEWKO ?? (Account or Matchcode for the Next Line Item)

BSEG-PERNR ?? (Personnel Number)

Does anyone have any idea about these field? Am I using the correct BAPI?

Thanks,

Simone

2 REPLIES 2

former_member376453
Contributor
0 Kudos

With this BAPI, I think you will not be able to handle the posting keys. If you post a document with debit and credit amount, it will automatically fetch the posting key depending on the object key.

NEWKO will be next line item G/L account - ACCOUNTGL - GL_ACCOUNT

I am not sure, if there is something through which you can directly pass the PERNR. But you can definitely do it through Extension segment.

Go through the documentation first

Kuntal

Edited by: Kuntal Nandi on Mar 9, 2009 11:23 AM

Former Member
0 Kudos

HI,

Refer to this link