<?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: BAPI sales order - quantity in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897483#M54559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subramanian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot try to help me in all aspects, now i sort out the issue about order quantity. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;schedule line items structure having a field called order quantity. i just passed that stucture also as internal table to the BAPI. so now it was updating the quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In normal practice line item data is copied to the &amp;lt;b&amp;gt;schedule line&amp;lt;/b&amp;gt; items here it was in the &amp;lt;b&amp;gt;reverse process &amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2005 12:13:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-04-11T12:13:46Z</dc:date>
    <item>
      <title>BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897475#M54551</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 using BAPI &amp;lt;b&amp;gt;'BAPI_SALESORDER_CREATEFROMDAT2'&amp;lt;/b&amp;gt; to create sales orders, I could able to create order successfully but quantity of the line item is not coming in the order. If any idea which field should i use to populate the &amp;lt;b&amp;gt;quantity&amp;lt;/b&amp;gt; in the &amp;lt;b&amp;gt;sales order&amp;lt;/b&amp;gt; items please lemme know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Apr 2005 16:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897475#M54551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-10T16:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897476#M54552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fill the following fields of ORDER_ITEMS_IN for Quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TARGET_QTY&amp;lt;/b&amp;gt;  - Quantity&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TARGET_QU&amp;lt;/b&amp;gt;   - Unit of Measure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in ORDER_ITEMS_INX fill &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;UPDATEFLAG&amp;lt;/b&amp;gt; = 'U'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TARGET_QTY&amp;lt;/b&amp;gt; = 'X'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TARGET_QU&amp;lt;/b&amp;gt;  = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 03:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897476#M54552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T03:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897477#M54553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subramanian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your answer, i am just coding according to your suggestion and let you in 30mins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 07:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897477#M54553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T07:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897478#M54554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Subramanian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not able to create sales order after modifying the code. some different problem is coming. if you have any sample code on sales order creation please mail me &amp;lt;b&amp;gt;suresh_karan@yahoo.com&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 08:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897478#M54554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T08:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897479#M54555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of update_flag = 'U', put 'I'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U - Update&lt;/P&gt;&lt;P&gt;I - Create&lt;/P&gt;&lt;P&gt;D - Delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. In case it still does not work, kindly post your code&lt;/P&gt;&lt;P&gt;and also post what paramaeters that you are passing to your respective input(table included) parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 08:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897479#M54555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T08:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897480#M54556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subramanian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am coping the code below. please see and lemme know the problem .&lt;/P&gt;&lt;P&gt;Loop at it_mat_grp.&lt;/P&gt;&lt;P&gt;   on change of it_mat_grp-kunnr.&lt;/P&gt;&lt;P&gt;      loop at it_temp1 where kunnr eq it_mat_grp-kunnr.&lt;/P&gt;&lt;P&gt;        it_items-bcode = it_temp1-bcode.&lt;/P&gt;&lt;P&gt;        it_items-matnr = it_temp1-matnr.&lt;/P&gt;&lt;P&gt;        it_items-quantity = it_temp1-quantity.&lt;/P&gt;&lt;P&gt;        it_items-posnr = v_posnr1.&lt;/P&gt;&lt;P&gt;*=====&amp;gt; bapi line items table&lt;/P&gt;&lt;P&gt;        it_bapi_items-itm_number = v_posnr1.&lt;/P&gt;&lt;P&gt;        it_bapi_items-material = it_temp1-matnr.&lt;/P&gt;&lt;P&gt;        it_bapi_items-comp_quant = it_temp1-quantity.&lt;/P&gt;&lt;P&gt;        it_bapi_items-sales_unit = 'KG'.&lt;/P&gt;&lt;P&gt;        append it_bapi_items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*=====&amp;gt; bapi quantity structures&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       it_bapi_order_inx-itm_number = v_posnr1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       it_bapi_order_inx-updateflag = 'I'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       it_bapi_order_inx-target_qty = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       it_bapi_order_inx-target_qu = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       append it_bapi_order_inx.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        append it_items.&lt;/P&gt;&lt;P&gt;        v_posnr1 = v_posnr1 + 10.&lt;/P&gt;&lt;P&gt;        clear it_items.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;    endon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*=====&amp;gt; bapi customer structure&lt;/P&gt;&lt;P&gt;    it_bapi_customer-partn_role = 'AG'.&lt;/P&gt;&lt;P&gt;    call function 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        input  = it_mat_grp-kunnr&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        output = it_mat_grp-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_bapi_customer-partn_numb = it_mat_grp-kunnr.&lt;/P&gt;&lt;P&gt;    it_bapi_customer-itm_number = '000000'.&lt;/P&gt;&lt;P&gt;    append it_bapi_customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*=====&amp;gt; bapi pricing condition structure&lt;/P&gt;&lt;P&gt;    sort it_conditions by barcode.&lt;/P&gt;&lt;P&gt;    sort it_items by posnr.&lt;/P&gt;&lt;P&gt;    on change of it_mat_grp-kunnr.&lt;/P&gt;&lt;P&gt;      loop at it_items.&lt;/P&gt;&lt;P&gt;        loop at it_conditions where barcode = it_items-bcode.&lt;/P&gt;&lt;P&gt;          it_pricing-price = it_conditions-condition.&lt;/P&gt;&lt;P&gt;          it_bapi_conditions-itm_number = v_posnr.&lt;/P&gt;&lt;P&gt;          it_bapi_conditions-cond_type = it_conditions-condition.&lt;/P&gt;&lt;P&gt;          append it_bapi_conditions.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;        v_posnr = v_posnr + 10.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;    endon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at end of kunnr.&lt;/P&gt;&lt;P&gt;*====&amp;gt; bapi function module to create an order&lt;/P&gt;&lt;P&gt;      call function 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          order_header_in     = it_bapi_header&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;          return              = bapi_return&lt;/P&gt;&lt;P&gt;          order_items_in      = it_bapi_items&lt;/P&gt;&lt;P&gt;          order_items_inx     = it_bapi_order_inx&lt;/P&gt;&lt;P&gt;          order_partners      = it_bapi_customer&lt;/P&gt;&lt;P&gt;          order_conditions_in = it_bapi_conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*====&amp;gt; bapi to commit to the order&lt;/P&gt;&lt;P&gt;      if l_obj_key ne '$'.&lt;/P&gt;&lt;P&gt;        call function 'BAPI_TRANSACTION_COMMIT' .&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 09:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897480#M54556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T09:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897481#M54557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a few things, which I would share with you before analysing your code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) In 4.6C, very good documentation is already provided for each of the parameters that needs to be entered in the various input/table parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) For every parameter that you fill, there usually exists a  *X structure as well. This indicates that , what parameters that you need to insert in the Sales Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g.&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN and ORDER_HEADER_INX, in ORDER_HEADER_INX you need to indicate which parameters are to be inserted and therefore you need to mark UPDATE_FLAG = 'I' and mark the parameters such as SALES_ORG = 'X' and DISTR_CHAN = 'X'. 'X' indicates these values are to be inserted in the given sales order document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer to note 93091 at &lt;A href="http://service.sap.com" target="test_blank"&gt;http://service.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the last line of your code , you have put l_obj_key ne '$', I am not sure why you are doing this. The only thing perhaps you need to do is, if you obtain the sales document number, then commit, otherwise, no need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sample code for BAPI_SALESORDER_CHANGE, however, you are looking for BAPI_SALESORDER_CREAT2. There are some differences in these two, but essentially the filling of data in structures/tables remains the same. If you find the pattern, you can do it similarly for your BAPI_SALESORDER_CREAT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters: p_vbeln type bapivbeln-vbeln default '7226'.

