<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem in posting in FB01 using BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249203#M1383390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This BAPI has lots of input table structures with associated help screens for you to read.  ACCOUNTGL may be a good place to start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ACCOUNTGL	LIKE	BAPIACGL09
ACCOUNTRECEIVABLE	LIKE	BAPIACAR09
ACCOUNTPAYABLE	LIKE	BAPIACAP09
ACCOUNTTAX	LIKE	BAPIACTX09
CURRENCYAMOUNT	LIKE	BAPIACCR09
CRITERIA	LIKE	BAPIACKEC9
VALUEFIELD	LIKE	BAPIACKEV9
EXTENSION1	LIKE	BAPIACEXTC
RETURN	LIKE	BAPIRET2
PAYMENTCARD	LIKE	BAPIACPC09
CONTRACTITEM	LIKE	BAPIACCAIT
EXTENSION2	LIKE	BAPIPAREX
REALESTATE	LIKE	BAPIACRE09
ACCOUNTWT	LIKE	BAPIACWT09&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2009 12:44:11 GMT</pubDate>
    <dc:creator>christine_evans</dc:creator>
    <dc:date>2009-09-30T12:44:11Z</dc:date>
    <item>
      <title>Problem in posting in FB01 using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249202#M1383389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Data format is as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
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             

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
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:&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In BApi i can pass only few fields,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The required  doc will look like this,which will have line  items also:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 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
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
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-
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please help me in this ,how should i proceed.&lt;/P&gt;&lt;P&gt;Your valuable suggestions be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Meenakshi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: meenakshi239 on Sep 30, 2009 2:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 12:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249202#M1383389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T12:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in posting in FB01 using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249203#M1383390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This BAPI has lots of input table structures with associated help screens for you to read.  ACCOUNTGL may be a good place to start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ACCOUNTGL	LIKE	BAPIACGL09
ACCOUNTRECEIVABLE	LIKE	BAPIACAR09
ACCOUNTPAYABLE	LIKE	BAPIACAP09
ACCOUNTTAX	LIKE	BAPIACTX09
CURRENCYAMOUNT	LIKE	BAPIACCR09
CRITERIA	LIKE	BAPIACKEC9
VALUEFIELD	LIKE	BAPIACKEV9
EXTENSION1	LIKE	BAPIACEXTC
RETURN	LIKE	BAPIRET2
PAYMENTCARD	LIKE	BAPIACPC09
CONTRACTITEM	LIKE	BAPIACCAIT
EXTENSION2	LIKE	BAPIPAREX
REALESTATE	LIKE	BAPIACRE09
ACCOUNTWT	LIKE	BAPIACWT09&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 12:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249203#M1383390</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2009-09-30T12:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in posting in FB01 using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249204#M1383391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But,how to get the line items here through BAPI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 12:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249204#M1383391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T12:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in posting in FB01 using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249205#M1383392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main parameters of BAPI BAPI_ACC_DOCUMENT_POST are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- DOCUMENTHEADER (BAPIACHE09) to transfer the header data&lt;/P&gt;&lt;P&gt;- ACCOUNTGL (BAPIACGL09) to transfer the g/l item data&lt;/P&gt;&lt;P&gt;- ACCOUNTRECEIVABLE (BAPIACAR09) to transfer the  customer item data&lt;/P&gt;&lt;P&gt;- ACCOUNTPAYABLE (BAPIACAP09) to transfer the vendor item data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u need to use one of parameters above to transfer the header and item data, the amount data for every item have to be transfered by parameters CURRENCYAMOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should also considere the posting key is automatically set by BAPI, and it depends on the item type and the sign of amount:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- 40/50 for G/l&lt;/P&gt;&lt;P&gt;- 01/11 for customer&lt;/P&gt;&lt;P&gt;- 21/31 for vendor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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-&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lines 1/2 data move to ACCOUNTGL and  CURRENCYAMOUNT&lt;/P&gt;&lt;P&gt;Line   4   data move  to ACCOUNTPAYABLE and CURRENCYAMOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line 3 seems to be a TAX line, in this case u need to use ACCOUNTTAX and CURRENCYAMOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The header data to be transfered to DOCUMENTHEADER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 13:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249205#M1383392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T13:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in posting in FB01 using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249206#M1383393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all.I used BDC instead of BAPI and it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 08:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249206#M1383393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-11T08:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in posting in FB01 using BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249207#M1383394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I done FB01 posting with all the feilds using BDC.&lt;/P&gt;&lt;P&gt;For that i written some code in recorded code. &lt;/P&gt;&lt;P&gt;I splitted the data into header &amp;amp; Item data.&lt;/P&gt;&lt;P&gt;Loop the header data. In that Loop the item table with reference to ref document no.&lt;/P&gt;&lt;P&gt;&amp;amp; using call transaction syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u,&lt;/P&gt;&lt;P&gt;Nagaphani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 06:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-posting-in-fb01-using-bapi-acc-document-post/m-p/6249207#M1383394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-05T06:44:42Z</dc:date>
    </item>
  </channel>
</rss>

