<?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 Mass Posting using FM 'BAPI_CTRACDOCUMENT_CREATE' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mass-posting-using-fm-bapi-ctracdocument-create/m-p/8627359#M1664499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're currently using a FM/BAPI called 'BAPI_CTRACDOCUMENT_CREATE' for posting invoices per contract account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our issue is, we want to execute this BAPI into 'mass processing mode' so that it uses the Number Ranges for Mass Processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under BAPI_CTRACDOCUMENT_CREATE, there's a sub-FM 'FKK_CREATE_DOC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then under 'FKK_CREATE_DOC', there's another sub-FM 'FKK_CREATE_DOC_MASS' in which i've tested thru debugging and it works. &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;Here's a snippet of the first part of 'FKK_CREATE_DOC', where it checks if it was called for 'massive processing' mode (my MEM_XSTAR was EQ SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF MEM_XSTAR = 'X'.
    IF    I_UPDATE_TASK EQ MEM_UPDAT
    AND   I_RESOB       EQ MEM_RESOB
    AND   I_RESKY       EQ MEM_RESKY
    AND   I_TEST        EQ SPACE
    AND ( I_FKKKO-FIKEY EQ SPACE AND MEM_FIEXT EQ SPACE OR
          I_FKKKO-FIKEY NE SPACE AND MEM_FIEXT NE SPACE    ).
      CALL FUNCTION 'FKK_CREATE_DOC_MASS'
           EXPORTING
                I_FKKKO   = I_FKKKO
           IMPORTING
                E_OPBEL   = E_OPBEL
           TABLES
                T_FKKOP   = T_FKKOP
                T_FKKOPK  = T_FKKOPK
                T_FKKOPW  = T_FKKOPW
                T_FKKOPL  = T_FKKOPL
                T_FKKOPC  = T_FKKOPC
                T_FKKOPKC = T_FKKOPKC.
      EXIT.
    ELSE.
      MESSAGE E174.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I call BAPI_CTRACDOCUMENT_CREATE to post my documents thru 'mass processing' mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2012 04:34:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-05T04:34:04Z</dc:date>
    <item>
      <title>Mass Posting using FM 'BAPI_CTRACDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mass-posting-using-fm-bapi-ctracdocument-create/m-p/8627359#M1664499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're currently using a FM/BAPI called 'BAPI_CTRACDOCUMENT_CREATE' for posting invoices per contract account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our issue is, we want to execute this BAPI into 'mass processing mode' so that it uses the Number Ranges for Mass Processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under BAPI_CTRACDOCUMENT_CREATE, there's a sub-FM 'FKK_CREATE_DOC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then under 'FKK_CREATE_DOC', there's another sub-FM 'FKK_CREATE_DOC_MASS' in which i've tested thru debugging and it works. &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------" /&gt;&lt;P&gt;Here's a snippet of the first part of 'FKK_CREATE_DOC', where it checks if it was called for 'massive processing' mode (my MEM_XSTAR was EQ SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF MEM_XSTAR = 'X'.
    IF    I_UPDATE_TASK EQ MEM_UPDAT
    AND   I_RESOB       EQ MEM_RESOB
    AND   I_RESKY       EQ MEM_RESKY
    AND   I_TEST        EQ SPACE
    AND ( I_FKKKO-FIKEY EQ SPACE AND MEM_FIEXT EQ SPACE OR
          I_FKKKO-FIKEY NE SPACE AND MEM_FIEXT NE SPACE    ).
      CALL FUNCTION 'FKK_CREATE_DOC_MASS'
           EXPORTING
                I_FKKKO   = I_FKKKO
           IMPORTING
                E_OPBEL   = E_OPBEL
           TABLES
                T_FKKOP   = T_FKKOP
                T_FKKOPK  = T_FKKOPK
                T_FKKOPW  = T_FKKOPW
                T_FKKOPL  = T_FKKOPL
                T_FKKOPC  = T_FKKOPC
                T_FKKOPKC = T_FKKOPKC.
      EXIT.
    ELSE.
      MESSAGE E174.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;----&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I call BAPI_CTRACDOCUMENT_CREATE to post my documents thru 'mass processing' mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 04:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mass-posting-using-fm-bapi-ctracdocument-create/m-p/8627359#M1664499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-05T04:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mass Posting using FM 'BAPI_CTRACDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mass-posting-using-fm-bapi-ctracdocument-create/m-p/8627360#M1664500</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;Check the thread which give some idea about using the required BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;irrelevant link removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutam Kolluru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Mar 5, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 05:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mass-posting-using-fm-bapi-ctracdocument-create/m-p/8627360#M1664500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-05T05:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mass Posting using FM 'BAPI_CTRACDOCUMENT_CREATE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mass-posting-using-fm-bapi-ctracdocument-create/m-p/8627361#M1664501</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 am facing the same issue mentioned above. Can you please share the solution how to use BAPI BAPI_CTRACDOCUMENT_CREATE for Mass Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me the transaction is FP04M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 05:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mass-posting-using-fm-bapi-ctracdocument-create/m-p/8627361#M1664501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-29T05:23:08Z</dc:date>
    </item>
  </channel>
</rss>

