<?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 Change Production order  priority fields in  AFKO Header  using BAPI. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-production-order-priority-fields-in-afko-header-using-bapi/m-p/12489815#M2002428</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am using the Bapi BAPI_PRODORD_CREATE_FROM_PLORD&lt;/P&gt;
  &lt;P&gt;to convert the planned order to production order. My requirement is to update the priority of the production order AFKO-APRIO to a different value based on certain condition. &lt;/P&gt;
  &lt;P&gt;Is there a standard Bapi to update AFKO table.&lt;/P&gt;
  &lt;P&gt;I see CO_00_CAUFVDB_AFIH_TRANSFER bap, but is there anything to update AFKO?&lt;/P&gt;
  &lt;P&gt;I tried below code , but i dont see afko being updated.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt; CALL FUNCTION 'CO_00_CAUFVDB_AAXXX_TRANSFER'&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          caufvdb_imp = ls_caufvdb&lt;BR /&gt;        IMPORTING&lt;BR /&gt;          aafko_exp   = ls_xafko&lt;BR /&gt;          aaufk_exp   = ls_xaufk.&lt;BR /&gt;      APPEND ls_xafko TO lt_xafko.&lt;BR /&gt;      APPEND ls_xaufk TO lt_xaufk.&lt;BR /&gt;*   transfer data of order header to structure for change document&lt;BR /&gt;      CALL FUNCTION 'CO_00_CAUFVDB_AAXXX_TRANSFER'&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          caufvdb_imp = ls_caufvdb_old&lt;BR /&gt;        IMPORTING&lt;BR /&gt;          aafko_exp   = ls_yafko&lt;BR /&gt;          aaufk_exp   = ls_yaufk.&lt;BR /&gt;      ls_yafko-aprio = header_imp-aprio .&lt;BR /&gt;      APPEND ls_yafko TO lt_yafko.&lt;BR /&gt;      APPEND ls_yaufk TO lt_yaufk.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Feb 2022 20:15:16 GMT</pubDate>
    <dc:creator>former_member300568</dc:creator>
    <dc:date>2022-02-24T20:15:16Z</dc:date>
    <item>
      <title>Change Production order  priority fields in  AFKO Header  using BAPI.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-production-order-priority-fields-in-afko-header-using-bapi/m-p/12489815#M2002428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I am using the Bapi BAPI_PRODORD_CREATE_FROM_PLORD&lt;/P&gt;
  &lt;P&gt;to convert the planned order to production order. My requirement is to update the priority of the production order AFKO-APRIO to a different value based on certain condition. &lt;/P&gt;
  &lt;P&gt;Is there a standard Bapi to update AFKO table.&lt;/P&gt;
  &lt;P&gt;I see CO_00_CAUFVDB_AFIH_TRANSFER bap, but is there anything to update AFKO?&lt;/P&gt;
  &lt;P&gt;I tried below code , but i dont see afko being updated.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt; CALL FUNCTION 'CO_00_CAUFVDB_AAXXX_TRANSFER'&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          caufvdb_imp = ls_caufvdb&lt;BR /&gt;        IMPORTING&lt;BR /&gt;          aafko_exp   = ls_xafko&lt;BR /&gt;          aaufk_exp   = ls_xaufk.&lt;BR /&gt;      APPEND ls_xafko TO lt_xafko.&lt;BR /&gt;      APPEND ls_xaufk TO lt_xaufk.&lt;BR /&gt;*   transfer data of order header to structure for change document&lt;BR /&gt;      CALL FUNCTION 'CO_00_CAUFVDB_AAXXX_TRANSFER'&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          caufvdb_imp = ls_caufvdb_old&lt;BR /&gt;        IMPORTING&lt;BR /&gt;          aafko_exp   = ls_yafko&lt;BR /&gt;          aaufk_exp   = ls_yaufk.&lt;BR /&gt;      ls_yafko-aprio = header_imp-aprio .&lt;BR /&gt;      APPEND ls_yafko TO lt_yafko.&lt;BR /&gt;      APPEND ls_yaufk TO lt_yaufk.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Feb 2022 20:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-production-order-priority-fields-in-afko-header-using-bapi/m-p/12489815#M2002428</guid>
      <dc:creator>former_member300568</dc:creator>
      <dc:date>2022-02-24T20:15:16Z</dc:date>
    </item>
  </channel>
</rss>

