03-09-2009 4:12 PM
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
03-09-2009 4:19 PM
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
03-09-2009 4:25 PM