<?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: Using bapi BAPI_ACC_GL_POSTING_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324869#M1030552</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 have similar type of urgent requirement so can you please tell how to display the document numbers which got posted through this bapi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 11:10:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-07T11:10:10Z</dc:date>
    <item>
      <title>Using bapi BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324864#M1030547</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 have a to upload the GL using bapi BAPI_ACC_GL_POSTING_POST..the exact requirement is as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Read the flat file from the specified location(may be from Apllication server or a file of Presentation layer) into internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Read the internal table and perform the upload activity. Create the GL's using BAPI_ACC_GL_POSTING_POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. send all error records to BDC session.&lt;/P&gt;&lt;P&gt;4. Display the created GL account in the report (cal be ALV).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flat file layout contains Header record, Detail record, and Trailer record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i any one suggest me on this regard.(If it will be any code similler to above requirement that would be a gr8 help).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot in advance!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;warm regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 08:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324864#M1030547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T08:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using bapi BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324865#M1030548</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;Just check if you can get any help from it. It will explain you to use the BAPI and passing parameters to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters:   p_bktxt   like  bkpf-bktxt  default 'Test Bapi'.&lt;/P&gt;&lt;P&gt;Parameters:   p_acct1   like  bseg-hkont default '17699'.&lt;/P&gt;&lt;P&gt;Parameters:   p_acct2   like  bseg-hkont default '17699'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: doc_header LIKE bapiache08,&lt;/P&gt;&lt;P&gt;      doc_item   LIKE bapiacgl08 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      doc_values LIKE bapiaccr08 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      return     LIKE bapiret2 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      extension1 like BAPIEXTC occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      obj_type   LIKE bapiache08-obj_type,&lt;/P&gt;&lt;P&gt;      obj_key    LIKE bapiache02-obj_key,&lt;/P&gt;&lt;P&gt;      obj_sys    LIKE bapiache02-obj_sys,&lt;/P&gt;&lt;P&gt;      docnum     LIKE bkpf-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill Document Header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_header-username = sy-uname.&lt;/P&gt;&lt;P&gt;doc_header-header_txt = p_bktxt.&lt;/P&gt;&lt;P&gt;doc_header-comp_code = 'US01'.&lt;/P&gt;&lt;P&gt;doc_header-doc_date =  sy-datlo.&lt;/P&gt;&lt;P&gt;doc_header-pstng_date = sy-datlo.&lt;/P&gt;&lt;P&gt;doc_header-doc_type = 'SA'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill Line 1 of Document Item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_item-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;doc_item-gl_account = p_acct1.&lt;/P&gt;&lt;P&gt;doc_item-pstng_date = sy-datlo.&lt;/P&gt;&lt;P&gt;doc_item-item_text = 'TEST POSTING DEBIT ITEM'.&lt;/P&gt;&lt;P&gt;*doc_item-costcenter = '0000006300'.&lt;/P&gt;&lt;P&gt;*doc_item-orderid = 'M5253'.&lt;/P&gt;&lt;P&gt;APPEND doc_item.&lt;/P&gt;&lt;P&gt;CLEAR doc_item.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill Line 2 of Document Item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_item-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;doc_item-gl_account = p_acct2.&lt;/P&gt;&lt;P&gt;*doc_item-profit_ctr = 'INTUS01'.&lt;/P&gt;&lt;P&gt;doc_item-pstng_date = sy-datlo.&lt;/P&gt;&lt;P&gt;doc_item-item_text = 'TEST POSTING CREDIT ITEM'.&lt;/P&gt;&lt;P&gt;APPEND doc_item.&lt;/P&gt;&lt;P&gt;CLEAR doc_item.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill Line 1 of Document Value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_values-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;doc_values-currency_iso = 'USD'.&lt;/P&gt;&lt;P&gt;doc_values-amt_doccur = '1.11'.&lt;/P&gt;&lt;P&gt;APPEND doc_values.&lt;/P&gt;&lt;P&gt;CLEAR doc_values.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill Line 2 of Document Value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;doc_values-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;doc_values-currency_iso = 'USD'.&lt;/P&gt;&lt;P&gt;doc_values-amt_doccur = '1.11-'.&lt;/P&gt;&lt;P&gt;APPEND doc_values.&lt;/P&gt;&lt;P&gt;CLEAR doc_values.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add tax code in extension1 table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*extension1-field1 = 'BAPI CALL'.&lt;/P&gt;&lt;P&gt;*APPEND EXTENSION1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;All tables filled - now call BAPI.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    documentheader       = doc_header&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    OBJ_TYPE             = doc_header-obj_type&lt;/P&gt;&lt;P&gt;    OBJ_KEY              = doc_header-obj_key&lt;/P&gt;&lt;P&gt;    OBJ_SYS              = doc_header-obj_sys&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    accountgl            = doc_item&lt;/P&gt;&lt;P&gt;    currencyamount       = doc_values&lt;/P&gt;&lt;P&gt;    return               = return&lt;/P&gt;&lt;P&gt;    EXTENSION1           = EXTENSION1.&lt;/P&gt;&lt;P&gt;LOOP AT return WHERE type = 'E'.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  WRITE: / 'BAPI call failed - debug and fix!'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  CLEAR return.&lt;/P&gt;&lt;P&gt;  REFRESH return.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WAIT          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     return        = return.&lt;/P&gt;&lt;P&gt;  WRITE: / 'BAPI call worked!!'.&lt;/P&gt;&lt;P&gt;  WRITE: / doc_header-obj_key, ' posted'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kartavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 21:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324865#M1030548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T21:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using bapi BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324866#M1030549</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;Thanq Kartavya for your quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple headers in my flat file.can u tell me how to use update using BAPI in that case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some more doubts here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How to update the Tax code and Tax currency for each document item (thru user exit ACBAPI01).&lt;/P&gt;&lt;P&gt;2. In document item(bapiacgl08-itemno_acc) and in Documet value ( bapiaccr08-itemno_acc) we have itemno_acc field.how to update this field or value for this filed will be system generated?. In later case how to link these to tables..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me in this regard...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 10:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324866#M1030549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T10:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using bapi BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324867#M1030550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For multiple headers in my flat file -&lt;/P&gt;&lt;P&gt;You have to Use this BAPI within LOOP at Itab ENDLOOP. where ITAB contains your records (header and Item level). Populate Header and Item data within the loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your other doubts -&lt;/P&gt;&lt;P&gt;1. How to update the Tax code and Tax currency for each document item (thru user exit ACBAPI01).&lt;/P&gt;&lt;P&gt;Activate the project and user exit and make changes in INCLUDE ZXACCU15. &lt;/P&gt;&lt;P&gt;Use T_ACCIT table to find the appropriate tax code and tax currency (probably MWSKZ and PYCUR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In document item(bapiacgl08-itemno_acc) and in Documet value ( bapiaccr08-itemno_acc) we have itemno_acc field.how to update this field or value for this filed will be system generated?. In later case how to link these to tables..&lt;/P&gt;&lt;P&gt; itemno_acc are mandatory passing into the BAPI, thts how it will recognize the line items.&lt;/P&gt;&lt;P&gt;The system creates a link to the relevant line item via the line item number ITEMNO_ACC, which for this reason must be unique for each line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kartavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 20:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324867#M1030550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T20:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using bapi BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324868#M1030551</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;But can you tell how to display the document numbers which are created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Oct 2013 14:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324868#M1030551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-06T14:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using bapi BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324869#M1030552</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 have similar type of urgent requirement so can you please tell how to display the document numbers which got posted through this bapi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 11:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324869#M1030552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-07T11:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using bapi BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324870#M1030553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do not reply to dead post &amp;amp; push them up the queue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 11:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-bapi-acc-gl-posting-post/m-p/4324870#M1030553</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2013-10-07T11:17:37Z</dc:date>
    </item>
  </channel>
</rss>

