<?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 Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288462#M498982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you planning to call  BAPI_ACC_GL_POSTING_POST in an exit ?&lt;/P&gt;&lt;P&gt;If so the Document number should be available already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls note this is the reference document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls explain where exactly you want to call this BAPI... I mean at what stage of document creation process..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 09:31:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T09:31:45Z</dc:date>
    <item>
      <title>BAPI_ACC_GL_POSTING_POST Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288460#M498980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the document is posted in BKPF and BSEG, the BAPI_ACC_GL_POSTING_POST generating a internal BELNR number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is how will I know what will be the BELNR number getting generated, whereas in OBJ_KEY, I need to provide the '1000000000ES012007'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one say How can we know what will be the Internal Number Generated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijayanand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288460#M498980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_GL_POSTING_POST Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288461#M498981</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;U can read the number of document generated in the message returned by the BAPI, if you need to know the number before calling the BAPI u need to read the last number of the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The range is linked to the document type (BKPF-BLART): table T003 field NUMKR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table for the range is NRIV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANyway you won't be able to make sure to know the number will be used, because the FI ranges are usually buffered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288461#M498981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_GL_POSTING_POST Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288462#M498982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you planning to call  BAPI_ACC_GL_POSTING_POST in an exit ?&lt;/P&gt;&lt;P&gt;If so the Document number should be available already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls note this is the reference document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls explain where exactly you want to call this BAPI... I mean at what stage of document creation process..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288462#M498982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_GL_POSTING_POST Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288463#M498983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx for your reply, But My problem has not been addressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am using the BAPI Function Module, We need to provide DOCUMENTHEADER Structure, OBJ_KEY(Mandatory) to the BAPI, Which will be in fashion of (BELNR, ORGANISATION CODE, FISCAL YEAR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume that I am giving a BELNR which is 2000000008 via BAPI, But in table BKPF the serial might be 2000000003. Here the RETURN Table gives me information that 2000000008 has been created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In original, internal number generated 2000000003 has been created in BKPF and BSEG Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will I know what will be the NEXT NUMBER GENERATED in BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijayanand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288463#M498983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_GL_POSTING_POST Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288464#M498984</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 can't understand your problem because those fields should be filled automatically by the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway try to check fm NUMBER_GET_INFO or fm of function group SNR3, but remember the range should be buffered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 10:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288464#M498984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T10:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_GL_POSTING_POST Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288465#M498985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;P&gt;Yes, as you said it is getting populated.&lt;/P&gt;&lt;P&gt;Vijayanand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 12:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288465#M498985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T12:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_GL_POSTING_POST Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288466#M498986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm trying to use this BAPI to post a provision but am unable so far to get the information to feed in the header. Can you share the info you're using to make it work?&lt;/P&gt;&lt;P&gt;Thanks a million in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jean-Marie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 12:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288466#M498986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T12:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_GL_POSTING_POST Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288467#M498987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The following code I got it from SDN.&lt;/P&gt;&lt;P&gt;Pls check with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls do search on "BAPI_ACC_GL_POSTING_POST", you can get lot of sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT znam_bapi_test_2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: g_documentheader TYPE bapiache08,&lt;/P&gt;&lt;P&gt;g_bapi_wait LIKE bapita-wait,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ta_accountgl TYPE STANDARD TABLE OF bapiacgl08,&lt;/P&gt;&lt;P&gt;ta_currencyamount TYPE STANDARD TABLE OF bapiaccr08,&lt;/P&gt;&lt;P&gt;ta_return TYPE STANDARD TABLE OF bapiret2,&lt;/P&gt;&lt;P&gt;ta_extension1 TYPE STANDARD TABLE OF bapiextc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_accountgl TYPE bapiacgl08,&lt;/P&gt;&lt;P&gt;wa_currencyamount TYPE bapiaccr08,&lt;/P&gt;&lt;P&gt;wa_extension1 TYPE bapiextc,&lt;/P&gt;&lt;P&gt;wa_return TYPE bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;c1_item LIKE wa_currencyamount-itemno_acc DEFAULT '0000000001',&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;c1_type LIKE wa_currencyamount-curr_type DEFAULT '00',&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;c1_curr LIKE wa_currencyamount-currency DEFAULT 'EUR',&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;c1_amt LIKE wa_currencyamount-amt_doccur DEFAULT '1',&lt;/P&gt;&lt;P&gt;c1_sign TYPE char1 DEFAULT '-',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;c2_item LIKE wa_currencyamount-itemno_acc DEFAULT '0000000002',&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;c2_type LIKE wa_currencyamount-curr_type DEFAULT '00',&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;c2_curr LIKE wa_currencyamount-currency DEFAULT 'EUR',&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;c2_amt LIKE wa_currencyamount-amt_doccur DEFAULT '1',&lt;/P&gt;&lt;P&gt;c2_sign TYPE char1 DEFAULT '+',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1 LIKE wa_extension1-field1 DEFAULT '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_documentheader-username = 'LKS'.&lt;/P&gt;&lt;P&gt;g_documentheader-header_txt = 'Default text in header'.&lt;/P&gt;&lt;P&gt;g_documentheader-comp_code = '1005'.&lt;/P&gt;&lt;P&gt;g_documentheader-ac_doc_no = ' '.&lt;/P&gt;&lt;P&gt;g_documentheader-fisc_year = '2006'.&lt;/P&gt;&lt;P&gt;g_documentheader-doc_date = '20060818'.&lt;/P&gt;&lt;P&gt;g_documentheader-pstng_date = '20060818'.&lt;/P&gt;&lt;P&gt;g_documentheader-doc_type = 'SA'.&lt;/P&gt;&lt;P&gt;g_documentheader-ref_doc_no = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_accountgl-itemno_acc = '0000000001'.&lt;/P&gt;&lt;P&gt;wa_accountgl-gl_account = '0000220000'.&lt;/P&gt;&lt;P&gt;wa_accountgl-item_text = 'ITEM TEXT Default 1'.&lt;/P&gt;&lt;P&gt;APPEND wa_accountgl TO ta_accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_accountgl-itemno_acc = '0000000002'.&lt;/P&gt;&lt;P&gt;wa_accountgl-gl_account = '0000220000'.&lt;/P&gt;&lt;P&gt;wa_accountgl-item_text = 'ITEM TEXT Default 2'.&lt;/P&gt;&lt;P&gt;APPEND wa_accountgl TO ta_accountgl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_currencyamount-itemno_acc = '0000000001'.&lt;/P&gt;&lt;P&gt;wa_currencyamount-curr_type = '00'.&lt;/P&gt;&lt;P&gt;wa_currencyamount-currency = 'EUR'.&lt;/P&gt;&lt;P&gt;IF c1_sign = '-'.&lt;/P&gt;&lt;P&gt;wa_currencyamount-amt_doccur = c1_amt * -1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;wa_currencyamount-amt_doccur = c1_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;APPEND wa_currencyamount TO ta_currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_currencyamount-itemno_acc = '0000000002'.&lt;/P&gt;&lt;P&gt;wa_currencyamount-curr_type = '00'.&lt;/P&gt;&lt;P&gt;wa_currencyamount-currency = 'EUR'.&lt;/P&gt;&lt;P&gt;wa_currencyamount-amt_doccur = c2_amt.&lt;/P&gt;&lt;P&gt;IF c2_sign = '-'.&lt;/P&gt;&lt;P&gt;wa_currencyamount-amt_doccur = c1_amt * -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;wa_currencyamount-amt_doccur = c1_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;APPEND wa_currencyamount TO ta_currencyamount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF field1 IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;wa_extension1-field1 = field1.&lt;/P&gt;&lt;P&gt;APPEND wa_extension1 TO ta_extension1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&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 = g_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 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJ_KEY =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJ_SYS =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;accountgl = ta_accountgl&lt;/P&gt;&lt;P&gt;currencyamount = ta_currencyamount&lt;/P&gt;&lt;P&gt;return = ta_return&lt;/P&gt;&lt;P&gt;extension1 = ta_extension1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;wait = g_bapi_wait&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;return = wa_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ta_return INTO wa_return.&lt;/P&gt;&lt;P&gt;WRITE: / wa_return-type, wa_return-id, wa_return-number,&lt;/P&gt;&lt;P&gt;wa_return-message.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijayanand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 12:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288467#M498987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T12:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_GL_POSTING_POST Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288468#M498988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vajayanand.&lt;/P&gt;&lt;P&gt;I'll give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jean-Marie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 19:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-gl-posting-post-problem/m-p/2288468#M498988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T19:53:28Z</dc:date>
    </item>
  </channel>
</rss>