*** Header Structure
data: ls_order_header_in   type bapisdh1.
data: ls_order_header_inx  type bapisdh1x.

*** Line Item Table
data: lt_order_item_in     type table of bapisditm.
data: lt_order_item_inx    type table of bapisditmx.

*** Schedule Lines Table
data: lt_schedule_lines    type table of bapischdl.
data: lt_schedule_lines_x  type table of bapischdlx.

*** Schedule Lines Structure
data: ls_schedule_lines    type bapischdl.
data: ls_schedule_lines_x  type bapischdlx.

*** Return Table
data: lt_return type table of bapiret2.
data: ls_return type bapiret2.


*** Header Information
ls_order_header_in-sales_org = '1000'.
ls_order_header_in-distr_chan = '10'.
ls_order_header_in-division   = '00'.
*ls_order_header_in-sales_grp  = '110'.
*ls_order_header_in-sales_off  = '1010'.

***To update
ls_order_header_inx-updateflag = 'U'.

*** Schedule Line Information
ls_schedule_lines-itm_number = '000010'.
ls_schedule_lines-sched_line = '0003'.
*ls_schedule_lines-req_date   = '20050401'.
ls_schedule_lines-date_type  = '1'.
ls_schedule_lines-req_qty    = '105.000'.
append ls_schedule_lines to lt_schedule_lines.
*
ls_schedule_lines-itm_number = '000010'.
ls_schedule_lines-sched_line = '0003'.
*ls_schedule_lines-req_date   = '20050401'.
ls_schedule_lines-date_type  = '1'.
ls_schedule_lines-req_qty    = '130.000'.
append ls_schedule_lines to lt_schedule_lines.

