<?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: Regarding BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317362#M1028906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu ,&lt;/P&gt;&lt;P&gt;You can do one thing is create a dummy line item for the selected box,here you pass all the information of the line same only you have to change the sign of the amount field in the second line to make it balance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2008 12:22:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-19T12:22:11Z</dc:date>
    <item>
      <title>Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317356#M1028900</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;In my report prgram iam using BAPI_ACC_DOCUMENT_POST to post Open Purchase orders. &lt;/P&gt;&lt;P&gt;I am passing the following parameters to BAPI&lt;/P&gt;&lt;P&gt;Document Header (BAPIACHE09)&lt;/P&gt;&lt;P&gt;u2022	HEADER_TXT = AUGUST&lt;/P&gt;&lt;P&gt;u2022	COMP_CODE = C001&lt;/P&gt;&lt;P&gt;u2022	DOC_DATE = SYDATUM&lt;/P&gt;&lt;P&gt;u2022	PSTNG_DATE = SYDATUM&lt;/P&gt;&lt;P&gt;u2022	DOC_TYPE = u201C ZO u201C&lt;/P&gt;&lt;P&gt;u2022	XREF1_HD = 'PROVISION'( Enhance BAPI to include this field from BKPF)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table ACOUNTGL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a.	GL_ACCOUNT = 2106000001&lt;/P&gt;&lt;P&gt;b.	ITEM_TEXT = AUGUST&lt;/P&gt;&lt;P&gt;c.	ACCT_TYPE = u201C S u201C&lt;/P&gt;&lt;P&gt;d.	COMP_CODE = C001&lt;/P&gt;&lt;P&gt;e.	WBS_ELEMENT = NFOSYS_TEST3_FOR_SRM1&lt;/P&gt;&lt;P&gt;f.	PO_Number(BSEG-EBELN) = 1200000006&lt;/P&gt;&lt;P&gt;g.	PO_line item(BSEG-EBELP) = 00010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table CURRENCY AMOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a.	CURRENCY = RMB&lt;/P&gt;&lt;P&gt;b.	AMT_DOCCUR = 0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am taking all the above values in internal table and then passing these parameters to the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in the return table there is an error message like&lt;/P&gt;&lt;P&gt;"FI/CO interface: Inconsistent FI/CO line item data for updating".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one tell me hw to rectify this error.&lt;/P&gt;&lt;P&gt;Also i want to know&lt;/P&gt;&lt;P&gt;1) the purpose of BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;2) Hw will i know whether a document is posted successfully or not?&lt;/P&gt;&lt;P&gt;3) Hw to capture document num created by the BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt; Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 09:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317356#M1028900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T09:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317357#M1028901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;documentheader = wa_account_header&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;accountgl = it_accountgl&lt;/P&gt;&lt;P&gt;accountpayable = it_account_pay&lt;/P&gt;&lt;P&gt;currencyamount = it_currency_amount&lt;/P&gt;&lt;P&gt;return = it_bapi_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR v_lineitem.&lt;/P&gt;&lt;P&gt;v_lineitem = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_bapi_return INTO wa_type_bapi_return.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;To Save Success Record Through BAPI Commit----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;IF wa_type_bapi_return-type = c_suc .''if it is success&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP .&lt;/P&gt;&lt;P&gt;try to use like this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'BAPI_TRANSACTION_COMMIT' will Update the database.&lt;/P&gt;&lt;P&gt;you can check in BAPIRET2 structure to find the error or success records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 09:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317357#M1028901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T09:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317358#M1028902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This is because you are trying to pass only one line item for this BAPI you need to have a balance amount[D/C] so please add one more line item for amount and GL Structure and then pass to get the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 10:06:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317358#M1028902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T10:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317359#M1028903</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;1) the purpose of BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are some FM that we use for creating trasaction . for example FM : that use for creating production order . if you execut the FM , the system will not create any data in the system so you need to excute the FM : BAPI_TRANSACTION_COMMIT to commit that creating the production order .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in case of commit work, that is a syntax in abap program . if you use this syntax after you insert ,update or delete table in the sap ,system will do it immediately otherwise the system will do it after execution is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Hw will i know whether a document is posted successfully or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In the importing parameters you have a Return table in which you will have the messages just loop &lt;/P&gt;&lt;P&gt;through the table and read the table where type = s (success).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Hw to capture document num created by the BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you call the BAPI_ACC_DOCUMENT_POST with correct parameters, the FI document (in your case vendor invoice) should be successfully posted and return table RETURN filled with system messages. Now loop at/read table RETURN with field TYPE = 'S' and ID = 'RW' and NUMBER = '605'. (These values have been hard-coded within the BAPI code by SAP - so you need not worry). If the read was successful, the document number posted will be the first 10 characters in the field MESSAGE_V2 in table RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 10:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317359#M1028903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T10:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317360#M1028904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thnks for ur response.&lt;/P&gt;&lt;P&gt;Output of my report will be similar to the below one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PO       amount       currency   gl_account    check_box&lt;/P&gt;&lt;P&gt;1000     10                  inr           00000107          X&lt;/P&gt;&lt;P&gt;1002     20                  inr             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each chekbox being checked, bapi will be called.&lt;/P&gt;&lt;P&gt;hence there will be only one line item per PO selected for posting. Can u suggest me hw do i add one more line item for amount and GL structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;  Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 11:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317360#M1028904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T11:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317361#M1028905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu,&lt;/P&gt;&lt;P&gt; I am not clear with yor requirement as you have updated could please explain me more or atleast give me your code to analyse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 12:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317361#M1028905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T12:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317362#M1028906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu ,&lt;/P&gt;&lt;P&gt;You can do one thing is create a dummy line item for the selected box,here you pass all the information of the line same only you have to change the sign of the amount field in the second line to make it balance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 12:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317362#M1028906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T12:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317363#M1028907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks for ur suggestion Sudharshan, i'm working on it let me see wt will happen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 13:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317363#M1028907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317364#M1028908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu,&lt;/P&gt;&lt;P&gt; I hope you are using CHECK BAPI to check the line item is error free and if everything is okay then you can use POST BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sudharshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 06:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317364#M1028908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T06:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317365#M1028909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 10:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/4317365#M1028909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T10:32:23Z</dc:date>
    </item>
  </channel>
</rss>

