<?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/2601983#M596166</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;You don't have to fill these parameters, they are EXPORT parameters.&lt;/P&gt;&lt;P&gt;Look this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          documentheader    = lwa_documentheader
        TABLES
          accountgl         = lit_accountgl
          accountreceivable = lit_accountreceivable
          currencyamount    = lit_currencyamount
          return            = lit_return
          extension2        = lit_extension2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 10:44:27 GMT</pubDate>
    <dc:creator>Peter_Inotai</dc:creator>
    <dc:date>2007-08-02T10:44: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/2601981#M596164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   now i am facing a problem regarding post FI-GL document via BAPI_ACC_GL_POSTING_POST. and this is done in an EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after posting, the generated document should be added in table BKPF and BSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how can i know what value should be filled in OBJ_KEY and OBJ_TYPE of the import parameter DOCUMENTHEADER??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.  ^ - ^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 10:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post/m-p/2601981#M596164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T10:35:21Z</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/2601982#M596165</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;right, the mentioned fields are export parameters too, because i.e. part of the OBJ_KEY is the document number which is created for the document. SAP uses a $ sign in this case. Complete and working solution (no comment from chatterer):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:    ls_documentheader                     TYPE bapiache08,    lv_logsys                             TYPE t000-logsys.    SELECT SINGLE logsys INTO lv_logsys FROM t000 WHERE mandt = sy-mandt.  ls_documentheader-obj_type              = 'BKPFF'.  ls_documentheader-obj_sys               = lv_logsys.  ls_documentheader-obj_key               = '$'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more information posting with this BAPI: We used in in several situations including the use of extension to get fields posted what are not in the interface structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you overcome this obj_* barrier, the rest is comparably easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 10:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post/m-p/2601982#M596165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T10:44:07Z</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/2601983#M596166</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;You don't have to fill these parameters, they are EXPORT parameters.&lt;/P&gt;&lt;P&gt;Look this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          documentheader    = lwa_documentheader
        TABLES
          accountgl         = lit_accountgl
          accountreceivable = lit_accountreceivable
          currencyamount    = lit_currencyamount
          return            = lit_return
          extension2        = lit_extension2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 10:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post/m-p/2601983#M596166</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2007-08-02T10:44:27Z</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/2601984#M596167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, my friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone else has some other suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 03:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post/m-p/2601984#M596167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T03:42:10Z</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/2601985#M596168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but if i do not fill the OBJ_KEY, the FM can not be processed successfully, the OBJ_KEY must be filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use number range object RF_BELEG and go to table T003 to get the number range number, then call FM 'NUMBER_GET_NEXT' to get the Accounting Number, then concatenate the Accounting Number, the company code and the fiscal year together as the OBJ_KEY, but after i call the BAPI, the return table says 'Error in document 1200000062AAAA2007 UD1CLNT120', i don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody give me some information??? thanks in million advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 03:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post/m-p/2601985#M596168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T03:29:44Z</dc:date>
    </item>
  </channel>
</rss>

