Create/Update of Price conditions - PR00

Hi folks
I hope U know the right Function Module. Normally we use
transaction MM02 to insert/update price conditions via view
"Sales: Sales Org. Data 1". Here we push the button "Conditions
and have the posability to enter/change the PR00 price condition.
So far so good.
But which Function Module do I have to use if want to do the same from within a background ABAP program??
Maybe BAPI_MATERIAL_SAVEDATA?? And how to?
Best regards
and have a nice weekend
Carsten :o)

Hi there,
check thist thread.
BAPI_PRICES_CONDITIONS
Kind regards,
J.

Similar Messages

  • How to update multiple Price conditions in FM CRM_ORDER_MAINTAIN

    Hi All,
          need to update multiple price conditions in a contract Thru FM CRM_ORDER_MAINTAIN.
    please see the piece of code that am using...
      am able to update single price condition...but not able to populate 2 or more .......i,e..ADD A Condition
    i,e...DATA : ls_cond TYPE prct_cond_external_input,
           lt_cond TYPE prct_cond_external_input_t.
    DATA : ls_con TYPE PRCT_COND_DU,
           lt_con TYPE PRCT_COND_DU_TAB.
    Create Condition Type
    *ls_con-KNUMV = lv_header_guid.
    *ls_con-KPOSN = lv_item_guid.
    ls_con-stunr  = '134'.
    IF Y EQ 1.
      ls_con-ZAEHK = '001'.
    ELSE.
       ls_con-ZAEHK = '002'.
    *ENDIF.
    *ls_con-kschl = 'ZFP1'.
    **ls_cond-waers = 'CNY'.
    *ls_con-kbetr = '0.00'.
    *ls_con-kpein = '1'.
    ls_cond-kschl = 'ZFP1'.
    ls_cond-waers = 'CNY'.
    ls_cond-kbetr = '0'.
    ls_cond-kpein = '1'.
    ls_cond-knumh = lv_item_guid .
    CLEAR ls_Price_doc.
    ls_Price_doc-ref_guid = lv_item_guid.
    ls_Price_doc-ref_kind = 'A'.
    IF Y EQ 1.
    ls_Price_doc-ref_handle = '000000001'.
    ELSE.
      ls_Price_doc-ref_handle = '000000002'.
    ENDIF.
    *ls_price_doc-PRIC_COND[] = lt_cond[].
    *INSERT ls_con into table ls_price_doc-PRIC_COND.
    INSERT ls_cond into table ls_price_doc-COND_ADD.
    INSERT ls_price_doc INTO TABLE lt_price_doc.
    ls_input_fields-ref_guid    = lv_item_guid.
    ls_input_field_names-fieldname = 'KNUMH'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'KPOSN'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'KSCHL'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'KPEIN'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'STUNR'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'ZAEHK'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'WAERS'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'KBETR'.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    CLEAR ls_input_fields.
    Ls_input_fields-ref_guid    = lv_item_guid.
    ls_input_fields-ref_kind    = 'B'.
    ls_input_fields-objectname  = 'PRIDOC'.
    *ls_input_fields-logical_key = '0001'.
    ls_input_fields-field_names = lt_input_field_names.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    CLEAR ls_input_fields.
    CLEAR ls_Price_agreement.
    Clear ls_cond.
    I kept this under code. loop, for item records.....
    Though the internal table lt_price_doc. is holding all the records, it is updating only one record. can you any one pls guide me ,

    This example works fine for me. Modify it according to your needs...
    Price
                  IF it_item-value IS NOT INITIAL.
                    ls_cond-kschl = 'PR00'. " add price
                    ls_cond-kbetr = it_item-value.
                    ls_cond-waers = st_head-currency.
                    INSERT ls_cond INTO TABLE ls_pridoc_com-cond_add.   
                    index_2 = 1.
                    CLEAR: ls_cond.
                  ENDIF.
    Discount
                  IF it_item-discount IS NOT INITIAL.
                    ls_cond-kschl = 'ZPPP'. " add discount
                    wa_procent_calc = it_item-discount * 10.
                    ls_cond-kbetr = wa_procent_calc."it_item-discount.
                    ls_cond-waers = '%'."st_head-currency.
                    INSERT ls_cond INTO TABLE ls_pridoc_com-cond_add.   
                    index_2 = 1.
                    CLEAR: ls_cond, wa_procent_calc.
                  ENDIF.
                  IF index_2 = 1.
                    ls_pridoc_com-ref_handle = counter.
                    ls_pridoc_com-ref_kind = 'B'.
                    INSERT ls_pridoc_com INTO TABLE gt_pridoc_com.
                    CLEAR: index_2,ls_pridoc_com.
                  ENDIF.

  • How to use comments in tcode v/ld ? We are using price condition PR00.

    HI All,
    How to use comments in tcode v/ld ? if we use text internal comments( Ex: ABCD) in VK12 for Condition PR00.
    Tcode V/LD pricing report as 16 and we need that text comments(EX:ABCD) in V/LD report.
    Suggest me on this.
    Thanks
    Naveen

    Naveen,
    I created an SDN post about this within the past couple of months, unfortunately you would have to customize the reports as there is no standard functionality to display text comments within this report.
    [Text Comments in V/LD Pricing Report needed|Text Comments in V/LD Pricing Report needed]
    Hope this helps,
    Andy

  • FM to create & update Shipment Cost Condition Records (TK11/12)

    Hi All,
       I am looking for a FM which can update Price and Validity dates in existing Shipment Cost condition records and also able to create a new shipment cost condition record.
    I have tried using BAPI_PRICES_CONDITIONS. It returns a success message but no change in shipment cost condtion record
    I have tried giving OPERATION = 009 to create new record and OPERATION = 004 to update existing one. But of no use.
    Can i use any of the RV_CONDITION_* function modules
    RV_CONDITION_MAINTENANCE
    RV_CONDITION_COPY
    If yes then what are the mandatory parameters I have to pass in.
    Or else creating a BDC program for TK11/12 is the option.
    Appreciate a quick and positive response.
    Regards,
    Leona.

    Hi,
       I have used the BAPI 'BAPI_PRICES_CONDITIONS' . In my requirement there was no need to update the scale.
    Hope the below links will help you in solving your issue.
    BAPI for VK11,VK12,MEK1,MEK2
    http://www.sapnet.ru/viewtopic.php?p=765&sid=88b6f60f85501678fc93cd16e187ad61
    Regards,
    Leona

  • Price Condition Update Function Module

    I'm trying to identify the function module that updates the price conditions in a sales document. I know one exists as I used it years ago but can't seem to locate it. It replicates the manual process of clicking the update button on the screen.
    this will be used in visual composer to update pricing prior to further processing of bapi's
    Any help appreciated

    Hi simon,
    Please check the following
    RV_CONDITION_SAVE
    RV_CONDITION_COPY
    SD_SALES_CONDITION_MAINTAIN
    Do you want to add one more pricing condition type to the existing sales order??
    Use BAPI_SALESORDER_CHANGE.
    Hope this help

  • Create Shopping Cart to ref Price Conditions in SRM5 ECS

    Hi there
    I have a question about pricing conditions for ( my systems are MDM2.0, SRM5.0 , ECC 6,  Extended classic  ) 
    Price conditions has a limitation for ECS..meaning? Does this mean we cannot use pricing conditions on the shopping cart level for ESC
    I have a MDM catalog item that will be transfered to SRM. I want to show in my SRM shopping cart my catalog item plus 2 surcharges
    My approach is to apply a pricing condition to my item coming in from the mdm catalog.
    Example: catalog item (is for Services-labour resource): Jr SAP Basis, $90 from supplier XYZ.
    My item is a catalog item ..it has no material master.
    I have created, made entries in SRM server-> cross App basic settings->pricing->Process condition type and Process calculation schema
    I have created in SRM 2 custom condition types that are a percentage surcharge (so for my example it would be % of base price of  $90).
    These condition types are copied form SRM server-> cross App basic settings->pricing->process condition type (01RP u2013Discount%)
    Condition type 1: Z1RBu2026.Burden rate  (5% of $90) 
    Condition type 2: Z1RMu2026Markup rate (10% of $90)
    One of the fileds in Process Condition types is  u201CSource Systemu201D which can be local ie SRM or Other system like SAP R/3
    So my option is to reference the local SRM system( if this can be done here u2026where?) or ref the backend and create these same price conditions types.
    I cant find anywhere in SRM to create a condition table to enter the relationships of my Jr SAP Basis, $90 from supplier XYZ. So that I can associate this info with Burden and markup that changes per supplier
    Hope my scenario is clear and question too
    cheers
    alex
    Edited by: Alex Waiyaki on Sep 9, 2010 7:51 PM

    Hi Virender
    Thanks for you responce. I was going down this pasth of using a shoppingcart form the info on this SAP link below i thought it was possible...
    http://help.sap.com/saphelp_srm50/helpdata/en/72/f40f3c98ddaa4ce10000000a11402f/frameset.htm
    Pricing
    Use
    Pricing is a method of determining prices using the condition technique. SAP Enterprise Buyer uses Pricing when purchase documents are being created, for example, when a shopping cart or purchase order is created. The system automatically determines the gross price and any surcharges and discounts that apply to a specific vendor according to defined conditions. The system uses the gross price and these surcharges or discounts to determine the net price..
    Now handling this requirement on the MDM side...can i use Expressions to do the calculations of these to fields.
    i want 2 unique fields for these to values...that will mean 2 custom fileds to be passed on using the BAdI) BBP_CAT_CALL_ENRICH..
    cheers
    alex

  • Changing Price Conditions in Sales Order with SD_SALESDOCUMENT_CHANGE

    Hello there!
    I need to change the value of a price condition in a sale order ;I'm using the f.m.  SD_SALESDOCUMENT_CHANGE.
    It doesnt' work as I want, 'cause it creates an other price conditions instead of just changing the price value of the actual one.
    Waiting for your tips,
    thanks.
    This is how my code looks like:
    PARAMETER: p_vbeln LIKE vbak-vbeln.
    data: st_order_header_inx   TYPE  bapisdhd1x,
            st_conditions LIKE bapicond,
            st_conditionsx LIKE bapicondx,
            tb_conditions TYPE TABLE OF bapicond,
            tb_conditionsx TYPE TABLE OF bapicondx,
            tb_return TYPE TABLE  OF  bapiret2.
    st_order_header_inx-updateflag = 'U'.
      st_conditions-itm_number = '0010'.
      st_conditions-cond_type = 'PR00'.
      st_conditions-cond_updat = 'X'.
      st_conditions-cond_value = '100'. "Value I want to enter
      APPEND st_conditions TO tb_conditions.
    st_conditionsx-itm_number = '0010'.
      st_conditionsx-cond_type = 'PR00'.
      st_conditionsx-updateflag = 'U'.
      st_conditionsx-cond_value = 'X'.
      APPEND ls_conditionsx TO tb_conditionsx.
    CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
        EXPORTING
        salesdocument                = p_vbeln
          order_header_inx          = st_order_header_inx
        TABLES
          return                           = tb_return
          conditions_in               = tb_conditions
          conditions_inx              = tb_conditionsx  .

    Get the conditions records first from the Sales Order with BAPI BAPISDORDER_GETDETAILEDLIST
    CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
      EXPORTING
        i_bapi_view          = lw_bapi_view
      TABLES
        sales_documents      = lt_order
        order_conditions_out = lt_conditions_out.
    Then populate the conditions internal table with the data that you get from the previous code
    move-corresponding lw_conditions_out to lw_order_conditions_in.
    lw_order_conditions_in-cond_value = '100'   " the value that you want to modify
    APPEND lw_order_conditions_in TO lt_order_conditions_in.
    CLEAR lw_order_conditions_inx.
    lw_order_conditions_inx-itm_number = lv_kposn.
    lw_order_conditions_inx-cond_st_no = lw_conditions_out-cond_st_no.
    lw_order_conditions_inx-cond_count = lw_conditions_out-cond_count.
    lw_order_conditions_inx-cond_type  = lw_conditions_out-cond_type.
    lw_order_conditions_inx-updateflag = 'U'.
    lw_order_conditions_inx-cond_value = lc_x.
    APPEND lw_order_conditions_inx TO lt_order_conditions_inx.
    You didn't populate the fields cond_st_no and -cond_count. Then just call BAPI SD_SALESDOCUMENT_CHANGE to change the Sales order.
    Hope that helps.
    Erwin

  • Price conditions available in contract (MM)

    Hi,
    I created a new price condition and it is not available in tha match code in contract (ME32K).
    How can I customize which condition are available in the contract ? Does it depend on the category of the condition ???
    Thank you for your help,
    Laetitia

    Dear Laetitia,
    a) Please check if this condition type "Manual Pricing" set as allow
    b)Please check if you have include this condition type in your pricing procedure.
    Transaction SPRO:
    MM->Purchasing
    ->condition
    -> Define Price Determination Process
    -> Define calculation schemas
    Regards,
    ian, Wong Loke Foong

  • Enhancing Price Conditions to PO

    Hi Experts,
    I am working on a requirement on PO Price Conditions. It is required to update the price condition of PO according to certain customer fields on the PO line items. I have tried several BAdi with no luck.
    BBP_DOC_CHECK_BADI - cannot actually change the document
    BBP_DOC_CHANGE_BADI - does not offer the price condition information
    BPP_DOC_SAVE_BADI - worse, just provide the document GUI
    tried to use some other function modules (condadd*), but no luck as well.
    those are internal function modules and are coupled with some global variants/checkings
    Anyone has experience on this ?
    Any advice ? Many Thanks.
    Yours,
    Chun Fai

    Thanks Jay,
    I have done a debugging with the function module "BBP_PD_PO_UPDATE".
    However, i found that the function module does not process the price condition at all.
    Internal tables for price documents are always empty.
    Even when a condition is added using the screen control, the price document is not available as well.
    Values manually updated during debug does not take any effect.
    The document information is not full available. (e.g. the header GUID, etc)
    Certainly we can call other function modules to obtain such document informations (BBP_PD_PO_GETDETAIL, BBP_PD_PO_ITEM_GETDETAIL)
    However, I am doubtful as to
    1. whether the function module can handle the information as proposed
    2. whether price document creation, etc, "backend" operations are required if no condition pre-exists
    3. whether there are other side effects
    At the meantime, I am still looking forward to solutions around BAdi, in order to keep the complexity and side effects to a minimum. Enhancement framework has more or less side effects on the existing system functions.
    PS: the price condition function modules i mentioned in the first message are "PRC_PD_ITEM_ADD_COND",  "PRC_PD_ITEM_CHANGE_COND" and  "PRC_PD_ITEM_DELETE_COND".
    Any other experience or recommendations?
    Many thanks.
    Yours,
    Chun Fai

  • Prices&Conditions - Unable to Copying Conditions

    Hi Gurus,
    I have an issue that when I try to use 
    Tx VK12
    Price Conditions PR01
    Sales Org GAMB
    Dist Chan ES
    Customer account 1----
    I highlight materials where conditions are applied and I try to copy over to other customer accounts (at this point I click the icon Copy Condition) but the following message appears:
    Copying is incomplete because no rules have been defined.
    Copying rules for condition type do not contain A 1 V 2 PR01 3 entry
    The same process is successfull when applied to:
    Tx VK12
    Price Conditions PR00 (instead of PR01)
    Sales Org GAMB
    Dist Chan ES
    Kindly explain why is this issue could be arrsing with condition type PR01 and not with PR00 and how can solve it.
    Thanks
    Bawa

    Hi,
    check entries here.
    IMG>SD>basic functions>Pricing>Copy Control For Conditions.
    Regards,
    Chandra

  • Price Condition&Price update are disabled in S.O even after partial invoice

    Dear All,
    We are using manual pricing condition in the Sales Order, when we do a partial delivery and billing for a Sales Order line item, the update prices function (button) is inactive and price conditions are greyed out.
    We are using Pricing Type "C" in the VTFL item copy from Delivery to Billing.
    Even after partial quantity invoicing from the Sales Order there will be pricing changes and users will need to enter manual price for the item that is partially invoiced.
    Currently system does not allow any change in the manual price condition as the all the price conditions are greyed out in the S.O even if partial qty of the line item is invoiced.
    Please let me know what needs to be done to enable manual condition entry and Price update functions in the Sales order even after partial invoice quantity of the line item in the Sales Order.
    Regards
    Venkat

    Hai Venkat,
    This is the standard functionality and system treat like
    sales order conditions once invoiced should be freezed.
    As a work around you can do like
    in sales order order
    Go to Item - Shipping
    Part.dlv./item     B      Create only one delivery (also with quantity = 0)
    Max.Part.Deliv.  1     
    This make only one delivery for the line item
    Considering if you have a material Sales order of 2 KG and you added some manual price.
    And you are doing partial delivery of 1 KG and Invoiced.
    Now user can use the same sales order and create a new line item of the same material and can enter the balance qty and change the condition which is not grayed out.
    Regards,
    Mani

  • Price condition update

    Hi Experts,
    Any ideas how to update prices in scheduling agreements. There is plenty of them. Too much work to do it manually.
    Thanks in advance,

    Hi  Riyaj,
    I got SA docs with many items. For some of them price are blank because in the time of creating documents price conditions were unknown.
    Now I have to update them from price list (vk12: condition - ZPR0).
    I can do it step by step but it takes ages.

  • Update price condition in scheduling agreement (ME32L)

    Hi,
    I have to update scheduling agrrement (ME32L).
    The input data that i would like to update are price amount, validity start date and valdity end date.
    Is there any function or bapi which can be used to update.
    Any help in this would be highly appreciated.
    Thanks,
    Mandeep

    hi
    did you update the conditions and validity period of scheduling agreement?  If yes then plz send me the details of parameters
      ITEM_COND_VALIDITY           =
      ITEM_COND_VALIDITYX         =
      ITEM_CONDITION                  =
      ITEM_CONDITIONX                =
    I am also facing the same issue.
    waiting for your reply.

  • Automatically update of the info record price conditions from last purchase

    Dear.
    I need to massive update the info record price conditions from the last purchase order price for a list of materials.
    Does exist a standard transaction where I can I do this ?
    Thanks.

    hi,
    Yeah, I just checked it..
    Its not possible in Std. SAP system...
    There is no field provided for the same...
    the other way, but doesn't applies to you...as you are doing massive job...
    still if req. then check..
    The other way is:
    Maintain Quotation and ref. it in inforecord...price gets updated easily from it...
    Regards
    Priyanka.P

  • User exit for Price Conditions in VA02 (update,insert or delete conditions)

    Hi folks. I would like to know if anyone of you has already worked with transaction VA02...I need a user exit, which could be capable to: Erase, Update and Insert new Price Conditions.
    Scenario: The user will not enter into the Price Conditions Tab. He will only make some modifications to the document via VA02 and when he saves the document, then the user exit should update, erase or include new conditions based on some logic that the user exit will implement. does anyone know a user exit for this particular case, please !
    Thanks in advance.

    HI,
    Check this.
    V60F0001                                SD Billing plan (customer enhancement) diff. to billing plan 
    V46H0001                                SD Customer functions for resource-related billing           
    V45W0001                                SD Service Management: Forward Contract Data to Item         
    V45S0004                                Effectivity type in sales order                              
    V45S0003                                MRP-relevance for incomplete configuration                   
    V45S0001                                Update sales document from configuration                     
    V45P0001                                SD customer function for cross-company code sales            
    V45L0001                                SD component supplier processing (customer enhancements)     
    V45E0002                                Data transfer in procurement elements (PRreq., assembly)     
    V45E0001                                Update the purchase order from the sales order               
    V45A0004                                Copy packing proposal                                        
    V45A0003                                Collector for customer function modulpool MV45A              
    V45A0002                                Predefine sold-to party in sales document                    
    V45A0001                                Determine alternative materials for product selection        
    SDTRM001                                Reschedule schedule lines without a new ATP check                                                                               
    Business Add-in                                                                               
    BADI_SD_SCH_GETWAGFZ                    Scheduling Agreement: Read WAGFZ from S073                   
    BADI_SD_V46H0001                        SD Customer functions for resource-related billing           
    Regards
    Rajendra

Maybe you are looking for

  • [nQSError: 46115] - Admin Tools: can't import table from database .

    hi all, Need your help, i am using Bi Administration Tool, and i try to import tables from database,but encounter issue: (1)."File->import->from database...",select connection type as OCI 10g/11g, type TNS Name,User Name and Password,then click "OK".

  • Problem in executing a unix command through java

    hi i'm trying to execute unix command through java simple shell command like "ls -l >test " but i'm not able to see the result. there are no error messages. Code is: import java.lang.Runtime.*; class ExecDemo      public static void main(String[] arg

  • Need help about Financials Operating Unit Level Setup data object transforming

    Hi All, We met some issues while using iSetup to create new OU from existing one via 'Financials Operating Unit Level Setup' template and need your help. We can perform Extracting successfully, but when we're tring to proceed Transform, it seems iSet

  • What are crystal reports and dash baords?

    hello friends, what are crystal reports and dash baords? when they use? navagation steps for crystal reports and dash boards? bye srinu

  • Are any Credit Memo with only Values?

    Hi All, I am using 2005A but I have not found a way to issue credit memo for an item with only value (not 'moving' quantity. This is helpful when a client obtains a sales target at the end of year get a credit memo as Sales Bonus. Any Idea? Is it sol