<?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 change. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894039#M934858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajesh...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My friend please dont take my advice on the wrong hand. I only wanted to explain you the procedure I follow when I find a FM that could work depending on my needs, that is what I meant when I said "learn how to use SE37 for that FM" nothing else.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I just want to help, and share some of my experience, please dont think Im too smart for this forum... as I said I only wanted to help you...I dont understand why you answer that, the idea if this forum is to help eachother, no to get offended when getting help from people all around the world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers men...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2008 02:28:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-11T02:28:42Z</dc:date>
    <item>
      <title>BAPI Sales Order change.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894035#M934854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ALL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help in BAPI sales order change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I unable to change the Quantity field of the line item in sales order. Even if I try to insert a new line item the quantity field is not updating. It is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below I have pasted the code: Please check and correct it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEST1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ord_headerx TYPE bapisdh1x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: itm_tab LIKE bapisditm OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;itm_chk LIKE bapisditmx OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: hdr_in type BAPISDH1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: posnr TYPE posnr_va OBLIGATORY, "item number&lt;/P&gt;&lt;P&gt;vbeln TYPE vbeln_va OBLIGATORY, "SO number&lt;/P&gt;&lt;P&gt;uom type VRKME OBLIGATORY, "Unit o fmeasure&lt;/P&gt;&lt;P&gt;tqty type DZMENG, "Quantity&lt;/P&gt;&lt;P&gt;matnr type matnr. "Material number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hdr_in-SD_DOC_CAT = 'C'.&lt;/P&gt;&lt;P&gt;ord_headerx-updateflag = 'U'. "'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itm_tab-itm_number = posnr.&lt;/P&gt;&lt;P&gt;itm_tab-SALES_UNIT = uom. "'H'. " target_qu = 'EA'.&lt;/P&gt;&lt;P&gt;itm_tab-target_qty = tqty.&lt;/P&gt;&lt;P&gt;itm_tab-MATERIAL = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itm_chk-itm_number = posnr.&lt;/P&gt;&lt;P&gt;itm_chk-updateflag = 'I'. "'U'.&lt;/P&gt;&lt;P&gt;itm_chk-SALES_UNIT = 'X'. &lt;/P&gt;&lt;P&gt;itm_chk-target_qty = 'X'.&lt;/P&gt;&lt;P&gt;itm_chk-material = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND itm_tab.&lt;/P&gt;&lt;P&gt;APPEND itm_chk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_CHANGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;salesdocument = vbeln&lt;/P&gt;&lt;P&gt;order_header_inx = ord_headerx&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;return = it_return&lt;/P&gt;&lt;P&gt;order_item_in = itm_tab&lt;/P&gt;&lt;P&gt;order_item_inx = itm_chk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;wait = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_return.&lt;/P&gt;&lt;P&gt;WRITE:/ it_return-type, it_return-message.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 22:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894035#M934854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T22:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Sales Order change.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894036#M934855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hELLO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try calling FM BAPI_SALESORDER_GETLIST, to see if you are missing any parameter in order to change what you need.&lt;/P&gt;&lt;P&gt;Also check if the X structures are filled correcly, I would recommend to learn how to use the FM on se37 before programming anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 22:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894036#M934855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T22:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Sales Order change.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894037#M934856</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 see in the code that u r not filling the Schedule lines structure in BAPI. Quantity will be changed only if u fill the schedule lines in BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can find the schedule lines in TABLES of BAPI 'BAPI_SALESORDER_CHANGE' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCHEDULE_LINES&lt;/STRONG&gt; LIKE BAPISCHDL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCHEDULE_LINESX&lt;/STRONG&gt; LIKE BAPISCHDLX&lt;/P&gt;&lt;P&gt;Try to fill the above structures and update the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it wll get updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asif Ali Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 04:21:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894037#M934856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T04:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Sales Order change.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894038#M934857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello... Gabriel P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If some one ask a question in this form. Try to answer or else sit quite. &lt;/P&gt;&lt;P&gt;Don't advise me and don't think that you are too smart how to check the FM in SE37.  (Don't try to teach me)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 22:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894038#M934857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T22:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Sales Order change.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894039#M934858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajesh...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My friend please dont take my advice on the wrong hand. I only wanted to explain you the procedure I follow when I find a FM that could work depending on my needs, that is what I meant when I said "learn how to use SE37 for that FM" nothing else.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I just want to help, and share some of my experience, please dont think Im too smart for this forum... as I said I only wanted to help you...I dont understand why you answer that, the idea if this forum is to help eachother, no to get offended when getting help from people all around the world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers men...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 02:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894039#M934858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T02:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Sales Order change.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894040#M934859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 09:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-sales-order-change/m-p/3894040#M934859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T09:41:28Z</dc:date>
    </item>
  </channel>
</rss>

