<?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: BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457735#M1415085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much to all, but i couldn't that this bapi clear my open items, so i'm going to try with FIPI functions.&lt;/P&gt;&lt;P&gt;J.G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jan 2010 09:53:54 GMT</pubDate>
    <dc:creator>franciscojavier_gmezordez</dc:creator>
    <dc:date>2010-01-18T09:53:54Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457730#M1415080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt; I need help because i have to post clearing accounts with a BAPI   BAPI_ACC_DOCUMENT_POST,&lt;/P&gt;&lt;P&gt;but it don't work with the structures that i'm filling, the only thing that i have do is post, but clearing accounts, never. Can you give me an good example for Post Clearing Accounts with this BAPI,&lt;/P&gt;&lt;P&gt;sorry for my poor English,&lt;/P&gt;&lt;P&gt;Many Thanks, &lt;/P&gt;&lt;P&gt;J.G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 15:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457730#M1415080</guid>
      <dc:creator>franciscojavier_gmezordez</dc:creator>
      <dc:date>2009-12-23T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457731#M1415081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this  &lt;A href="http://abaptechnology.blogspot.com/2009/01/bapi-sample.html" target="test_blank"&gt;http://abaptechnology.blogspot.com/2009/01/bapi-sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 15:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457731#M1415081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T15:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457732#M1415082</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;try fm &lt;STRONG&gt;BAPI_ACC_GL_POSTING_POST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or look for where use list of the fm  BAPI_ACC_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 15:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457732#M1415082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T15:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457733#M1415083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi: I try your suggest but i couln't find nothing interesting in my Sap system, thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anurag:  I'm going to test your code in my Sap system today and i tell you. &lt;/P&gt;&lt;P&gt;Many Thanks &lt;/P&gt;&lt;P&gt;J.G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 16:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457733#M1415083</guid>
      <dc:creator>franciscojavier_gmezordez</dc:creator>
      <dc:date>2009-12-23T16:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457734#M1415084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM F_BUILD_CLEARING_RECORD .
  DATA: lv_posnr TYPE posnr_acc.
  DATA: lv_hkont2 LIKE bseg-hkont.
  DATA: lv_totamt TYPE bapiwrbtr.

  CLEAR: gt_gl_item,
         gt_doc_values.

  lv_posnr = gv_cnt + 1.
  lv_hkont2 = p_clract.
  lv_totamt = gv_posting_debits - gv_posting_credits .
  lv_totamt = lv_totamt * -1.

*  Fill Line of Document Item
  gt_gl_item-itemno_acc = lv_posnr.
  gt_gl_item-gl_account = lv_hkont2.
  gt_gl_item-pstng_date = gv_file_date-date.
  gt_gl_item-item_text  = 'Clearing Account'.
  APPEND gt_gl_item.

**  Fill Line of Document Value
  gt_doc_values-itemno_acc   = lv_posnr.
  gt_doc_values-currency_iso = gv_comp_curr. " posting companies currency.
  gt_doc_values-currency     = gv_comp_curr. " posting companies currency..
  gt_doc_values-amt_doccur   = lv_totamt.
  APPEND gt_doc_values.

  clear: gv_posting_credits, gv_posting_debits.
ENDFORM.                    " F_BUILD_CLEARING_RECORD
{/code}

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      documentheader    = gv_doc_header&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      obj_type          = gv_doc_header-obj_type&lt;/P&gt;&lt;P&gt;      obj_key           = gv_doc_header-obj_key&lt;/P&gt;&lt;P&gt;      obj_sys           = gv_doc_header-obj_sys&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      accountgl         = gt_gl_item&lt;/P&gt;&lt;P&gt;      accountreceivable = gt_ar_item&lt;/P&gt;&lt;P&gt;      accountpayable    = gt_ap_item&lt;/P&gt;&lt;P&gt;      currencyamount    = gt_doc_values&lt;/P&gt;&lt;P&gt;      extension1        = gt_extension&lt;/P&gt;&lt;P&gt;      return            = gt_return.&lt;/P&gt;&lt;P&gt;{/code}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 19:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457734#M1415084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-23T19:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457735#M1415085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much to all, but i couldn't that this bapi clear my open items, so i'm going to try with FIPI functions.&lt;/P&gt;&lt;P&gt;J.G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 09:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post/m-p/6457735#M1415085</guid>
      <dc:creator>franciscojavier_gmezordez</dc:creator>
      <dc:date>2010-01-18T09:53:54Z</dc:date>
    </item>
  </channel>
</rss>

