Skip to Content
0
Former Member
Sep 30, 2009 at 12:26 PM

Problem in posting in FB01 using BAPI_ACC_DOCUMENT_POST

640 Views

Hi all,

I am trying to post document in FB01 using bapi BAPI_ACC_DOCUMENT_POST.My requirement is to post document by uploading related data from file.

Data format is as follows:

Doc	Company Code	Post Date	Doc Date	Header Text	Currency	PK	GL Account	Amount	Tax Code	Cost Center	Line item text	Tax amount	Ignore
KA	7150	20090831	20090831	NDF 08/2009	EUR	40	609600	150.18	V1	310169	6593NDF 08/2009 PINAULT	0	NOTE DE FRAIS STANDARD             

here,
i have following fields in excel sheet
Doc type: KA
comp code: 7150
post date:....
doc date:..
HEader  text: NDF 08/2009	EURPINAULT
currency:EUR
PK: 40
GL accnt..
Amount:377.73
tax code: v1
cost cntr: 310169
line item text:--
tax amount :
ignore:

In BApi i can pass only few fields,

but to pass rest of the fields such as post key and gl account for next line item,i am not getting how to proceed.

The required doc will look like this,which will have line items also:

 Doc.type : KA ( Vendor document ) Normal document
 Doc. Number    1700000034       Company code    7150         Fiscal year     2009
 Doc. date      09/25/2009       Posting date    09/25/2009   Period          12
 Doc.currency   EUR
 Doc.head.text  NDF 08/2009

Itm PK Account    Account short text   Assignment         Tax Jur.        Tx Cost Ctr             Amount Material

  1 40 617300     Mileage              0000310148                            310148               27.20
  2 40 617900     Entertainment Exp.   0000310148                         V1 310148              177.26
  3 40 144000     Input-VAT            20090925                           V4                      34.74
  4 31 1019186    B.E.N. MR SAUVAT                                        V1                     239.20-

Please help me in this ,how should i proceed.

Your valuable suggestions be appreciated.

Best regards,

Meenakshi

Edited by: meenakshi239 on Sep 30, 2009 2:27 PM