<?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: Problem with BAPI_SALESORDER_CREATEFROMDAT2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907343#M56339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   That was a typo error ... the fields are &lt;/P&gt;&lt;P&gt;ORDER_SCHEDULES_IN-dlv_date = '20050516'.&lt;/P&gt;&lt;P&gt;  But the Schedule date in the sales order doesn't get filled with this date it is getting filled with today's date ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kunal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2005 18:22:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-09T18:22:00Z</dc:date>
    <item>
      <title>Problem with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907341#M56337</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 have a problem with the BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;I execute this successfully, this generate a sales document. When i check the sales order, the DELEIVERY DATE does not appear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fill the corresponding fields DELIVERY DATE in both &lt;/P&gt;&lt;P&gt;structures:&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_IN STRUCTURE BAPISDITM OPTIONAL&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_INX STRUCTURE BAPISDITMX OPTIONAL&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I am filling ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;structures ORDER_SCHEDULES_IN and ORDER_SCHEDULES_INX.&lt;/P&gt;&lt;P&gt;ORDER_SCHEDULES_IN-itm_number = 10.&lt;/P&gt;&lt;P&gt;ORDER_SCHEDULES_IN-dlv_date   = 20051503.&lt;/P&gt;&lt;P&gt;APPEND ORDER_SCHEDULES_IN.&lt;/P&gt;&lt;P&gt;ORDER_SCHEDULES_INX-itm_number = 'X'.&lt;/P&gt;&lt;P&gt;ORDER_SCHEDULES_INX-dlv_date   = 'X'.&lt;/P&gt;&lt;P&gt;APPEND ORDER_SCHEDULES_INX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 16:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907341#M56337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T16:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907342#M56338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is this date.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
20051503
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shouldn't it be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
20050315
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was under the impression that SAP stores all dates internally as YYYYMMDD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this line of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

ORDER_SCHEDULES_IN-dlv_date = '20050315'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure the value is in quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 18:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907342#M56338</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-09T18:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907343#M56339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   That was a typo error ... the fields are &lt;/P&gt;&lt;P&gt;ORDER_SCHEDULES_IN-dlv_date = '20050516'.&lt;/P&gt;&lt;P&gt;  But the Schedule date in the sales order doesn't get filled with this date it is getting filled with today's date ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kunal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 18:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907343#M56339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T18:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907344#M56340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that you don't need the SCHED_LINE field filled in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ORDER_SCHEDULES_IN = SCHED_LINE = '0001'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 18:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907344#M56340</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-09T18:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907345#M56341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;   I am posting the code which i have written ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       wa_sch_in-itm_number = lv_itemno.&lt;/P&gt;&lt;P&gt;       wa_sch_in-SCHED_LINE = lv_itemno.&lt;/P&gt;&lt;P&gt;       wa_sch_in-req_qty       = wa_items_in-target_qty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            date_external            = wa_vbak_temp-erdat&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            date_internal            = wa_sch_in-dlv_date&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            date_external_is_invalid = 1&lt;/P&gt;&lt;P&gt;            OTHERS                   = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        APPEND wa_sch_in TO i_sch_in.&lt;/P&gt;&lt;P&gt;        CLEAR wa_sch_inx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        wa_sch_inx-itm_number    = 'X'.&lt;/P&gt;&lt;P&gt;        wa_sch_inx-sched_line    = 'X'.&lt;/P&gt;&lt;P&gt;        wa_sch_inx-req_qty       = 'X'.&lt;/P&gt;&lt;P&gt;        wa_sch_inx-dlv_date       = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        APPEND wa_sch_inx TO i_sch_inx.&lt;/P&gt;&lt;P&gt;        CLEAR wa_vbak_temp.&lt;/P&gt;&lt;P&gt;      ENDLOOP."LOOP AT i_vbak INTO wa_vbak_temp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR w_sales_doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SALESDOCUMENTIN               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          order_header_in          = wa_header_in&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_HEADER_INX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SENDER                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BINARY_RELATIONSHIPTYPE       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INT_NUMBER_ASSIGNMENT         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BEHAVE_WHEN_ERROR             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOGIC_SWITCH                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TESTRUN                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONVERT                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     salesdocument                 = w_sales_doc&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;     return                        = i_return&lt;/P&gt;&lt;P&gt;     order_items_in                = i_items_in&lt;/P&gt;&lt;P&gt;    ORDER_ITEMS_INX               = i_items_inx&lt;/P&gt;&lt;P&gt;     order_partners                = i_partner&lt;/P&gt;&lt;P&gt;   order_schedules_in            = i_sch_in&lt;/P&gt;&lt;P&gt;   order_schedules_inx           = i_sch_inx&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CONDITIONS_IN           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CONDITIONS_INX          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_REF                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_INST               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_PART_OF            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_VALUE              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_BLOB               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_VK                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CFGS_REFINST            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_CCARD                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_TEXT                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ORDER_KEYS                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSIONIN                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARTNERADDRESSES              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u can help me now , as u see i am sending the sched_line,itm_number,req_qty,dlv_date and also the corresponding order_schedules_inx values but still not getting the correct delivery date value in the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kunal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 18:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907345#M56341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-09T18:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907346#M56342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just curious, Try filling the REQ_DATE field instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ORDER_SCHEDULES_IN-REQ_DATE = '20050516'.


ORDER_SCHEDULES_IN-REQ_DATE = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2005 19:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907346#M56342</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-09T19:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907347#M56343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been using this BAPI for quite a while now with no problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now require to put a different address on the order to the customer master data.  However when I put the data in the partner function table of this BAPI it populates all the fields on SAP but not NAME3 field for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know of any problems like this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2005 09:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-salesorder-createfromdat2/m-p/907347#M56343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-23T09:14:15Z</dc:date>
    </item>
  </channel>
</rss>

