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.

Similar Messages

  • 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

  • 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.

  • 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

  • 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

  • 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.

  • Price conditions on Sales Orders via EDI

    Hi,
    I need to know if there is a way to bring prices over on the IDOC while posting a sales order via EDI. I have a situation where the price does not have to be determined based on condition records setup within SAP but rather update the price sent on the IDOC itself.
    Thanks
    MR

    Hi,
    Let the inbound Idoc have the price field and the price of the material. And keep the price condition type open/manual entry allowed. Once this is done the system will not do it from the condition record and will populate the data that is there in the Idoc.
    Hope this helps.
    Kind Regards
    Chakradhar

  • Condition update in sales order

    Dear All,
         I am trying the condition update functionality in the condition records. The condition type is a discount condition type maintained in percentage.
    I have updated the check box in the condition type and created a new condition record with the maximum allowed value for it.
    But when i create the order, delivery and billing the condition record is not getting blocked and the system is not giving the warning message even the value exceeds the amount given in the additional tab in the condition record.
    Regards,
    Parthasarathy.R

    Hi Partha,
                     Creating condition update is a special scenario.Let us take the following Scenario.Company xyz decides to sell a new product ABC for a discounted price ,say,Rs 100 until the cumulative value of the dicount reaches 10000.This means that effectively for the first 100 orders this special discount is applicable.Once the first 100 orders are raised then the system automatically stops processing that special discount.But it never blocks the order.
    Regards,
    K.V.S.Phani Prasad.

  • ME22N change Exchange rate type at price condition level

    Hello,
    In ME22N exchange rate type is 'M' by default. When a price condition has currency different than purchase order this 'M' rate is used.
    Now I need to change this 'M' rate but for particular price conditions (and exchange rate type can be different for each price condition). Don't ask me why:-) This requirement comes from business consultant and he knows that there is no user exit for this. I need to modify standard. The problem concerns items price conditions.
    I'm not asking you for a complete solution, but maybe you can give me a hint where to start? What is the function module which perform price calculation (where exchange rate is used) in ME22N.
    I tried to change KOMK-KURST in price condition rule (the procedure which is called to check if price condition has to be calculated or not). It is called for each price condition and I know a name of price condition. But I think the exchange rate type is read at the beginning and stays unchanged even I changed KURST.
    I also found function module READ_EXCHANGE_RATE, which has rate type 'M' by default. I could put my modification in place where it is called. But it is not called when I press button Update price. It is only called when I change the currency of condition and press enter. This FM is called in few places in ME22N but not when I'm refreshing prices. Maybe during a refresh it has already an exchange rate? If so, READ_EXCHANGE_RATE could be a solution, but... It is not called when price conditions are created for the very first time (when I create PO item). Maybe system calls different FM?
    I also tried to use trace (ST05) to see where systems reads from TCURR, but I think some buffers are used and TCURR is not in trace.
    So now I'm stuck hoping for your help.
    Best regards
    Rafal

    Prabhu Peram wrote:
    Hello Rafal ,
    >
    > still im trying to understand your requirements , anyhow if you change/propose new exchange rate at header level , then system wont put type as 'M'.
    >
    The problem is that if I set a new exchange rate type, it will be the same for all price conditions. My requirement is to have different exchange rate type for each price condition. The pricing procedure will loop at each price condition, and depending on condition name I need to have different exchange rate type.
    Example:
    condition XMER is in EUR and must be converted to USD (factor should be 1,234)
    condition XMET is in EUR and must be converted to USD (factor should be 1,567)
    Now the factor is the same for all price conditions.
    I have found interesting table XKOMV. It contains price conditions and there is a field with factor value. Now I will look for the place where this table is filled with data or for the place where I can modify factor values before XKOMV is used in pricing procedure.
    Best regards
    Rafal

  • Purchase Info record price conditions

    Hello Gurus,
    My client wants to extract their Purchase Info Record in R/3 to the BW Environment. This I have already done.
    The problem now is that my client wants to see the price conditions associated to the Info Record. To see the conditions you have to select validity time period first and only after that you have the prices associated.
    Do you know if there is a way to transfer this kind of data to BW without creating a custom DataSource?
    Best regards

    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

  • We are not able to track how PO net price got updated for 1 purticular mat.

    Hi SAP Gurus,
    We are not able to track how how price got updated, because there is no PIR for this material, standard price maintained
    in the material master diffrent than PO price, and last/earlier to this PO price is also diffrent. And not able to see any price changes for this line item.
    Other than this can we track or check regarding PO net price for the material.
    Thanks and Regards,
    SHARAN.

    Hi,
    Check the item detail->conditions->analysis.
    You can know from where the price got picked.
    Also check whether the material has any manual conditions (MEK*)
    Mayil

  • Price condition entered as a new line in billing document - how to prevent

    I have  a price condition that comes from VK11 but given ' manual entry has priority " so that condition rate can be changed in sales order. Through copy controls I have made it uneditable in billing by giving pricing type as "E"
              But in  billing the system is allowing a second line of price conditon in addtion the one copied from sale order.  i.e PR00 condition type enterd twice . When I do 'update pricing" , the new entry is taking effect.
    How do I contain PR00 from entering for the second time in billing document ?
    Regards
    Mahesh

    Dear Mahesh,
    Are you using different "Pricing Procedure" than the one, used in Sales Order?
    Also, Try to maintain the Pricing Type as "G" or "D" in Copy Control Settings.
    Best Regards,
    Amit
    Note: In T. Code: V/08
    Check the various column-entries for Condition Type: PR00 in you Pricing Procedure, such as "Steps", "Counters", "Requirement", "CalTy" and "BasTy" etc...

  • ABAP: How to add a Price Condition Item to an order item

    Hi experts,
       Is it possible to add a Price Condition Item to an order item by BAPI or Function in sap crm? (like: 0k04 10 USD 1 EA)

    Hi,
    You need to use CRM_ORDER_MAINTAIN and have to use structure IT_PRIDOC to update or add new pricing data.
    But do remember, you have to call FM 'BAPI_TRANSACTION_COMMIT' once you are done with call to FM CRM_ORDER_MAINTAIN, else all your updation will remain in buffer and will have no effect in Database, which will let u feel as if things are not working they should be.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • Loading custom price condition table

    We have a custom price condition table for intercompany price.
    This table needs to be updated monthly from a file generated from another system not on SAP.
    BDC is one way of doing it, but that takes too much time.
    Is there any other simpler way of achieving the same ?

    Hi
    Have your tried LSMW.  You can upload conditions using LSMW.
    Regads
    Yatin Thakkar

Maybe you are looking for

  • How do I move one song from an itunes library to another on same computer?

    We share one computer (Mac - powerbook) in the household. We have an Itunes set up with two libraries (so we can manage our own ipod playlists, etc.). On occasion we want to move a copy of a song over to the other's library (cause they like the song

  • Is it ok to query tables/views that are not in the reporting database?

    I have a requirement to show when a resource submitted/modified each of the items in their time sheet I found that we can get in this information by going directly to the publishing table MSP_Assignment_Transactions but it is well documented that acc

  • What is Material master workflow

    Hi gurus , Can anybody explain what is Material master workflow & Function Module ?what is its use? Dev Edited by: dev .. on Oct 15, 2008 8:21 AM

  • BAPI creating incorrect Item Texts

    Hi all I've got a problem where sales orders and credit notes get created via BAPIs but sometimes an item text from the previously created record appears on the following record. Background The process is as follows: 1. XI creates a bunch of IDocs co

  • Adding a song to iMovie duplicates itself

    After I add the song to my iMovie, it starts to play and then a second later it starts again, therefore duplicating the song.   How can I fix this.