<?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: Planning not updated with BAPI_COSTACTPLN_POSTACTINPUT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/planning-not-updated-with-bapi-costactpln-postactinput/m-p/4028213#M962641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep bapi transaction commit is already running afterwards but doesn't change anything , sorry to leave it out of the code here but I was already focusing on input errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2008 14:15:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-13T14:15:02Z</dc:date>
    <item>
      <title>Planning not updated with BAPI_COSTACTPLN_POSTACTINPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planning-not-updated-with-bapi-costactpln-postactinput/m-p/4028211#M962639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use the bapi to create costplanning on internal orders&lt;/P&gt;&lt;P&gt;BAPI_COSTACTPLN_POSTACTINPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gets the information on for instance the planned hours from a ztable which the controllers maintain for there projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but once a plan record is created like you do with kpf6 the bapi won't update this record when the amount of hours changes ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it the wrong bapi when you want to update the planning ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    s_hdr-co_area       = ta_zcats_order_plan-kokrs.
    s_hdr-fisc_year     = ta_zcats_order_plan-begperiod(4).

    s_hdr-period_from   = '001'.
    s_hdr-period_to     = '012'.
    s_hdr-version       = '000'.
    s_hdr-plan_currtype = 'C'.

    t_obj-object_index = '1'.
    t_obj-orderid = ta_zcats_order_plan-aufnr.
    append t_obj.


    SELECT SINGLE * FROM zcats_0315
                   WHERE kokrs EQ ta_zcats_order_plan-kokrs
                   AND pernr EQ ta_zcats_order_plan-pernr
                   AND begda &amp;gt;= '20080101'.

    ta_tval-send_cctr = zcats_0315-kostl.
    ta_tval-send_activity = zcats_0315-lstar.
    ta_tval-order_celem = '0000055000'.
    ta_tval-unit_of_measure = 'U'.

    ta_tval-quantity_var = ta_zcats_order_plan-zplanhours.
    ta_tval-value_index = '1'.
    APPEND ta_tval.

    CALL FUNCTION 'BAPI_COSTACTPLN_POSTACTINPUT'
      EXPORTING
        headerinfo           = s_hdr
*   DELTA                = ' '
      TABLES
        indexstructure       = t_idx
        coobject             = t_obj
*   PERVALUE             =
        totvalue             = ta_tval
        return               = t_ret
              .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 14:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planning-not-updated-with-bapi-costactpln-postactinput/m-p/4028211#M962639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T14:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Planning not updated with BAPI_COSTACTPLN_POSTACTINPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planning-not-updated-with-bapi-costactpln-postactinput/m-p/4028212#M962640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      You need to use BAPI_TRANSACTION_COMMIT to commit the changes done by BAPI_COSTACTPLN_POSTACTINPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalyan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 14:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planning-not-updated-with-bapi-costactpln-postactinput/m-p/4028212#M962640</guid>
      <dc:creator>KalC</dc:creator>
      <dc:date>2008-06-13T14:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Planning not updated with BAPI_COSTACTPLN_POSTACTINPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planning-not-updated-with-bapi-costactpln-postactinput/m-p/4028213#M962641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep bapi transaction commit is already running afterwards but doesn't change anything , sorry to leave it out of the code here but I was already focusing on input errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 14:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planning-not-updated-with-bapi-costactpln-postactinput/m-p/4028213#M962641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T14:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Planning not updated with BAPI_COSTACTPLN_POSTACTINPUT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planning-not-updated-with-bapi-costactpln-postactinput/m-p/4028214#M962642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;error was in    ta_tval-order_celem = '0000055000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this was not necessary to enter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 09:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planning-not-updated-with-bapi-costactpln-postactinput/m-p/4028214#M962642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T09:36:33Z</dc:date>
    </item>
  </channel>
</rss>