ls_schedule_lines_x-itm_number = '000010'.
ls_schedule_lines_x-sched_line = '0003'.
ls_schedule_lines_x-updateflag = 'U'.
ls_schedule_lines_x-req_date   = 'X'.
ls_schedule_lines_x-date_type  = 'X'.
ls_schedule_lines_x-req_qty    = 'X'.
append ls_schedule_lines_x to lt_schedule_lines_x.

*ls_schedule_lines-itm_number = '000010'.
*ls_schedule_lines-sched_line = '0039'.
*ls_schedule_lines-req_date   = '20050401'.
*ls_schedule_lines-date_type  = '1'.
*ls_schedule_lines-req_qty    = '80.000'.
*append ls_schedule_lines to lt_schedule_lines.
*
*ls_schedule_lines_x-itm_number = '000010'.
*ls_schedule_lines_x-sched_line = '0039'.
*ls_schedule_lines_x-updateflag = 'I'.
*ls_schedule_lines_x-req_date   = 'X'.
*ls_schedule_lines_x-date_type  = 'X'.
*ls_schedule_lines_x-req_qty    = 'X'.
*append ls_schedule_lines_x to lt_schedule_lines_x.
*

call function 'BAPI_SALESORDER_CHANGE'
  exporting
    salesdocument               = p_vbeln
    order_header_in             = ls_order_header_in
    order_header_inx            = ls_order_header_inx
*   SIMULATION                  =
*   BEHAVE_WHEN_ERROR           = ' '
*   INT_NUMBER_ASSIGNMENT       = ' '
*   LOGIC_SWITCH                =
  tables
    return                      = lt_return
    order_item_in               = lt_order_item_in
    order_item_inx              = lt_order_item_inx
*   PARTNERS                    =
*   PARTNERCHANGES              =
*   PARTNERADDRESSES            =
*   ORDER_CFGS_REF              =
*   ORDER_CFGS_INST             =
*   ORDER_CFGS_PART_OF          =
*   ORDER_CFGS_VALUE            =
*   ORDER_CFGS_BLOB             =
*   ORDER_CFGS_VK               =
*   ORDER_CFGS_REFINST          =
    schedule_lines              = lt_schedule_lines
    schedule_linesx             = lt_schedule_lines_x
*   ORDER_TEXT                  =
*   ORDER_KEYS                  =
*   CONDITIONS_IN               =
*   CONDITIONS_INX              =
*   EXTENSIONIN                 =
          .

call function 'BAPI_TRANSACTION_COMMIT'
 exporting
   wait          = 'X'
