<?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 pricing using FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169094#M1371331</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 need change the pricing of an exiting order.&lt;/P&gt;&lt;P&gt;I would do this using the FM CRM_ORDER_MAINTAIN but it doesn't work....&lt;/P&gt;&lt;P&gt;Can anybody show me the right code for change princing using this FM??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards &lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2009 13:07:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-24T13:07:20Z</dc:date>
    <item>
      <title>Change pricing using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169094#M1371331</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 need change the pricing of an exiting order.&lt;/P&gt;&lt;P&gt;I would do this using the FM CRM_ORDER_MAINTAIN but it doesn't work....&lt;/P&gt;&lt;P&gt;Can anybody show me the right code for change princing using this FM??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards &lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 13:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169094#M1371331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T13:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change pricing using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169095#M1371332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are u looking for changing of a sales order, If so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using fm BAPI_SALESORDER_CHANGE, we can change the pricing of a sales order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know abt order type which u are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 13:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169095#M1371332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T13:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change pricing using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169096#M1371333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  BSVASU    	 &lt;/P&gt;&lt;P&gt;Thanks for you reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes i'm trying to change a sales order, you can help me??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 13:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169096#M1371333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T13:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change pricing using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169097#M1371334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the below pseudo code u can modify existing pricing of an order.&lt;/P&gt;&lt;P&gt;    wa_cond-itm_number = Item no&lt;/P&gt;&lt;P&gt;    wa_cond-cond_type = cond typel. " which u want to add up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_konv-kbetr =  " The discount % value or the amount.&lt;/P&gt;&lt;P&gt;    wa_cond-cond_value = .&lt;/P&gt;&lt;P&gt;    APPEND wa_cond TO i_cond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   wa_condx-itm_number =  'xxx'&lt;/P&gt;&lt;P&gt;    wa_condx-cond_type = 'xxxx'.&lt;/P&gt;&lt;P&gt;    wa_condx-updateflag = 'X'.&lt;/P&gt;&lt;P&gt;    wa_condx-cond_value = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND wa_condx TO i_condx.&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    = " Order no&lt;/P&gt;&lt;P&gt;        order_header_in  =  " heade&lt;/P&gt;&lt;P&gt;        order_header_inx =  " header&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        return           = li_return1&lt;/P&gt;&lt;P&gt;        order_item_in    = li_bapisditm&lt;/P&gt;&lt;P&gt;        order_item_inx   = li_bapisditmx&lt;/P&gt;&lt;P&gt;       CONDITIONS_IN      = i_cond&lt;/P&gt;&lt;P&gt;      CONDITIONS_INX         = i_condx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 13:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169097#M1371334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T13:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change pricing using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169098#M1371335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this and let me know if fulfills your needs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_pridoc_tab-stunr = ln_cond-stunr.&lt;/P&gt;&lt;P&gt; ls_pridoc_tab-zaehk = ln_cond-zaehk.&lt;/P&gt;&lt;P&gt; ls_pridoc_tab-waers = ln_cond-waers.&lt;/P&gt;&lt;P&gt; ls_pridoc_tab-kbetr = '70'.&lt;/P&gt;&lt;P&gt; INSERT ls_pridoc_tab INTO TABLE lt_pridoc_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ls_pridoc-ref_guid = ln_cond-kposn.&lt;/P&gt;&lt;P&gt; ls_pridoc-cond_change = lt_pridoc_tab.&lt;/P&gt;&lt;P&gt; INSERT ls_pridoc INTO TABLE lt_pridoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ls_input_field-ref_guid = ln_cond-kposn.&lt;/P&gt;&lt;P&gt; ls_input_field-ref_kind = 'B'.&lt;/P&gt;&lt;P&gt; ls_input_field-objectname = 'PRIDOC_COM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ls_field_name-fieldname = 'KBETR'.&lt;/P&gt;&lt;P&gt; INSERT ls_field_name INTO TABLE lt_field_name.&lt;/P&gt;&lt;P&gt; INSERT ls_input_field INTO TABLE lt_input_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; REFRESH lt_field_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CRM_ORDER_MAINTAIN'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     it_pridoc       = lt_pridoc&lt;/P&gt;&lt;P&gt;   CHANGING&lt;/P&gt;&lt;P&gt;     ct_input_fields = lt_input_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;   ls_header_guid = guid.&lt;/P&gt;&lt;P&gt;   APPEND ls_header_guid TO lt_header_guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'CRM_ORDER_SAVE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       it_objects_to_save = lt_header_guid&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       et_saved_objects   = gt_saved_objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF. &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;Il gemello disperso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 13:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169098#M1371335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T13:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change pricing using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169099#M1371336</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; &lt;/P&gt;&lt;P&gt; now it work....thanks for your help.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best Regards Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 13:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169099#M1371336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T13:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change pricing using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169100#M1371337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pierluigi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please kindly give an rough example for adding one condition line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Figured out by myself~&lt;/P&gt;&lt;P&gt;-Closed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shane Chen on Nov 3, 2009 9:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 07:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169100#M1371337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T07:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change pricing using FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169101#M1371338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane for add a condition use the code below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ls_cond_add-kschl = ln_product-kschl.
      ls_cond_add-kbetr = ln_product-kbetr.
      INSERT ls_cond_add INTO TABLE lt_cond_add.

      ls_pridoc-ref_handle = counter.
      ls_pridoc-cond_add = lt_cond_add.
      INSERT ls_pridoc INTO TABLE lt_pridoc.

      ln_field-ref_handle = counter.
      ln_field-ref_kind = 'B'.
      ln_field-objectname = 'PRIDOC_COM'.

      ln_fname-fieldname = 'KBETR'.
      INSERT ln_fname INTO TABLE tb_fname.
      ln_fname-fieldname = 'WAERS'.
      INSERT ln_fname INTO TABLE tb_fname.
      ln_fname-fieldname = 'ZAEHK'.
      INSERT ln_fname INTO TABLE tb_fname.
      ln_fname-fieldname = 'STUNR'.
      INSERT ln_fname INTO TABLE tb_fname.
      ln_field-field_names = tb_fname.
      INSERT ln_field INTO TABLE tb_field.

and call funciton
 CALL FUNCTION 'CRM_ORDER_MAINTAIN'
   EXPORTING
        it_schedlin_i   = tb_sched
        it_partner      = tb_part
        it_orgman       = tb_org
        it_activity_i   = tb_acti
        it_status       = tb_status
        it_product_i    = tb_prd
        it_pridoc       = lt_pridoc
*        it_survey       = tb_svy
*        it_activity_i   = tb_acti
      CHANGING
        ct_orderadm_h   = tb_ordh
        ct_orderadm_i   = tb_ordi
        ct_input_fields = tb_field
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i hope it help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 09:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-pricing-using-fm/m-p/6169101#M1371338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T09:20:06Z</dc:date>
    </item>
  </channel>
</rss>

