Updating pricing condition

Hi All,
I have encounted a case that user deleted the PO line item after GR, SO invoice.  Our MM expert managed to undeleted the PO line item, but the S.O. pricing condition XP03 does not get updated.  Is there any way we can update the pricing ??  It is a TPO S.O. type, and PO direct deliver to Customer
Thanks & Regards,
Rebella

Hi,
It is possible to cancel the invoice if the configuration allows it, irrespective of the time.
Check in VOFA if your billing document type has a cancellation document type linked to it. If not link the cancellation document and then try cancelling the document. It will allow.
Once that is done,  you have to cancel the PGI (VL09) reverse the picking (VL02N) and then delete the delivery document(VL02N)
Once this is done, the sales document will come to Open status.
Now you can make changes to the condition type based on its configuration in V/06, and then carry out the transaction once again.
Hope this helps you
Pls reward if this helps.

Similar Messages

  • How to update pricing condition in sales in batch in the evening

    Gurus,
    I have a situation where I am supposed to update the freight charge condition type ("ZFR9" in my organization) on a scaled basis, depending on how much the customer (ship-to) has ordered on the same date. Since this changes from time to time, I need to write a program that does the following in the background in the evenings.
    1) Accumulate the wt of the material ordered by the same ship-to customer on the same delivery date.
    2) Find the scaled freight rate from a central universal freight charge table.
    3) Update the ZFR9 by this new frieght rate in all such sales order/line items that have the delivery date in question.
    The problem with using BDC is that the condition type ZFR9 appears on different lines depending on presence or absence of other condition types.
    Also I could not find any BAPI that does the update on a line item pricing condition.
    I am on 4.6C.
    Thanks for any help you can offer me.
    Regards
    Raju

    Guys,
    I am trying to make this work. I am able to add extra pricing conditions to sales order but I can not understand
    - how to change the value of an existing condition type OR
    - how to delete the condition type from the sales order line item
    Here is the sample code that I am using to test this out (most of the information is hard coded so that I can focus on a particular record)
    REFRESH RETURN.
        CLEAR   RETURN.
        REFRESH ORDER_ITEM_IN.
        CLEAR   ORDER_ITEM_IN.
        REFRESH ORDER_ITEM_INX.
        CLEAR   ORDER_ITEM_INX.
        REFRESH PARTNERCHANGES.
        CLEAR   PARTNERCHANGES.
        REFRESH CONDITIONS_IN.
        CLEAR   CONDITIONS_IN.
        REFRESH CONDITIONS_INX.
        CLEAR   CONDITIONS_INX.
        CLEAR SALESDOCUMENT.
        CLEAR ORDER_HEADER_INX.
    Move screen accepted docnumber TO SALESDOCUMENT.
        MOVE P_VBELN       TO SALESDOCUMENT.
        ORDER_HEADER_INX-UPDATEFLAG = 'U'.
        APPEND ORDER_HEADER_INX.
    Move screen accepted line item
        ORDER_ITEM_IN-ITM_NUMBER = P_POSNR.
        APPEND ORDER_ITEM_IN.
    Move screen accepted line item
        ORDER_ITEM_INX-ITM_NUMBER = P_POSNR.
        ORDER_ITEM_INX-UPDATEFLAG = 'U'.
        APPEND ORDER_ITEM_INX.
    Set the condition value
        CONDITIONS_IN-ITM_NUMBER      = P_POSNR.
        CONDITIONS_IN-COND_ST_NO      = '230'.
        CONDITIONS_IN-COND_COUNT      = '01'.
        CONDITIONS_IN-COND_TYPE       = 'ZSR3'.
        CONDITIONS_IN-COND_VALUE      = '333.00'.
        CONDITIONS_IN-CURRENCY        = 'USD'.
        CONDITIONS_IN-COND_UNIT       = 'LB'.
        CONDITIONS_IN-COND_P_UNT      = '100'.
        APPEND CONDITIONS_IN.
        CONDITIONS_INX-ITM_NUMBER     = P_POSNR.
        CONDITIONS_INX-COND_ST_NO     = '230'.
        CONDITIONS_INX-COND_COUNT     = '01'.
        CONDITIONS_INX-COND_TYPE      = 'ZSR3'.
        CONDITIONS_INX-UPDATEFLAG     = 'X'.  " update
        CONDITIONS_INX-COND_VALUE     = 'X'.  " update
        CONDITIONS_INX-CURRENCY       = ''.   " no update
        CONDITIONS_INX-COND_UNIT      = ''.   " no update
        CONDITIONS_INX-COND_P_UNT     = ''.   " no update
        APPEND CONDITIONS_INX.
        WRITE: / 'BAPI Called for', P_VBELN, P_POSNR .     
        CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
          EXPORTING
            SALESDOCUMENT               = SALESDOCUMENT
      ORDER_HEADER_IN             =
            ORDER_HEADER_INX            = ORDER_HEADER_INX
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
          TABLES
        RETURN                      = RETURN
       ORDER_ITEM_IN               = ORDER_ITEM_IN
       ORDER_ITEM_INX              = ORDER_ITEM_INX
      PARTNERS                    =
      PARTNERCHANGES              = 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              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
         CONDITIONS_IN               = CONDITIONS_IN
         CONDITIONS_INX              = CONDITIONS_INX
      EXTENSIONIN                 =    .
        IF sy-subrc = 0.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
               EXPORTING
                    WAIT = 'X'.
    IMPORTING
      RETURN        =
        ELSE.                                           
         WRITE: ' BAPI RETURN CODE = ', SY-SUBRC.              
        ENDIF.

  • CRMXIF_ORDER_SAVE add or update pricing conditions

    Hi Experts,
    I'm working in a requirement where I have to add items into a  quotation via CRMXIF_ORDER_SAVE this is working now. The problem is that I'm not able to add or update  either standar nor "Z" pricing conditions (e.g. XBRT or ZPRU). For this I use the segment  E101CRMXIF_PRCD_COND_XT and E101CRMXIF_BT_PRCD_COND where:
    COND_TYPE = 'ZPRU'
    COND_VALUE = 'value in numbers' e.g. 45
    COND_CURRENCY = 'USD'
    OBJECT_TASK = 'I'
    Do you know if its possible to do it, or if anything is missing?
    Thank you in advance
    Regards
    Donovan L.

    Yes, it's possible I guess the condition which are you talking are manual conditions, right? and you marked the correponding X fields, right?
    Cheers!
    Luis

  • How to update pricing condition type in a cancelled invoice?

    I have one invoice(let say invoice number 01) which did not posted any accounting documents because one condition type in pricing procedure didn't had any record at the time of creation of invoice. so i cancelled the previous invoice and maintained the condition record of the condition type and again invoiced(let say invoice number 02) the delivery which posted the correct accounting documents.
    Now the problem is that when i am going to the invoice number 01 in change mode and trying to update the pricing procedure by going to item level then the system is now allowing to update the pricing procedure as the UPDATE TAB is grayed out and i cant click on it. (is it because for invoice nummber 01 follow on cncllation invoice has been created? or any other reason and is ther a solution for this?)
    action required: i want to update the invoice number 01.

    Dear Manpreet500,
    If the invoice not having the accounting document no need to cancell that invoice.
    In your case you might have done like this without cancell the invoice 01.
    -->Create condition record for the condition type which was missed while creating invoice.
    -->After creation of condition record you just go to VF02 transaction enter invoice 01 then go to condition tab here you can find the Update tab click on the Update tab now system will take you to the Pricing selection screen here you select B- Carry out new pricing now system will consider the condition record for the missed condition type.
    Now you can release the 01 invoice manually by clicking on green Flag.
    You can not update the 01 invoice may be due to the subsequent document cancelled invoice.
    I hope this will help you,
    Regards,
    Murali.

  • Auto Update Pricing (condition types)

    Hi Experts,
    (its in Agency Business Module) T.code WZR1. But pricing is a common functionality in all modules.
    Requirement is to automatically update the pricing type to 'C' when user saves the invoice. No idea if there is any BADI or something like that to do this and what is the function module which does this repricing.
    as of now  user is doing it manually by clicking on Update button & select type pricing type 'C', which adds 2 more condition type in it. ZV01 & ZV02.
    Can anyone please help me on this with the BADI/Exit & function mobule to perform this. If not then any other solution ?
    Regards,
    Nik

    Hi Dear,
    If you are talking about the choices which will comes in picture when you are making condition record, then for this u need to configure at condition table level
    For Example
    1.make a condition table as say 901- with field as Material
    2.Make a condition table as say 902- with field as Material & Customer.
    Repeat this procedure for all entire combination you wants to display while making condition record in (VK11, VK12)
         Now assign the all condition table say (901,902…) to only one access sequence say ZTAS.
    NOW ASSIGN THIS ACCESS SEQUENCE TO CONTDITION TYPE SAY ZTSP.
    So when you will make condition record for this condition type you will confront will all options
    hope this has cleared your ideas.
    If you want any more clarification do reply me.
    DONT FORGET TO REWARD POINTS
    Thanks & Regards
    Tushar
    SAP SD, SAP BI
    9822984340

  • Pricing condition not geting updated

    Hi
    I'm trying to update pricing condition through BDC using TCode va42. It's working fine in quality but failing in production. What could be the reason.
    Thanks

    hi
    good
    if you are trying to update the pricing condition using the BDC recording then it may happen sometime that some your recording screens wont work proplerly in the production server so it wont take the appropriate data from the flat file.
    Please debug the code in producation to point out the field which is not working properly than you do the recording again .
    Hope this will help you to solve y our problem.
    Thanks
    mrutyun^

  • HI... Create\Update pricing in Purchase Info Record

    Hi Guru's,
    I have got requirement to create or update the pricing condition in purchase info record (PIR).I have used below function modules to create or update General and purchase information for PIR but using those function module, im not able to create or update pricing condition..
    ME_INITIALIZE_INFORECORD
    ME_DIRECT_INPUT_INFORECORD  - Create new entries in PIR
    ME_MAINTAIN_INFORECORD - Change the PIR
    ME_POST_INFORECORD
    I have tried the below function module to create or update pricing condition,here issue is function module successfully executed but it was not upating PIR.
    ME_PRICING_REFRESH
    ME_PRICING_DIALOG
    ME_PRICING_INFORECORD
    Could you please provide any sample code / function module to update the pricing condition in PIR.
    Thanks in Advance.

    Dear Shivakumar,
    Can you kindly provide sample code for the function module MASS_CHANGE_PURINFO_REC? I found it is difficult to figure out how to populate the import parameters. And the Where-used function didn't return any result, so I can't even refer to the standard program. Thank you!
    Regards,
    Arwen

  • Tax is not getting updated in Sales Order Pricing Conditions

    Hi ,
    Tax is not getting updated in Condition of sales order when creating Sales order but when we click on update button it is calculating correctly.
    Following are the changes for in the standard Pricing:
    1) Created ZPSC condition type to calculate the sur-charge from Z-table
    2) ZPR0 Condition type to calculate the sum of PR00 and ZPSC
    So tax has to be calculated based on the ZPSC value, but it is calculating the tax based on the PR00 base price.
    We implemented the logic for updating values of  Amount and condition values for ZPSC and ZPR0 by creating custom Routine 904 in Calculation types and assigned the routine in Pricing Procedure.The correct values are coming till NET VALUE 3 but tax is calculating based on the PR00 net price.
    I debugged the code for Tax Routine the value for Net value (NETWR) is the base value price but displaying correctly in Net value screen of Conditions tab.
    Please suggest how to update the Tax values correctly without manual update.
    Thanks ,
    Rajesh Sanapala.

    Hi Lakshmi,
    I am using a TAXINN procedure.....to correct my self can u brief me abt the CIN configuration settings required from SD point of view......how many tax codes have to be maintained for capturing the BED,EDCess,SHED cess,VAT,CST and what are the condition types required for capturing the same.....
    I am using JEXQ-A/R BED ......for capturing the BED....and so on ......I feel that i have missed out on some settings ,thats why few conditions are getting captured and some are not.....It would be great if you ca nhelp me on this.
    Thanks
    Ivy

  • How to update the pricing conditions in Products.

    Hi All,
    I have created a Product Using  Function Modules. Now i need to update the Pricing Conditions into it. Can anyone suggest me with  the exact Function Module and Tables that are used to Update the pricing conditions?Can anyone provide me with a sample report program written to update the pricing conditions.?
    Points will be awarded for useful answers.
    Thanks In Advance,
    Shwetha Korlepara.

    Hi,
    Can you check if these FM's are useful:
    CRM_MKTPL_GET_BP_SALES_AREAS
    CRM_MKTPL_AL_FILL_PRODUCT
    Hope this helps.
    Regards,
    Anup

  • BAPI_PO_CHANGE, Pricing condition valueis not updating

    Hi Experts,
    I need to update the one of the Pricing condition amount in PO.
    I am using BAPI_PO_CHANGE by passing PO number, POCOND
    and POCONDX.
    i need to update the pricing condition amount say from 10 to 15.
    I am passing the same in POCOND-COND_VALUE = '15.00000'
    and CHANGE_ID = 'U'.
    Please let me know the sol, Definitely points will be awarded.
    or cant we change the pricing condition value by BAPI. Please confirm.
    Thanks,
    Shaik Bhasha

    Hi,
    I believe you can use this BAPI to PO conditions..
    Check this code..
    PARAMETERS: p_ebeln LIKE ekko-ebeln.
    DATA: t_poitem LIKE bapimepoitem OCCURS 0 WITH HEADER LINE.
    DATA: t_poitemx LIKE bapimepoitemx OCCURS 0 WITH HEADER LINE.
    DATA: t_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    DATA: t_cond LIKE bapimepocond OCCURS 0 WITH HEADER LINE.
    DATA: t_condx LIKE bapimepocondx OCCURS 0 WITH HEADER LINE.
    t_poitem-po_item = '00010'.
    t_poitem-net_price = '17.00'.
    APPEND t_poitem.
    t_poitemx-po_item = '00010'.
    t_poitemx-net_price = 'X'.
    t_poitemx-po_itemx = 'X'.
    APPEND t_poitemx.
    t_cond-itm_number = '00010'.
    t_cond-cond_type = 'P000'.
    t_cond-cond_value = '17.00'.
    t_cond-currency = 'USD'.
    t_cond-change_id = 'U'.
    APPEND t_cond.
    t_condx-itm_number = '00010'.
    t_condx-itm_numberx = 'X'.
    t_condx-cond_type = 'X'.
    t_condx-cond_value = 'X'.
    t_condx-currency = 'X'.
    t_cond-change_id = 'X'.
    APPEND t_condx.
    CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
    purchaseorder = p_ebeln
    TABLES
    return = t_return
    poitem = t_poitem
    poitemx = t_poitemx
    pocond = t_cond
    pocondx = t_condx.
    COMMIT WORK.
    The above code works fine for me...
    Thanks,
    Naren

  • Mass update of Third Party Vendor at PO Line item pricing condition

    Hi All,
    We have requirement from business as follows:
    We are using item level condition for Lumper Charge in PO and it is for Third Party Vendor. We maintain vendor in pricing condition record so it will be automatically populated while PO is created. Recently vendor is changed so we have also updated new vendor in pricing condition record so it will be taken care when new POs will be created. But there are thousand open POs in which new vendor needs to be updated.
    Is there any way to mass update third party vendor at PO line item level?
    Relevant pointers will be rewarded.
    Regards,
    Tt

    Hi,
       You may check the following options:
    1. If the freight vendor was pulled through condition record, then change the vendor in the condition record and update the pricing in MEI1. Refer the KBA: 1819416 - Condition records not getting updated automatically when using MEI1/MEI4
    2. If the condition is manual condition, there is no option to mass change the vendor in standard, as of my knowledge. You may create a custom program to change the vendor in the PO. Refer the similar thread: Mass update of freight vendor in PO condition
    Regards,
    AKPT

  • MM Pricing Condition Type values in Condition Tab updation while CHANGE PO.

    Hi,
    The process of PO creation and PO change is through inbound IDOC posting.
    I created a PO with configured MM pricing procedure.
    While creating PO, the PO is created as required with different Condition Type value break-ups [PBXX, Discount, Surcharge etc] in the PO as required via Inbound IDOC processing.
    While CHANGING the same PO, the Condition Type break-ups [i.e. pricing related values] in the PO are NOT changing in the PO via Inbound IDOC processing.
    What needs to be done to update the Condition Type break-ups in the PO while changing PO through IDOC processing process?
    This problem is not occured while manual / on-line changing of PO valueS and saving the PO & exists through IDOC processing method ONLY.
    Thanks in Adv,
    RK

    Hi
    Try this function module
    FM RV_CHECK_CONDITION_VALUE
    Regards
    Hareesh Menon

  • How pricing condition be auto updated if the user changes price in PO ?

    Hi
    Is there any configuration setting on how pricing condition can be automatically updated if the user changes price in the purchase order ?
    Thanks
    Maruthi

    Hi Maruthi,
    As far as I know, POs (like many other documents in SAP) are "snapshots" of data as it was at the time of the document creation.  This snapshot has no direct link to master data, so it will not change unless you go to the document and manually change/refresh whatever data you need updated. 
    Even if there were a way to link your PO to master data to auto-update I don't see how any change on a PO could go backwards and change master data.  Pricing works the other way around - the PO takes the price from the condition records, not the records from the PO.
    Hope this helps,
    J

  • Update value of Pricing condition

    Hi all,
    I am having existing custom program in which sales order get display through ALV. and when user select records through ALV and execute, All pricing conditions of selected sales order gets updated. For this BDC is written( in which Update button is clicked on condition tab at line item in sales order)
    My requirement is to add new field for pricing condition on selection screen.  and if user  puts any pricing condition on the field,  only that pricing condition should get updated with new value for selected  sales order. It should not update all the pricing condition for the sales order.
    Problem: I can not use BDC in this particular case because if i use Update button on condition tab(line item ) in sales order  on BDC, it will update all the pricing condition of sale order.
    Question: How i will trace new value of any pricing condition. Functional are saying that it is maintained in VK13. If this is a case
    then
    1)How I will come to know in which config table, Condition record exist  i.e New value of pricing .
    2)Each pricing Condition will have multiple condition tables ( Lot of combinations) and I will come to know about the tableu2019s    only at runtime. For getting the values from  table I need the value of there respective key fields.
    How I will get the values of all the key fields of  the condition tables ?
    If there is any better way to get the new reprising value of pricing condition please let me know?
    Thanks in advance

    Hi,
    Please check if any other standard pricing types suits your requirement.  Assuming that your current pricing type is 'B'-carry out automatic pricing. So, when you update pricing, you can choose the best that suit your case.
    [http://help.sap.com/saphelp_46c/helpdata/en/dd/560f03545a11d1a7020000e829fd11/content.htm]
    Regards,
    P Gomatheeswaran

  • Net value not being updated from Pricing Element/Pricing condition

    Hi All,
    User confirm activity of 40 hours in CJ20n of Project System. When we are creating RRB(Resource Related Billing) request for billing of 40 hours using DP91, Net Value is coming Zero where as pricing condition for the item is upodating Basic Price from quantity of 40 hours.
    Please adise, why Net Value field is not being updating.
    Regards
    Rajesh

    hi monty,
    first of all please check the validity and other criteria by which sytem populates the pricing records in to the sales order.
    this can be easily done by refering to past "pricing" posts.
    also
    kindly check on the reference status whether this order is getting referenced and pricing values from a preceeding document like  sales quotation,because if the conditions mentioned by you are not in the preceeding saes document then it will not get populated ,hence you have to update pricing by going on to the conditions tab,
    update me so that other solutions can put to you
    regards
    Mohit Singh

Maybe you are looking for

  • IPhoto Bug - Every time try to change date, date moves back 100 years

    You will like this bug. Somehow an incorrect date was entered on the videos in iPhoto. Now, we try to enter a correct date of 2/1/2011 using iPhoto->Photos->Adjust Date Time and the dates just keep going back approximately 100 years. Currently, the d

  • Visibility of SAP content (webdynpro iviews) in SAP GUI for windows

    Hi Is it possible to view SAP created webdynpro for ABAP content (previously only used through portal) through the standard GUI for Windows. Even if it is a transaction that kicks off a url, that links to this webdynpro iView, but the backend needs t

  • HELP! imac is cutting off

    Out of the blue the computer shuts off...has anybody had this happen and how do I fix it. I have a g5 imac purchased in 2005 with no problems up to now. Any help would be appreciated.

  • Retina Display..... or gaming PC?

    Hi everyone, I'm in the market for a new computer, currently using my 27" iMac from 2009. What I purchased it in '09 I maxxed out all the specs to get the longest time out of it. 3 years later, that time has come. The time to upgrade. When the MBP w/

  • Allocataion table creation

    Good mornig to all. I have a question in order to create allocation table via external data. Is there in the system an IDOC or Function Module in order to do that ? Thanks in advance Regards Andrea