<?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: Regarding BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092293#M733497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you resolved your problem.  I, too, am trying to space out REBZG using BDC and it does not work.  Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2008 14:49:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-27T14:49:20Z</dc:date>
    <item>
      <title>Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092289#M733493</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 am using BAPI_ACC_DOCUMENT_POST bapi to post the credit memo by using a z transaction. For the field Invoice reference bseg-rebzg, sap is populating the the value "V'. I want the filed to be populated as space. The above value V is populating in BAPI. Do we have any exits or any other method to enhance the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 16:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092289#M733493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T16:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092290#M733494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kishore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try through substitution (transaction: GGB1, activation: OBBH), however I am not sure if the substitution runs by BAPI posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 16:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092290#M733494</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-11-30T16:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092291#M733495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check exits for tcode F-02...maybe will find how to change that value....&lt;/P&gt;&lt;P&gt;But on this cases is easyer to do it throw batch input....with that FM you can only make the post with NEWBS with standard ones 30 and 40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 16:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092291#M733495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T16:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092292#M733496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the BTE Process: RWBAPI01&lt;/P&gt;&lt;P&gt;T-CODE: FIBF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check sap note: 487722 to populate extension1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can change the value in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 20:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092292#M733496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-30T20:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092293#M733497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you resolved your problem.  I, too, am trying to space out REBZG using BDC and it does not work.  Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 14:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092293#M733497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092294#M733498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the invoice reference field BSEG-REBZG is getting populated with a default value 'V' using BAPI 'BAPI_ACC_DOCUMENT_POST' you need to enhance the BAPI.  This BAPI contains a table called 'EXTENSION1' through which you can pass an extra field which can not be passes through Export Parameters of BAPI / change a field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in your case you need to use the EXTENSION1 table to change the invoice reference field value (make it balnk instead of value 'V').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the below steps for your requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below logic to be implemented in your z proram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A) Declare an internal table and a work area of type bapiacextc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: t_extension TYPE STANDARD TABLE OF bapiacextc,
           wa_extension TYPE bapiacextc. 

    Populate the internal table as below:
     
      CLEAR: wa_extension, t_extension.
      wa_extension-field1 = 'X'.
      APPEND wa_extension TO t_extension.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Pass the internal table 't_extension' to BAPI as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          documentheader    = w_documentheader
        TABLES
          accountgl         = t_accountgl
          accountreceivable = t_accountreceivable
          currencyamount    = t_currencyamount
          criteria          = t_criteria
          extension1        = t_extension            
          return            = t_return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; B)*Follow the below procedure given in the NOTE:487722:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implementing the Business Transaction Event (BTE, also OPEN FI) RWBAPI01 with enhancement structure EXTENSION1 at BAPI_ACC_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Transaction FIBF&lt;/P&gt;&lt;P&gt; 1. Call the menu path "Settings &amp;gt; Products -&amp;gt; ...of a customer" and create a product that mirrors the function which is to be mapped in the BTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create a function module that contains the same interface, such as example module SAMPLE_INTERFACE_RWBAPI01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advice: Do not try to copy just create a new one it will be better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Call menu path "Settings -&amp;gt; Process function modules &amp;gt; ...of a customer" enter process = RWBAPI01, the function module created and the product.&lt;/P&gt;&lt;P&gt;4. Finally, activate the product you have created in the first step so that the module will run. ( Nothing like activate , just save the newly created Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C) Write the Logic as below in the new function module created above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put the below logic in the Source code tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: wa_accit LIKE accit.

  LOOP AT it_accit INTO wa_accit WHERE rebzg = 'V'
      wa_accit-rebzg = ' '.
      MODIFY it_accit INDEX sy-tabix FROM wa_accit.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2009 12:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092294#M733498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-30T12:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092295#M733499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi veda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the steps, but in the third step, the process RWBAPI01 already exists... I would do in that case? any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex Alcántara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 17:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092295#M733499</guid>
      <dc:creator>former_member2227</dc:creator>
      <dc:date>2013-07-31T17:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092296#M733500</link>
      <description>&lt;P&gt;1. go SE18 implement Enhancement for BADI_ACC_DOCUMENT, such as Z_EI_BADI_ACC_DOCUMENT with class ZFI_CL_ACC_DOCUMENT.&lt;/P&gt;&lt;P&gt;2. insert abap code into IF_EX_ACC_DOCUMENT~CHANGE. and then, debug! &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  " if sy-tcode &amp;lt;&amp;gt; 'ZFIR001'.&lt;BR /&gt;  "   return.&lt;BR /&gt;  " endif.&lt;BR /&gt;  CLEAR LS_ACCIT.&lt;BR /&gt;  LOOP AT C_ACCIT INTO LS_ACCIT .&lt;BR /&gt;    IF LS_ACCIT-REBZG = 'V'.&lt;BR /&gt;      LS_ACCIT-REBZG = ''.&lt;BR /&gt;      MODIFY C_ACCIT FROM LS_ACCIT.&lt;BR /&gt;      CLEAR LS_ACCIT.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2055905-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 08:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-acc-document-post/m-p/3092296#M733500</guid>
      <dc:creator>former_member810320</dc:creator>
      <dc:date>2022-06-15T08:07:49Z</dc:date>
    </item>
  </channel>
</rss>

