<?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_GL_POSTING_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post/m-p/5636717#M1282982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Here is a sample about calling this BAPI, hope it would be helpful to you.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;obj_type like bapiache02-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;documentheader like bapiache08,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl like bapiacgl08&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;currencyamount like bapiaccr08&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;return like bapiret2&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;extension1 like bapiextc&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_edidd like edidd occurs 0 with header line,&lt;/P&gt;&lt;P&gt;bapi_retn_info like bapiret2 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: error_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-obj_type = 'BKPFF'.&lt;/P&gt;&lt;P&gt;*documentheader-obj_key = '18000000002002004'.&lt;/P&gt;&lt;P&gt;*documentheader-obj_type = 'BKPFF'.&lt;/P&gt;&lt;P&gt;*documentheader-obj_key = '180000000010002004'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-obj_sys = 'RD1CLNT200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-username = sy-uname.&lt;/P&gt;&lt;P&gt;documentheader-header_txt = 'Test using BAPI'.&lt;/P&gt;&lt;P&gt;documentheader-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-ac_doc_no&lt;/P&gt;&lt;P&gt;*documentheader-fisc_year = '2005'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-doc_date = sy-datum.&lt;/P&gt;&lt;P&gt;documentheader-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-trans_date&lt;/P&gt;&lt;P&gt;*documentheader-fis_period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-ref_doc_no&lt;/P&gt;&lt;P&gt;*documentheader-compo_acc&lt;/P&gt;&lt;P&gt;*documentheader-reason_rev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000160100'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000010000'.&lt;/P&gt;&lt;P&gt;append accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000160100'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000010000'.&lt;/P&gt;&lt;P&gt;append accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*AC_DOC_NO&lt;/P&gt;&lt;P&gt;*FISC_YEAR&lt;/P&gt;&lt;P&gt;*FIS_PERIOD&lt;/P&gt;&lt;P&gt;*accountgl-STAT_CON = 'X'.&lt;/P&gt;&lt;P&gt;*REF_KEY_1&lt;/P&gt;&lt;P&gt;*REF_KEY_2&lt;/P&gt;&lt;P&gt;*REF_KEY_3&lt;/P&gt;&lt;P&gt;*CUSTOMER&lt;/P&gt;&lt;P&gt;*VENDOR_NO&lt;/P&gt;&lt;P&gt;*ALLOC_NMBR&lt;/P&gt;&lt;P&gt;*ITEM_TEXT&lt;/P&gt;&lt;P&gt;*BUS_AREA&lt;/P&gt;&lt;P&gt;*COSTCENTER&lt;/P&gt;&lt;P&gt;*ACTTYPE&lt;/P&gt;&lt;P&gt;*ORDERID&lt;/P&gt;&lt;P&gt;*ORIG_GROUP&lt;/P&gt;&lt;P&gt;*COST_OBJ&lt;/P&gt;&lt;P&gt;*PROFIT_CTR&lt;/P&gt;&lt;P&gt;*PART_PRCTR&lt;/P&gt;&lt;P&gt;*WBS_ELEMENT&lt;/P&gt;&lt;P&gt;*NETWORK&lt;/P&gt;&lt;P&gt;*ROUTING_NO&lt;/P&gt;&lt;P&gt;*ORDER_ITNO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'GBP'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '100.00'.&lt;/P&gt;&lt;P&gt;append currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'GBP'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '-100.00'.&lt;/P&gt;&lt;P&gt;append currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call BAPI-function in this system &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 = documentheader&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;importing&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_type = obj_type&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_key = obj_key&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_sys = obj_sys&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;accountgl = accountgl&lt;/P&gt;&lt;P&gt;currencyamount = currencyamount&lt;/P&gt;&lt;P&gt;return = return&lt;/P&gt;&lt;P&gt;extension1 = extension1&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;others = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2009 01:46:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-05T01:46:27Z</dc:date>
    <item>
      <title>BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post/m-p/5636716#M1282981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Forum!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use BAPI_ACC_GL_POSTING_POST for Asset posting in G/L  Account. I want to use this Bapi, because, before posting I want to check the incoming Data (from a txt file) with BAPI_ACC_GL_POSTING_CHECK. I read about all the diffrent ways to do bookings via BCD or doing with the different function modules( also bit like bcd), but from my point of view , this is just posting and not checking the document (for right incoming data ). Right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So still have 3 options:&lt;/P&gt;&lt;P&gt;1.) Use Bapi, but how should i fill the structures, tables  - any code lines ? Would be really appraised. I couldn't  find any working examples. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.) BCD - I really don't like this idea, is it somehow possible to check the documents without booking?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.) Or maybe RFBIBL00 is also a way -  but there is now checking possibly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me - thanks a lot&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 23:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post/m-p/5636716#M1282981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T23:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_GL_POSTING_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post/m-p/5636717#M1282982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Here is a sample about calling this BAPI, hope it would be helpful to you.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;obj_type like bapiache02-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;documentheader like bapiache08,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl like bapiacgl08&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;currencyamount like bapiaccr08&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;return like bapiret2&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;extension1 like bapiextc&lt;/P&gt;&lt;P&gt;occurs 0 with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_edidd like edidd occurs 0 with header line,&lt;/P&gt;&lt;P&gt;bapi_retn_info like bapiret2 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: error_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-obj_type = 'BKPFF'.&lt;/P&gt;&lt;P&gt;*documentheader-obj_key = '18000000002002004'.&lt;/P&gt;&lt;P&gt;*documentheader-obj_type = 'BKPFF'.&lt;/P&gt;&lt;P&gt;*documentheader-obj_key = '180000000010002004'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-obj_sys = 'RD1CLNT200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-username = sy-uname.&lt;/P&gt;&lt;P&gt;documentheader-header_txt = 'Test using BAPI'.&lt;/P&gt;&lt;P&gt;documentheader-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-ac_doc_no&lt;/P&gt;&lt;P&gt;*documentheader-fisc_year = '2005'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-doc_date = sy-datum.&lt;/P&gt;&lt;P&gt;documentheader-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-trans_date&lt;/P&gt;&lt;P&gt;*documentheader-fis_period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;documentheader-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*documentheader-ref_doc_no&lt;/P&gt;&lt;P&gt;*documentheader-compo_acc&lt;/P&gt;&lt;P&gt;*documentheader-reason_rev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000160100'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000010000'.&lt;/P&gt;&lt;P&gt;append accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;accountgl-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;accountgl-gl_account = '0000160100'.&lt;/P&gt;&lt;P&gt;accountgl-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;accountgl-pstng_date = sy-datum.&lt;/P&gt;&lt;P&gt;accountgl-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;accountgl-profit_ctr = '0000010000'.&lt;/P&gt;&lt;P&gt;append accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*AC_DOC_NO&lt;/P&gt;&lt;P&gt;*FISC_YEAR&lt;/P&gt;&lt;P&gt;*FIS_PERIOD&lt;/P&gt;&lt;P&gt;*accountgl-STAT_CON = 'X'.&lt;/P&gt;&lt;P&gt;*REF_KEY_1&lt;/P&gt;&lt;P&gt;*REF_KEY_2&lt;/P&gt;&lt;P&gt;*REF_KEY_3&lt;/P&gt;&lt;P&gt;*CUSTOMER&lt;/P&gt;&lt;P&gt;*VENDOR_NO&lt;/P&gt;&lt;P&gt;*ALLOC_NMBR&lt;/P&gt;&lt;P&gt;*ITEM_TEXT&lt;/P&gt;&lt;P&gt;*BUS_AREA&lt;/P&gt;&lt;P&gt;*COSTCENTER&lt;/P&gt;&lt;P&gt;*ACTTYPE&lt;/P&gt;&lt;P&gt;*ORDERID&lt;/P&gt;&lt;P&gt;*ORIG_GROUP&lt;/P&gt;&lt;P&gt;*COST_OBJ&lt;/P&gt;&lt;P&gt;*PROFIT_CTR&lt;/P&gt;&lt;P&gt;*PART_PRCTR&lt;/P&gt;&lt;P&gt;*WBS_ELEMENT&lt;/P&gt;&lt;P&gt;*NETWORK&lt;/P&gt;&lt;P&gt;*ROUTING_NO&lt;/P&gt;&lt;P&gt;*ORDER_ITNO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '1'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'GBP'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '100.00'.&lt;/P&gt;&lt;P&gt;append currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currencyamount-itemno_acc = '2'.&lt;/P&gt;&lt;P&gt;currencyamount-currency = 'GBP'.&lt;/P&gt;&lt;P&gt;currencyamount-amt_doccur = '-100.00'.&lt;/P&gt;&lt;P&gt;append currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;call BAPI-function in this system &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 = documentheader&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;importing&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_type = obj_type&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_key = obj_key&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;obj_sys = obj_sys&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;accountgl = accountgl&lt;/P&gt;&lt;P&gt;currencyamount = currencyamount&lt;/P&gt;&lt;P&gt;return = return&lt;/P&gt;&lt;P&gt;extension1 = extension1&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;others = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 01:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post/m-p/5636717#M1282982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T01:46:27Z</dc:date>
    </item>
  </channel>
</rss>

