<?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: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319806#M1029392</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 passed all the as you said.The BAPI return "SALES_SCHEDULES_IN has been processed successfully"  but i cant get the quantity field updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried all the fields of table ITEM_IN (target_qty COMP_QUANT RNDDLV_QTY) and set the flag for the corresponding in item_in as 'X' but still the order quantity field in sales order remains empty. How can I add the value in order quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;karthk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karthi keyan on Aug 25, 2008 1:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2008 07:48:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-25T07:48:45Z</dc:date>
    <item>
      <title>Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319801#M1029387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am creating sales order using BAPI_SALESORDER_CREATEFROMDAT2. I want to update the Order quantity in VBAP-KWMENG.I got the information from SDN when including the Schedule line in BAPI 'BAPI_SALESORDER_CREATEFROMDAT2  '.&lt;/P&gt;&lt;P&gt;  I tried by using Update flag = 'I'.I am not able to update, what are the values to be passed and how to update the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is there any other way..Please suggest me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Karthik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 07:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319801#M1029387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T07:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319802#M1029388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;I got the information from SDN when including the Schedule line in BAPI 'BAPI_SALESORDER_CREATEFROMDAT2 '.
I tried by using Update flag = 'I'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you made Update flag ?i mean which field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with TESTRUN = ' ' which is deafult space no need to do with Update flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 07:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319802#M1029388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T07:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319803#M1029389</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;Thanks for ur immediate reply,I am Passing the TESTRUN = ' '. I passed only the update flag in ORDER_SCHEDULES_INX-UPDATEFLAG = 'I'.&lt;/P&gt;&lt;P&gt;What are the values to be passed to the structure ORDER_SCHEDULES_IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Karthik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 07:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319803#M1029389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T07:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319804#M1029390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ORDER_SCHEDULES_IN STRUCTURE  BAPISCHDL OPTIONAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you defined table like BAPISCHDL  &lt;STRONG&gt;&amp;amp; BAPISCHDLX&lt;/STRONG&gt; and using it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible share the code, to know the exact problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 07:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319804#M1029390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T07:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319805#M1029391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, In the BAPI if you look at the tables parameter you will find ORDER_ITEMS_IN and ORDER_ITEMS_INX as well as ORDER_SCHEDULES_IN and ORDER_SCHEDULES_INX. To update KWMENG you will have to pass that value to ORDER_ITEMS_IN-TARGET_QTY and update the same in the table ORDER_ITEMS_INX (ORDER_ITEMS_INX-TARGET_QTY) with 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For updating schedule line go for ORDER_SCHEDULES_IN-SCHED_LINE and update X for the same in ORDER_SCHEDULES_INX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try looking into the following code, I am filling in both the Item data as well as the Schedule line data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  loop at t_mdata into fs_mdata.
    fs_item-itm_number  = fs_mdata-posnr.
    fs_itemx-itm_number = c_flag.
    fs_item-material    = fs_mdata-matnr.
    fs_itemx-material   = c_flag.
    fs_item-target_qty  = fs_mdata-kwmeng.
    fs_itemx-target_qty = c_flag.
    fs_item-item_categ  = fs_mdata-pstyv.
    fs_itemx-item_categ = c_flag.
    fs_itemx-updateflag = c_flag.
      APPEND fs_item TO t_item.
      APPEND fs_itemx TO t_itemx.

    fs_sline-ITM_NUMBER  = fs_mdata-posnr.
    fs_slinex-ITM_NUMBER = c_flag.
    fs_sline-SCHED_LINE  = c_sline.
    fs_slinex-SCHED_LINE = c_flag.
    fs_sline-REQ_QTY     = fs_mdata-kwmeng.
    fs_slinex-REQ_QTY    = c_flag.
      APPEND fs_sline TO t_sline.
      APPEND fs_slinex TO t_slinex.
  endloop.                             " Loop t_mdata
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_flag contains 'X'.&lt;/P&gt;&lt;P&gt; fs_item is of structure ORDER_ITEMS_IN.&lt;/P&gt;&lt;P&gt; fs_sline is of structure ORDER_SCHEDULES_IN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 07:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319805#M1029391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T07:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319806#M1029392</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 passed all the as you said.The BAPI return "SALES_SCHEDULES_IN has been processed successfully"  but i cant get the quantity field updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried all the fields of table ITEM_IN (target_qty COMP_QUANT RNDDLV_QTY) and set the flag for the corresponding in item_in as 'X' but still the order quantity field in sales order remains empty. How can I add the value in order quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;karthk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karthi keyan on Aug 25, 2008 1:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 07:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319806#M1029392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T07:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319807#M1029393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you take the update flag as 'X' or 'I' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 07:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319807#M1029393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T07:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319808#M1029394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I take it as 'I'. What it mean by 'X',can u plz tell..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 07:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319808#M1029394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T07:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319809#M1029395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frankly, I dont know what is the meaning of 'I' in the update flag, but I always used 'X' for updating the values just like we do in other cases. Its working for me fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 08:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319809#M1029395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T08:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319810#M1029396</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 tried with 'X' also but it is not updating the order quantity field. I am struggling a lot please help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Karthik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 10:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319810#M1029396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T10:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319811#M1029397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthik, could you please post the part of code where in you are filling the item details?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also i am not sure if you have gone through this link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://www.saptechies.com/bapi_salesorder_createfromdat2/]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2008 10:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/order-schedule-lines-not-created-using-bapi-salesorder-createfromdat2/m-p/4319811#M1029397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-25T10:38:15Z</dc:date>
    </item>
  </channel>
</rss>

