<?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: Error in BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239675#M1630019</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;message RW 612 (No currency line exists for line item &amp;amp;1) is raised in include LACC9F20, precisely in form fill_acccr:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  READ TABLE it_bapi_acccr WITH KEY itemno_acc = r_posnr
       BINARY SEARCH TRANSPORTING NO FIELDS.
  IF sy-subrc IS INITIAL.
....

  ELSE.
    PERFORM append_msg_to_return
            USING 'E'             "TYPE
                  'RW'            "ID
                  '612'           "NUMBER
                  r_posnr         "MESSAGE_ONE
                  ' '             "MESSAGE_TWO
                  r_parameter     "PARAMETER
                  r_tabix         "ROW
                  ' '.        "FIELD
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this is because the first condition is not met. That is there is something wrong with &lt;/P&gt;&lt;P&gt;it_bapi_acccr (Accounting Interface: Currency Information).&lt;/P&gt;&lt;P&gt;From this i just can imagine these causes:&lt;/P&gt;&lt;P&gt;1.- EXIT_SAPLV60B_008 is clearing XACCCR&lt;/P&gt;&lt;P&gt;2.- There is another badi or exit clearing the values of ACCCR e.g. badi ACC_DOCUMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2011 08:01:05 GMT</pubDate>
    <dc:creator>former_member182371</dc:creator>
    <dc:date>2011-10-05T08:01:05Z</dc:date>
    <item>
      <title>Error in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239668#M1630012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using exit EXIT_SAPLV60B_008 to pass some information to Accounting document. Also, in the same user exit, we are creating an AP document by using the BAPI BAPI_ACC_DOCUMENT_POST. When the billing run is executed in foreground, the whole process is working fine. However, when run in background, there are times when the BAPI is failling, and it is giving an RW612 error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the possible reasons why the BAPI is failing when run in background?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Louisse&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 05:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239668#M1630012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T05:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239669#M1630013</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;RW612 seems to be an error caused by missing entries of table CURRENCYAMOUNT of  BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 06:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239669#M1630013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T06:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239670#M1630014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are correct. But I am passing the value for currency. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what makes it harder to pinpoint is that the issue is not always happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Louisse&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 06:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239670#M1630014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T06:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239671#M1630015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Louisse,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better you can post entire message.Check the currency field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 06:28:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239671#M1630015</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-10-05T06:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239672#M1630016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Louisse,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you Paste your code.I think there is a some fields are missing with input data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 06:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239672#M1630016</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-10-05T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239673#M1630017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Loisse,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may this be an initialization error, if EXIT_SAPLV60B_008 is calles a 2nd time? Maybe some tables (which are passed to the BAPI) are not cleared before 2nd call or something like that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 06:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239673#M1630017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T06:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239674#M1630018</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;Call the BAPI with a job, ie, call a customer report with a job in a function module called IN UPDATE TASK. Split both (invoice and additional FI document).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 07:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239674#M1630018</guid>
      <dc:creator>eduardo_hinojosa</dc:creator>
      <dc:date>2011-10-05T07:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239675#M1630019</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;message RW 612 (No currency line exists for line item &amp;amp;1) is raised in include LACC9F20, precisely in form fill_acccr:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  READ TABLE it_bapi_acccr WITH KEY itemno_acc = r_posnr
       BINARY SEARCH TRANSPORTING NO FIELDS.
  IF sy-subrc IS INITIAL.
....

  ELSE.
    PERFORM append_msg_to_return
            USING 'E'             "TYPE
                  'RW'            "ID
                  '612'           "NUMBER
                  r_posnr         "MESSAGE_ONE
                  ' '             "MESSAGE_TWO
                  r_parameter     "PARAMETER
                  r_tabix         "ROW
                  ' '.        "FIELD
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this is because the first condition is not met. That is there is something wrong with &lt;/P&gt;&lt;P&gt;it_bapi_acccr (Accounting Interface: Currency Information).&lt;/P&gt;&lt;P&gt;From this i just can imagine these causes:&lt;/P&gt;&lt;P&gt;1.- EXIT_SAPLV60B_008 is clearing XACCCR&lt;/P&gt;&lt;P&gt;2.- There is another badi or exit clearing the values of ACCCR e.g. badi ACC_DOCUMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 08:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-acc-document-post/m-p/8239675#M1630019</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-10-05T08:01:05Z</dc:date>
    </item>
  </channel>
</rss>

