<?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 Help with bapi_acc_document_post in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-acc-document-post/m-p/6561512#M1431425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i´m working with bapi_acc_document_post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to post this document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Position 1:   vendor  1000 usd  &lt;/P&gt;&lt;P&gt;Posicion2:   vat         1000 usd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the bapi does not post it correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows how to fill the internal tables to post it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2010 16:36:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-16T16:36:52Z</dc:date>
    <item>
      <title>Help with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-acc-document-post/m-p/6561512#M1431425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i´m working with bapi_acc_document_post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to post this document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Position 1:   vendor  1000 usd  &lt;/P&gt;&lt;P&gt;Posicion2:   vat         1000 usd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the bapi does not post it correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone knows how to fill the internal tables to post it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 16:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-acc-document-post/m-p/6561512#M1431425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-16T16:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-acc-document-post/m-p/6561513#M1431426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to Fill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            documentheader    = lx_head&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            accountgl         = li_gl&lt;/P&gt;&lt;P&gt;            accountreceivable = li_ar&lt;/P&gt;&lt;P&gt;            currencyamount    = li_cr&lt;/P&gt;&lt;P&gt;            return            = li_ret.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill All the paramerters as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header contruction to be done based on retireval as per your reuirement&lt;/P&gt;&lt;P&gt;      lx_head-bus_act    = 'RFBU'&lt;/P&gt;&lt;P&gt;      lx_head-username   = sy-uname.&lt;/P&gt;&lt;P&gt;      lx_head-header_txt = 'abcd'&lt;/P&gt;&lt;P&gt;      lx_head-comp_code  = bukrs.&lt;/P&gt;&lt;P&gt;      lx_head-doc_date   =  budat.&lt;/P&gt;&lt;P&gt;      lx_head-pstng_date =  budat.&lt;/P&gt;&lt;P&gt;      lx_head-fisc_year  =  year.&lt;/P&gt;&lt;P&gt;      lx_head-fis_period =  monat.&lt;/P&gt;&lt;P&gt;      lx_head-doc_type   =  blart.&lt;/P&gt;&lt;P&gt;      lx_head-ref_doc_no = rebzg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT *&lt;/P&gt;&lt;P&gt;             INTO TABLE li_bseg&lt;/P&gt;&lt;P&gt;             FROM bseg&lt;/P&gt;&lt;P&gt;             WHERE bukrs = Compnay Code &lt;/P&gt;&lt;P&gt;             AND   belnr =  BELNR &lt;/P&gt;&lt;P&gt;             AND   gjahr = Fiscal Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR lx_ar.&lt;/P&gt;&lt;P&gt;      lx_ar-itemno_acc =   " Fill First item count from BSEG.&lt;/P&gt;&lt;P&gt;      lx_ar-customer   = lx_bseg-kunnr.&lt;/P&gt;&lt;P&gt;      lx_ar-sp_gl_ind  = lx_bseg-umskz.&lt;/P&gt;&lt;P&gt;      lx_ar-gl_account = x_zfipr2-hkont1.&lt;/P&gt;&lt;P&gt;      lx_ar-ref_key_1  = lx_bseg-xref1.&lt;/P&gt;&lt;P&gt;      lx_ar-ref_key_3  = lx_bseg-rebzg.&lt;/P&gt;&lt;P&gt;      lx_ar-comp_code  = lx_bseg-bukrs.&lt;/P&gt;&lt;P&gt;      lx_ar-alloc_nmbr = lx_bseg-zuonr.&lt;/P&gt;&lt;P&gt;      lx_ar-item_text  = lx_bseg-sgtxt.&lt;/P&gt;&lt;P&gt;      APPEND lx_ar TO li_ar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    fill GL account data li_gl  based on BSEG data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Fill  amount /Documen tcurrency /Currency /Item no_acc into li_cr. This can be done agin with BSEG data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 16:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-acc-document-post/m-p/6561513#M1431426</guid>
      <dc:creator>pramodu</dc:creator>
      <dc:date>2010-02-16T16:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-acc-document-post/m-p/6561514#M1431427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;search the forum..u can find sample programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="245487"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="250351"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 17:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-acc-document-post/m-p/6561514#M1431427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-16T17:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with bapi_acc_document_post</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-acc-document-post/m-p/6561515#M1431428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello  PKUPADHYAY    	 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   the code you post works fine, but the vat line is posted as GL line, and not as a VAT line, so the VAT report doesn´t show this document, and it can´t be accepted by customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 17:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-bapi-acc-document-post/m-p/6561515#M1431428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-16T17:08:16Z</dc:date>
    </item>
  </channel>
</rss>

