Condition Values deletion

Hi Experts,
i had a sales document having condition some condition types with values.
ZRPA condition type for which the condition values are entered manually not from condition records.
How to delete these values or these rows from my sales order.
Where these values are stored?
is there any bapi / function module to delete condition values from Sales order...
Pls tell me.
Thanks in advance

Hi,
pls try the Following FM 
Hope they will be of some help ..
SD_SALES_CONDITION_MAINTAIN
WB2_DETERMINE_SALES_CONDITION
SALES_CONDITIONS_TABLE_DISPLAY
SALES_CONDITIONS_DIRECTLY_READ
SALES_CONDITIONS_POSTE
SALES_CONDITIONS_READ
SALES_CONDITIONS_READ_KVEWE_A
SALES_CONDITIONS_READ_KVEWE_N
regards
ravi aswani

Similar Messages

  • CO-PA: value field correction due to miscalculated SD condition value

    HI,
    we are using ECC 60 SP11. Due to incorrect condition value calculation in SD this condition value (only used in CO-PA) is posted on a CO-PA value field causing wrong CO-PA results.
    As the SD document (invoice) will not be changed anymore a reversal/reposting in CO-PA (ke4s) does not solve the problem.
    My idea of value correction (only in CO-PA, I do not care about KEAT in that case...) is to use RKECADL1 to logical delete the old documents and to create a LSMW for ke21n to repost the documents again with the right value for the affected value field.
    The question is, the document reference of the old (wrong) CO-PA document shows the billing document and its logical deleted by RKECADL1. My new document does not have a document reference to this billing document as the document source is ke21n.
    Any idea how to "change" the document reference in a way that document flow for the billing document shows the ke21n-created document (with the right condition value)?? If I don not change it, document flow will not show any CO-PA document for that case (the old one is logical deleted, the ke21n-doc. is not linked to it)
    I want avoid manual changes in Ce1**** as its a dirty solution and I am not completely sure if/which other tables are affected.
    Best regards, Christian

    The only way to effect the document flow is to cancel and repost the document.   if that is not possible then KE21N - Create Line Items will fix your issue in COPA but this will not appear in billing.  You  can enter data fields that coonect to billing doc etc.
    pts appreciated.

  • BAPI_SALESDATA_CREATEFROMDAT2 Changing Condition Value

    Hi,
      when I use  BAPI_SALESDATA_CREATEFROMDAT2  to changeing condition value
      wa_order_conditions_in-itm_number  = '000010'.
      wa_order_conditions_in-COND_ST_NO  = '010'.  
      wa_order_conditions_in-COND_COUNT  = '01'. 
      wa_order_conditions_in-cond_type   = 'PR01'.
      wa_order_conditions_in-applicatio  = 'V'. 
      wa_order_conditions_in-cond_value  = '1900'.
      wa_order_conditions_in-currency    = 'RMB'.
      wa_order_conditions_in-cond_p_unt  = '1'.
      wa_order_conditions_in-cond_unit   = 'PC'.
      wa_order_conditions_inx-itm_number = '000010'.
      wa_order_conditions_inx-COND_ST_NO = '010'.  
      wa_order_conditions_inx-COND_COUNT = '01'.    
      wa_order_conditions_inx-cond_type  = 'PR01'.
      wa_order_conditions_inx-updateflag = 'U'.
      wa_order_conditions_inx-cond_value = 'X'.
      wa_order_conditions_inx-currency   = 'X'.
      wa_order_conditions_inx-cond_p_unt = 'X'.
      wa_order_conditions_inx-cond_unit  = 'x'.
      APPEND wa_order_conditions_inx TO  
             i_order_conditions_inx.
      APPEND wa_order_conditions_in TO
             i_order_conditions_in.
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
           EXPORTING
                order_header_in      = wa_order_header_in
                order_header_inx     = wa_order_header_inx
           IMPORTING
                salesdocument        = salesdocument
           TABLES
                order_conditions_in  = i_order_conditions_in
                order_conditions_inx = i_order_conditions_inx.
    run it i get a Sales order when i look the item conditions
    i found it add a new condition line like :
      PR01 1800.00  RMB ... (automatic price which can
                             be deleted and modifide manual  
                            in 'VA02')
      PR01 1900.00  RMB ... (I expected)
    but I only want to get one line
      PR01 1900.00  RMB ...
      now i don't know the reason,
      my version is R/3 3.6C
      wa_order_conditions_in-itm_number = '000010'.
      wa_order_conditions_in-COND_ST_NO = '010'.  
      wa_order_conditions_in-COND_COUNT = '01'. 
    '000010','010', '01'
      is found in BAPISDORDER_GETDETAILEDLIST by creat in va01 and look it in BAPISDORDER_GETDETAILEDLIST.

    Hi Pan!
    The handling of the conditions is quite tricky. Have a look at OSS 593246 for some hints.
    Have also a look in some other linked topics:
    BAPI_SALESORDER_CHANGE conditions
    BAPI_SALESORDER_CHANGE- No Pricing Condition Change
    Regards,
    Christian

  • Condition Values not being copied when creating sales order with reference

    hi experts
    i am copy a sales order with reference in va01 , when i copy the order it status is shown as incomplete beacue the condition values in some condition type sis zero, whereas if i delete amount for some condition type and re-eneter it the condition values for all conditon types appears ...
    in all after copying order i go to condition at item level some codition values are zero but if erase amount for any condition type and then re enter it value comes for all condition types

    Hi Sunny,
    Maintain some value against that condition type in VK11.
    This must solve your question. Please set to resolved if it solves your doubt.
    Regards
    Abhii....

  • Protect Condition Value Column in VA01

    I have a security problem on my sales orders: If somebody adds a line and enters the discount Z condition and some number on the value column, SAP updates the Order without going thru the regular checks of discount limit which it does on the amount column.
    What I want is to put an if to check if the Amount column its 0, to delete the number on the condition value column, I have tried with ' ' but the value turns to cero and it does not show an error.
    Here its the code:
    IF xkomv-kbetr = 0.
            MOVE '' TO xkomv-kwert .
            MODIFY xkomv INDEX sy-tabix.
        ENDIF.
    Regards,
    Carlos
    Edit: or if somebody knows how to make screen input = 0 (gray) for the Value Column that would be great.
    Edited by: Carlos Salazar on Jul 9, 2010 4:09 PM

    turns out 0 its correct as it will not get saved.

  • Decimal space problem in Condition value of Import PO

    Dear All,
    In PO the condition value found to be 0.00.
    When the problem explored,we find only 2 decimal places appears for the value.
    If the value is 0.0021,it appears as 0.00 only due to decimal space given in KOMV(structure) against KWERT field is 2 decimal space only.
    Can we increase the decimal space?If we increase to 4,what will be the effect or NO effect?
    Please advice.
    Regards

    You can do this in OY04 - Set Decimal Places for Currency Code
    But this is not preferred when you execute this transaction the system gives teh following messages
    Information: Caution: The table is cross-client
    Warning: In a productive system, you 
    must not delete the            
    currencies in use or change the
    decimal places.                
    This could make amounts in     
    documents already posted       
    incorrect or invalid.          
    Warning:
       Before you continue, please read the foll
       text carefully.                         
       If you do not heed this note, you can cau
       irreparable damage to the system with thi
       transacton.                             
       In the R/3 System tables currency fields
       stored as decimal figures with a variable
       of decimal places. The decimal point is n
       stored in the field in the database. Inst
       each currency field refers to a currency
       field. In this transaction you assign the
       of decimal places to this currency key un
       Example: If you have set currency USD to
       two decimal places and you post an amount
    USD, an amount of 10000 USD is stored
    currency field in the database. Not un
    amount is processed further or is outp
    the system use the currency key from t
    reference field to determine the numbe
    decimal places via this table. In this
    table content can be interpreted corre
    further processing or formatted for ou
    the correct punctuation.             
    If after posting you changed the numbe
    decimal places for USD, for example, t
    existing field content of 10000 would
    interpreted for futher processing or o
    10 USD (10.000). This would mean that
    contents of tables across the system w
    all currency fields containing an amount
    be interpreted incorrectly by 10 per cen
    change the number of decimal places for
    currency already in use, you must conver
    the tables in the R/3 System that contai
    currency fields, so that the data integr
    remains. This cannot, however, for both
    organizational reasons and under the run
    aspect be carried out in a productive sy
    The following changes to the TCURX table
    thus lead to the loss of data integrity
    make the changes in a productive system
    transport them into a productive system:
    o Change to the number of decimal places
      existing currency                    
    Do you want to change the decimal places
    all recommendations?                    
    If you Click Yes Button then the system takes you to "Decimal Places for Currency Code" Screen
    there you can change the decimal place of your currency

  • Condition is deleting in R/3 for CRM order change

    Hi  Experts,
    I am Creating an Order in CRM (For Configuraable Material) and I can see Order created in R/3 with all condition records at item level.   When I change the Sales Order in CRM, one particular condition record EK02 is deleting from Conditions.  I applied 912697, 1225191, 1306890, 1389867, 1388898, 1062881, 1355049 Oss notes to resolve this issue.  But there is no use. 
    Can any one help me to resolve this issue.
    Thanks
    Ramana

    Hi Nilesh P,
    Have you set the parameter PRICINGTYPE to G in table SMOFPARSFA as per note 490932 - 'G' = Copy price components unchanged. If so then the only possibility is to debug the transfer to ERP as per note 656823 in order to determine where the condition value is initialized.
    I hope this helps.
    Kind regards,
    Vanessa.

  • Condition value in SD is multiplied every time

    Hello,
    I have one pricing condition (ZH03) which is manualy entered at header level. If I press Activate, this condition is copied to each item (I have 2 items in my test invoice) with the same value. But after every reload of pricing scren, condition value is doubled, so final price is going higher and higher, which is good for as but not so convenient for customer
    Does anybody have similar experience or some advice to me?
    Thanks&regards

    Hello,
    thanks for answer, but I already have this tick in customizing and it doesn't help. Here is the maintenance of the condition:
    Cond. class A
    Calculat.type B
    Cond. category F
    GroupCond X
    RoundDiffCond X
    Header condit. X
    Item condition X
    Delete X
    Amount/percent X
    Scale basis C

  • Max condition value - didn't reset when SO was rejected

    Hi All,
    I need some help.
    Requirement:
    Need to set a max discount value for certain material.
    Config:
    A condition type for discount ZD36 is created:
    - Cond.Class : A (Discount or surcharge)
    - Calc.Type : A (%)
    - Plus/Minus: X (Negative)
    - "Group Condition" flag marked
    - Manual entries : D (Not possible to process manually)
    - "Condition Update" flag marked
    - Scale Basis : C (Quantity scale)
    - Check value : A (Descending)
    Setting:
    VK11--> Additional sales data --> Max condition value --> 900- (Valid from today until 31.12.9999)
    Testing:
    1. Create SO with full discounts (Value : 900-)
    2. Reject the first SO by:
       - Order reason: Z02 (Cancel Order)
       - Reason for rejection: 13 (Cancel Order)
    Problem:
    When I tried to create another SO, the condition type for discount ZD36 didn't show up.
    I think this is a basic thing which should have worked.
    Something wrong with my config?
    Thank you very much.
    Best regards,
    Wira Handika.

    Hi ta.adithya,
    I already find 2 ways to reset the cummulative value:
    1. Delete the first SO or
    2. Delete the line item in the first SO.
    Is there a way to reset the cumulative value simply by reject SO?
    Because we want to keep track to all the changes, so we don't want to delete anything.
    Thank you.
    Best regards,
    Wira Handika.
    Edited by: Wira Handika on May 25, 2011 11:22 AM

  • JASS condition value not multiplying

    Dear All,
    I have a small issue, wherein condition record has been maintained for JASS (material assessable value) as INR 200 per piece with calculation type C (changed from B to C).
    In both the scenarios of calculation types being B or C; for example if there is an order of 10 pieces of the material; condition value in the line item Condition tab is showing as only INR 200 instead of INR 2000. JASS is made statistical in the pricing.
    Kindly suggest if there is any error in maintaining the condition record.
    Thanks and Regards
    Adithya

    Thanks Shiva Ram
    Actually I had made a mistake by not deleting the earlier condition record which I had maintained in a different key combination. Now it is working fine.
    Thanks for your suggestion.
    Regards
    Adithya

  • BAPI_CUSTOMERQUOTATION_CHANGE - error while changing a condition value

    Hallo Gurus,
    I am trying to use tshi BAPI BAPI_CUSTOMERQUOTATION_CHANGE to change a condition value of a condition record of a quotation.
    Every time I execute the BAPI, instead of the condition tyoe being changed, a new record is added to the list of conditions!
    Can someone please help!
    Thsi is my piece of code::
    itab_BAPISDH1X-UPDATEFLAG = 'U'.
    append itab_BAPISDH1X.
    itab_BAPICOND-ITM_NUMBER = '10'.
    itab_BAPICOND-COND_ST_NO = '31'.
    itab_BAPICOND-COND_COUNT = '00'.
    itab_BAPICOND-COND_TYPE = 'ZST3'.
    itab_BAPICOND-COND_VALUE = '15.00'.
    itab_BAPICOND-COND_UPDAT = 'X'.
    append itab_BAPICOND.
    itab_BAPICONDX-ITM_NUMBER = '10'.
    itab_BAPICOND-COND_ST_NO = '31'.
    itab_BAPICOND-COND_COUNT = '00'.
    itab_BAPICONDX-COND_TYPE = 'ZST3'.
    itab_BAPICONDX-UPDATEFLAG = 'X'.
    itab_BAPICONDX-COND_VALUE = 'X'.
    append itab_BAPICONDX.
    CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
      EXPORTING
        salesdocument                = p_vbeln
      QUOTATION_HEADER_IN          =
        quotation_header_inx         = itab_BAPISDH1X
      tables
        return                       = itab_BAPIRET2
       CONDITIONS_IN                =  itab_BAPICOND
       CONDITIONS_INX               =  itab_BAPICONDX
    Thanks!
    Mukta

    Hmm...
    Change the following....and check..
    itab_BAPICONDX-ITM_NUMBER = '10'.
    itab_BAPICOND-COND_ST_NO = '31'.
    itab_BAPICOND-COND_COUNT = '00'.
    itab_BAPICONDX-COND_TYPE = 'ZST3'.
    itab_BAPICONDX-UPDATEFLAG = 'X'.
    itab_BAPICONDX-COND_VALUE = 'X'.
    append itab_BAPICONDX.
    "change the above to.....
    ab_BAPICONDX-COND_TYPE = 'X'.
    append itab_BAPICONDX.
    The BAPICONDX.. should contain only X.. in the fields which you want to update.. try this change..and let us know if it works.
    Also have a look at the FUNCTION MODULE DOCUMENTATION for this bapi in SM37.
    Cheers...

  • BAPI_PO_CHANGE, changing condition value in the purchase order

    Hi Friends,
    I have a requirement,
    a flat file is present in the application server that contains the information about PO,PO-ITEM,Condition type, movement type , condition value, plant, storage location .
    And i m calling the bapi "BAPI_PO_CHANGE" and passing the po number to it.
    the bapi returns the following tables, i_return, i_header,i_cond, i_item,i_itemx.
    But the purpose of calling the BAPI is, to check, if the condition value in the specified PO is '0', then it has to replace with the value of condition type present in the flat file.
    But when we check the tablei_return, its shows error type.
    And the PO is not updated with the new  condition value.
    Help me out in sorting this problem, by telling me
    what value is to be passed to the respective BAPI and what should i do to solve the issue?
    and after that i m using a BAPI " BAPI_GOODSMOVEMENT_CREATE".
    and it is for the purpose of creating the GR(Goods Receipt),
    when i go through the i_return table of the bapi, it si returning a message that "BAPI_201  Unable to create goods movement".
    Help me in proving the input to those bapi's and how can i get the expected output?
    And let me know, what the bapi's ,"BAPI_COMMIIT" and " BAPI_ROLLBACK" , will be doing?
    Edited by: kumar t on Aug 9, 2008 1:02 PM

    HI
    [Check the Link|http://abap.wikiprog.com/wiki/BAPI_PO_CHANGE]
    [Commit|http://abap.wikiprog.com/wiki/BAPI_TRANSACTION_COMMIT]
    [Roll Back|http://abap.wikiprog.com/wiki/BAPI_TRANSACTION_ROLLBACK]
    Regards
    Pavan

  • Absolute condition value in contract and release order

    Hi,
    We are creating quantity contract. When a absolute condition (value) is entered this value is considered for release qty in the contract for calculating the unit price.But when a release order is created for this contract, the same absolute value is for the PO quantity due to which there is a difference in unit price between contract and PO.
    Please advice.
    Regards,
    Pratap

    Hi,
    Verify you steps, find link below:
    http://help.sap.com/saphelp_470/helpdata/en/75/ee0f4d55c811d189900000e8322d00/content.htm
    Reetesh

  • Standard Report for PO with Condition Value

    HI MM experts,
    I have checked all the existing standard reports ME2*, cud not find the report which gives the
    condition value means
    Eg; PO made on Pencils - Qty 10 NOs. @ Rs. 1/- (incl tax)
    condition value for the above is Rs.10, in std sap all reports are showing with net price only
    PO no. 45XXXXXXX dt 11.11.2011 - Pencil - qty-10 - Net price Rs.1
    Please let us know is there any Standard report which gives the condition value ie., Rs.10 along with or without Net price.

    Thank you! It is not meeting my requirement.
    I am looking for sap standard report to see the PO value or condition value which is nothing but
    Qty X net price. I do not want to touch the tables.
    for analysis purpose, i want to have the total PO value in any MM Standard Report.
    Today i am visiting every PO and looking at header data for PO value. or at item level Condition value.

  • PR/ Sales order value not coming in condition value routine

    As per the requirement while creating a PO I need to add a new condition type and need to calculate condition price for this newly added condition based on some matrix.
    For this requirement PO will always be created with reference to PR and with account assignment category as 'E' .
    (Hence sales order number /item will be copied from PR to PO in account assignment tab  )
    Now I have created a new pricing requirement routine ( To add the condition type ) and new condition routine to calculate and update the price.
    These routines are working fine if i check them with hard coded price values.
    But the problem is that I need the PR number(which we put in item overview ) / Sales order item number (from account assignment ). these values are not coming in pricing tables in the routine...structure EKPO come blank, KOMP-AUBEL is also blank).
    Please give your suggestions how i can i get PR/ SO in the condition values routine .
    Please reply

    resolved my self

Maybe you are looking for

  • Database Polling: Parent-Child Relation

    Hi all, We are experiencing problem while picking multiple records from child table while polling from the database. Summary: Parent table: Temp1 : Columns- Id,Name,Status Child Table: Temp2 : Columns- Id,Item Now lets say data present in table are T

  • Need info on gaming

    I'm looking for an airplane, war type shoot em up fly by the seat of your pants game. Any suggestions?

  • IDOCS are not seen in BIZTALK

    Hi, I have whole configuration set for sending the IDOCS from SAP to BIZTALK like the RFC Destination, port definition, partner profile. Even the BIZTALK is configured to receive the messages...But when I create the material master IDOCS thru the cha

  • Can not run flexunit tests from ant

    Hello, I'm trying to script test execution in order to integrate tests in Jenkins. I followed the wiki article here http://docs.flexunit.org/index.php?title=Ant_Task The tests run successfully with Flash Builder but not with ant. I'm getting the foll

  • Creating New Employee Record

    Hello Expert, I am very new to SAP HR module. Is anybody knows hoe to create new employee record in SAP HR module? Other than creation, My requirement also is to edit some data given pernr number using pa30 transaction. Any help?? Thanks, Prashant