* IMPORTING
*   RETURN        =
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 09:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897481#M54557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T09:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897482#M54558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subramanian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot spending time on this issue. If you have free time can you please write sample code on  &amp;lt;b&amp;gt;'BAPI_SALESORDER_CREATEFROMDAT2'&amp;lt;/b&amp;gt; add logic for quantity  of the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have't pass structure for ORDER_HEADER_INX to update line item data even order is creating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need i will send my total code of my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 10:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897482#M54558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T10:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897483#M54559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi subramanian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot try to help me in all aspects, now i sort out the issue about order quantity. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;schedule line items structure having a field called order quantity. i just passed that stucture also as internal table to the BAPI. so now it was updating the quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In normal practice line item data is copied to the &amp;lt;b&amp;gt;schedule line&amp;lt;/b&amp;gt; items here it was in the &amp;lt;b&amp;gt;reverse process &amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 12:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897483#M54559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T12:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897484#M54560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good to know that you were able to solve your problem and thank you for sharing the information , how you went about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly mark the thread as answered, so that others can benefit out of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 12:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897484#M54560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897485#M54561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subramanian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not able to see any quantity field  in &amp;lt;b&amp;gt;BAPISDITM&amp;lt;/b&amp;gt; but i can see in &amp;lt;b&amp;gt;BAPISCHDL&amp;lt;/b&amp;gt;. we have nearly 8 fields which had name with quantity in &amp;lt;b&amp;gt;BAPISDITM&amp;lt;/b&amp;gt; , i given values to all those fields&lt;/P&gt;&lt;P&gt;1,2,...8 to test but it was not updating. so i try to search other structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 15:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897485#M54561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897486#M54562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if your problem is solved or you are still having problem. I see in one post you mentioned that you were able to pass the quantities, but in your last response you still seems to be asking about quantity fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The quantity field in BAPISDITM is TARGET_QTY and you need to fill in the TARGET_QU along with it. As Subramanian already pointed out, you need to fill in the corresponding 'X' structures and the fields with 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if you are able to create the sales order or not. If not your error messages will be returned in the RETURN table of your BAPI call. Look at those messages and see if that gives you a hint. If not, post the messages here so that someone will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2005 19:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897486#M54562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-11T19:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897487#M54563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have resolved the problem, had problem in the &amp;lt;b&amp;gt;order quantity&amp;lt;/b&amp;gt; not in &amp;lt;b&amp;gt;Target quantity&amp;lt;/b&amp;gt; . that has been resolved using the &amp;lt;b&amp;gt;schedule line sturctures&amp;lt;/b&amp;gt;. we need not to fill in the corresponding 'X' structures and the fields with 'X',  i guess i.e. needed when you are changing the sales orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2005 07:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897487#M54563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-12T07:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897488#M54564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;can you please elobarate on ur explanation as I am also facing the same problem and I need the solution urgently.&lt;/P&gt;&lt;P&gt;I am able to upload the material information but unable to upload the corresponding quantity info.&lt;/P&gt;&lt;P&gt;Expecting ur reply at the earliest.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Daya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2005 04:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897488#M54564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-13T04:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897489#M54565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daya shankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sales order &amp;lt;b&amp;gt;BAPI_SALESORDER_CREATEFROMDAT2&amp;lt;/b&amp;gt; there is structure called &amp;lt;b&amp;gt;BAPISCHDL&amp;lt;/b&amp;gt; for &amp;lt;b&amp;gt;schedule line items&amp;lt;/b&amp;gt;, just fill that structure as like &amp;lt;b&amp;gt;BAPISDITM&amp;lt;/b&amp;gt; along with item position number in order to populate the quantity for your material. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still you are not clear please post the code i will try explain where you have to add the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2005 10:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897489#M54565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-13T10:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI sales order - quantity</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897490#M54566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you .. I too got same issue. it is manadatory that we should pass schedule details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 11:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-quantity/m-p/897490#M54566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-09T11:32:41Z</dc:date>
    </item>
  </channel>
</rss>

