VK34, problem of warning  issued upon new condition:Reason codes  inconsist

Hello,
The Scenario is :
for a given material/sales organisation
1- I create a ZP00 condition  value =100$  valid from 01.09.2009  to  31.12.2009
2- I create new ZP00 condition value= 160$  valid from 01.01.2010 to 31.12.2999
To day, I decide to change the ZP00 condition value,
3- I created a new ZP00 condition with value=160$  valid from 11.09.2009 to 31.12.2009
The system doesn't issue any warning message to tel me that there is a gap in value between the new condition and the old condition valid for the same period
In fact the system compare the new condition value with the last created condition, hence it doesn't find any difference, and as consequence no warning is issued.
I expect that system compares the new condition value to the condition value valid for the same period and not the last condition
==> Shall I post an OSS for this problem ??
For  more details, hereafter the sap code, include  MV13AF0K
* Get the Original value (from database) of ZP00 or ZPI1 condition
  CLEAR: lv_old_zp00, lv_knumh.
  CLEAR: lv_new_zp00, lv_sum_z0xx.
  SELECT MAX( knumh ) INTO lv_knumh===> *system looks for the last condition created, it doesn't take care*   
    FROM konh                                                      *whether the condition is valide or not*
    WHERE kappl = 'V'
      AND kschl = xkonh-kschl
      AND vakey = xkonh-vakey.
  IF sy-subrc EQ 0.
*   Item data
    SELECT kbetr INTO lv_old_zp00
           UP TO 1 ROWS
      FROM konp
      WHERE knumh = lv_knumh
        AND kschl = xkonh-kschl.
    ENDSELECT.
  ENDIF.
* If no old value --> continue the processing without checking the gap
  IF NOT lv_old_zp00 IS INITIAL.
*   Calculation of Z0xx conditions sum
    LOOP AT xkonp where knumh = xkonh-knumh AND loevm_ko = space.
      CASE xkonp-kschl.
        WHEN 'ZP00' OR 'ZPI1'.
          MOVE xkonp-kbetr TO lv_new_zp00.
        WHEN 'Z006' OR 'Z008'.
*********Exclusion mode to be defined***********
        WHEN OTHERS.
          IF xkonp-kschl(2) = 'Z0'.
            ADD xkonp-kbetr TO lv_sum_z0xx.
          ENDIF.
      ENDCASE.
    ENDLOOP.
*   Calculation of the gap between the old and the new price
    lv_gap = lv_new_zp00 - lv_old_zp00.
*   If the gap do not correspond to the sum of condition z0xx
*   -> warning popup
    IF lv_gap NE lv_sum_z0xx.
      lv_diff_flag = 'X'.  "Set Difference flag
      lv_diff = lv_gap - lv_sum_z0xx.
For more deta

very bad layout, I try to enhance it
The Scenario is :
for a given material/sales organisation
1- I create a ZP00 condition value =100$ valid from 01.09.2009 to 31.12.2009
2- I create new ZP00 condition value= 160$ valid from 01.01.2010 to 31.12.2999
To day, I decide to change the ZP00 condition value,
3- I created a new ZP00 condition with value=160$ valid from 11.09.2009 to 31.12.2009
The system doesn't issue any warning message to tel me that there is a gap in value between the new condition and the old condition valid for the same period.
In fact the system compare the new condition value with the last created condition, hence it doesn't find any difference, and as consequence no warning is issued. I expect that system compares the new condition value to the condition value valid for the same period and not the last condition
==> Shall I post an OSS for this problem ??
For more details, hereafter the sap code, include MV13AF0K
CLEAR: lv_old_zp00, lv_knumh.
  CLEAR: lv_new_zp00, lv_sum_z0xx.
  SELECT MAX( knumh ) INTO lv_knumh
    FROM konh
    WHERE kappl = 'V'
      AND kschl = xkonh-kschl
      AND vakey = xkonh-vakey
  lv_gap = lv_new_zp00 - lv_old_zp00.
  If the gap do not correspond to the sum of condition z0xx
  -> warning popup

Similar Messages

  • Historical report issue with CCX Custom Reason codes

    Hi Evryone,
    I have CCX version 8.5,
    In Cisco Desktop Administrator ,I have configured custom Reason codes for agent logout & Agent not ready,
    These code are working ok when agent is loging out or Not ready,
    But in Historical reports I am not able to see these custom Reason code base reports
    I can only see the reports for agent not ready/login logout with only global reason codes, but report didnt show the cutom reason code base report
    Please help me to troubleshoot this issue.
    Regards
    Deepak

    hi Deepak, 
    Did you do something else while creating new global reason codes? 
    I have global reason codes, but in the the Historical Reports "detail" tab don't show up any of them. Report only shows system-genereted reason codes.
    BEst regards

  • We simply need a new order reason code

    Hi
    We simply need a new order reason code, that is entered in ZCR(Order Type), that is labeled " OPNL".
    Can any one help me 
    Priya

    Hi,
    Navigate to the path below and define the reason Code:
    Sales and Distribution -> Sales -> Sales Documents -> Sales Document Header -> Define Order Reasons.
    Cheers.

  • Issue with new Condition type..

    Hi,
    I want to create a Condition Type for VAT %, where we can insert value like...
    5% on 60% of Basic Price OR
    3% on 70% of Basic Price OR
    1% on 80% of Basic Price
    Note: - We have try with New Tax code and it's working... But through it, we require mew Tax code as per change condition..
    That's why we require a Condition Type for variable %...
    Please guide...

    Hi,
    You can do this through two ways.
    Option 1
    Add new condition type in tax procedure and  Make access sequence say with doc type and tax code.
    So for old PO's make the variable condition as 100% and for the new ones you need to create that many tax codes.
    Option 2:
    Write a routine for alternate base that is to be attached in tax procedure. Make a condition type in MM pricing procedure that is statistical and calculates value on base price.  Read this base price in the routine. So with this you will not make that many tax codes.
    Regards
    Sangeeta

  • Problem: Not able to change Signature field reason code Dynamically using signatureSetSeedValue

    Problem: Not able to change Signature Settings Dynamically.  
    What I want: Need to change the Signature Field Reason code Dynamically upon selecting Radio Button.
    Here is My Code:  
    var mydoc = xfa.resolveNode("FormData.P3_443.signature[2].ePadSignatureField3");
    mydoc.signatureSetSeedValue(
    reasons: ["Advisor"],
    flags: 8
    Error Message:
    TypeError: mydoc.signatureSetSeedValue is not a function
    9:XFA:FormData[0]:P3_443[0]:signature[2]:ePadSignatureField3[0]:validate'
       Source Code: Acrobat Code for Signature.
       // Obtain the signature field object:
    var f = this.getField("mySigFieldName");
    f.signatureSetSeedValue(
    { reasons: ["This is a reason", "This is a better reason"],
    flags: 8

    Problem: Not able to change Signature Settings Dynamically.  
    What I want: Need to change the Signature Field Reason code Dynamically upon selecting Radio Button.
    Here is My Code:  
    var mydoc = xfa.resolveNode("FormData.P3_443.signature[2].ePadSignatureField3");
    mydoc.signatureSetSeedValue(
    reasons: ["Advisor"],
    flags: 8
    Error Message:
    TypeError: mydoc.signatureSetSeedValue is not a function
    9:XFA:FormData[0]:P3_443[0]:signature[2]:ePadSignatureField3[0]:validate'
       Source Code: Acrobat Code for Signature.
       // Obtain the signature field object:
    var f = this.getField("mySigFieldName");
    f.signatureSetSeedValue(
    { reasons: ["This is a reason", "This is a better reason"],
    flags: 8

  • HT204053 i couldn't open new terms and conditions of icloud, and so i can't use the icloud on my device iphone 5, this problem appears, when I get new ios 7

    i couldn't open new terms and conditions of icloud, and so i can't use the icloud on my device iphone 5, this problem appears, when I get new ios 7

    Try download the Find My Friends app and signing in to accept the terms and conditions there.

  • Creation of New Condition Type

    Hello SAP Folks,
    I have one issue related to pricing. See the case is i have to produce an extra cost in the Sales Order which is actually depended
    upon the net price. This condition type is percentage based and calculation works in the following way:
    Let the new condition type be Z123 and Net price be PR00.
    So for year variation 1-2 year, the condition type Z123 will be 1.5 times of PR00
                                      2-3 year, the condition type Z123 will be 2.0 times of PR00
                                      3-5 year, the condition type Z123 will be 3.0 times of PR00
    Can anyone throw light on how to configure this condition type ???
    Regards,
    Sarthak

    Hi,
    For Z123 Condition type make (V/06)
    Cond. class A Discount or surcharge
    Calculat.type A Percentage
    Plus/minus A Positive
    and all other settings are same as Discount condition Type
    For making Z123 customize an Discont Condition Type (EX:K004,)
    Then while creating the condition record give the percentage as 150% 1-2 yearin valid from and to date,
    give the percentage as 200% 2-3 yearin valid from and to date, give the percentage as 300% 3-4 yearin valid from and to date, and save the record. (VK11)
    In the pricing procedure For step z123 condition type from which you want the % that is step of PR00 should be mentioned in the FROM and TO column.(V/08)
    This will result as per your requirement

  • Problem in Sales Order with specific condition type.

    Hello Experts,
    I'm facing a problem in sales order creation for a specific condition type.
    the actual scenario is as below,
    We have created a new condition type for special discount.This condtion type is applicable only for specific sales channels.Also the discount percentage has to fetched from a custom table.
    To achieve this I've written a user exit "RV64A999"
    In the FM, i've calculated the subtotal and fetched the discount percentage and calculated the discount amount. After implementing this, the SO were been created properly. for all the line items the discount amount was getting calculated properly.
    But then I added a condition at the top of code in exit that the calculation for the new condition type should happen only for selected sales channels.
    But after adding this condition in code, i'm facing problem. Now when I create/ change any SO, the discount amounts are getting calculated incorrectly. I'm getting discount amount even if the line item subtotal amount is zero (0).
    Any help or pointers reagrding this issue will be very helpful and highly appreciated.

    Hi ..
    Check your config. again or debug the routine code with your ABAPer and find the problem area.
    -Maharshi

  • New condition type print preview time out.

    Dear all,
    I am a ABAPer.
    I am facing one problem in PO Print preview.
    My MM consultant defines one new condition type-ZPF5 .
    Instead of ZPF2 we are using this condition type- ZPF5.
    After that in PO ,Net value & everything coming fine.
    There is a smartform also related to this.
    I have added all logic related to ZPF5 .
    But when going to print preview In production & clicking on print preview,
    It is giving time out after 9-10 mint-Time out for ALL po,not only for this condition related .
    v_no = &SFSY-JOBPAGES& -1. "in this line.
    &SFSY-JOBPAGES& means " Total number of pages in the currently formatted print request.
    I saw M/08 - ZPF5 Print equal to 'X ' & Statistics is ticked for this.
    But when I revert back old SMART FORMS & PRINT = blank,print preview is coming fine for all PO except
    ZPF5 Is not affecting in print preview,but in PO affecting.
    Any help from MM side?
    Thanks
    Gourav.

    Dear all,
    Issue resolved.
    I have changed my select query & remove old condition from that,now I am using only ZPF5.
    Like :
    SELECT SINGLE KBETR KWERT KRECH FROM KONV INTO (V1_KBE,V_PF,V_KREC)
             WHERE KNUMV EQ V_KNUM AND
                   KPOSN EQ WA_MAT-EBELP AND
                   KSCHL EQ 'ZPF5'. " not zpf2
    Thanks all for your time.
    Thanks
    Kumar Gourav.

  • SerialVersionUID field warning issue

    Hi all,
    i'm using the jdk1.5.0 compiler in my java developement under Eclipse platform.
    However i keep getting a strange warning on approximately each class in my applications:
    The serializable class "MyClass" does not declare a static final serialVersionUID field of type long     .
    why i'm i getting this warning and what is it about ?
    thanks.

    thanks for the two interesting replies : that solved the problem.
    I need your further advice about warning issues :
    i wrote an application in which i'm implementing dynamic java compilation using eclipse jdt package..
    for warning settings i'm using :
    String warningSetting = new String("allDeprecation,"
                    + "assertIdentifier," + "charConcat,"
                    + "conditionAssign," + "constructorName," + "deprecation,"
                    + "fieldHiding," + "finalBound,"
                    + "finally," + "indirectStatic," + "intfNonInherited,"
                    + "localHiding," + "maskedCatchBlocks,"
                    + "noEffectAssign," + "pkgDefaultMethod,"
                    + "semicolon," + "specialParamHiding," + "staticReceiver,"
                    + "syntheticAccess,"
                    + "unnecessaryElse," + "uselessTypeCheck," + "unsafe,"
                     + "unusedImport,"
                     + "unusedThrown");however the client is complainig that the warning level is too high...
    what are the warnings from above list that are not very critical so i can remove them to reduce warning level ?
    thank you.

  • I have an issue with pricing condition ZPRO (basic price )

    Hello gurus
    I have an issue with pricing condition ZPRO (basic price ).
    users created a sales order, and the basic price ZPRO which is mannual is added twice ,now i want to put a check so that condition tpye zpro is not accepted twice by the system. please let me know how can i restrict  system from accepting condition type zpro  twice during sales order.
    regds
    Edited by: sapuser09 on Jul 26, 2011 8:44 AM

    Hi,
    Solution for this is very simple. Don't make any changes to the sales order user exit. Use condition exclusion  for the condition type.
    Do customization in the following path of IMG
    Sales and distribution---- > Basic Functions--- > Pricing--
    > Condition exclusion -- > Condition exclusion for groups of conditions
    First  In Define condition exclusion groups you have to define condition exclusion group (ZXXX)
    Then  in Assign condition types to the exclusion groups you have to assign condition type to the exclusion group (ZXXX   ZPRO)
    Then in Maintain Condition exclusion for pricing procedures select the pricing procedure where you have the problem and click Exclusion box present in Dialog structure box
    You will be faced with Change view exclusion overview screen Click new entries
    You will be faced with New entries overview of added entries screen.
    Take serial no as 10 Condition exclusion procedure  as B (Best condition with in condition type) In the exclusion group1 add the exclusion group ZXXX.
    Save it and create order.
    In the order pricing you will again observe that ZPRO appearing twice but only one will be active.
    Changing user exit for this issue is not at all required and it must be only the last resort Try replicating the issue in your sand box system. As I had mentioned it will be picked twice but only one will be active.
    Hope this helps.
    Edited by: mokirala tilak on Aug 10, 2011 10:19 AM

  • Sales Order Unable to Use New Condition Tables for Tax Condition Type

    Dear All,
    I am currently working on SAP R/3 4.0. I have a new requirement for my tax where I need to create new condition tables other than the 4 standard SAP tables which are Customer/Material, Division/Customer, Departure Country/Destination Country, Domestic Taxes and Export Taxes. My new tables consists of Departure Country/Destination Country/Shipping Point/Tax Code. The requirement is that the tax code is based on the chosen destination country and shipping point. The problem I am facing now is that no matter what types of table I create or even I generate with reference to the standard table, the access sequence will only refer to the 4 standard SAP tables above. Even if I put my own table in the highest priority for the access sequence, the same thing happens. My sales order will only pick up date from the standard table.
    I wonder if anyone encountered the same problem as me.
    Kindly advise.
    Thank you.
    Regards,
    Yvonne

    Hi
    Yvonne
    I suggest fist check a simple thing ,whether u have successfully determined shipping point for each line item ,it is possible that just adding a line item will not trigger shipping point determination . So after u update the shipping point on line level u can rerun pricing and check agian if u r getting it .
    Secondly for tax purposes I suggest   Try to have Customer and material tax classification approach  this allows to u have long term flexibiliy and also reduces your maintenance activity . As if u change or add number of shipping points and business changes using the sequence of shipping point ,the logic of just using shipping point will not work.
    In Tax classification u cna add new condition table for each new tax category and use it in different access sequences.
    This information can be passed on to FI using Different Tax code for Different combination.
    I hope this helps
    Regards
    Mandar

  • New Condition Table not working in Sales order

    Dear All,
    I am facing problem in pricing procedure. I have created new condition table(LIFNR & ROUTE), included Vendor(Fwd Agent) and Route in condition table with sales area. I have added that condition table in access sequence and assigned access sequence to condition type. Then Condition type added into pricing procedure and assigned pricing procedure to document type.
    In sales order I've added route and fwd agent but while checking in analysis system does not determine route and fwd agent.
    Thanks and Regards,
    Kaushal

    hi,
    i have a query to ask why you need LIFNR in condition table creation.
    where in sales order it will trigger automatically.
    please check the config settings for route determiantion automatically.
    so that if route comes automatically into the sales order then from where you will trigger LIFNR.
    please clarify.
    regards,
    balajia.

  • Creation of new condition type: MWST

    Hi, Everyone.
    I would like to ask for some help regarding this issue: Creation of new condition type: MWST with the following details:
    1. For the country French Polynesia, Create a new VAT condition of 10%.
    2. Create a new one called : Class : Z u2013 Designation : France : TOM corresponding to 10 % of VAT to be invoiced
    and then associate this new VAT code u201CZu201D to the applicant Nr 221860
    If you could provide me a step by step process on how to resolve this, it would be very much appreciated.  Thank you so much.

    Hello
    What type of condition type you want.
    It is always advisable to create a new conditon type copying a standard condition type.
    For gross price condition types select PB00/PBXX
    For freight charges, Copy FRA1/FRB1
    Regards

  • Addition of new Condition type in SO

    Hi Frnds,
    We are facing a problem in SD.
    Client has added 2 new condition types 'JEC2' and 'JSC2'  recently which was not defined in previous conditions in old sales order
    hence while copying old SO to new, these 2 fields were not getting added in new SO . They have made following
    setting in SPRO for these 2 condition types to solve the problem :
    SPRO -> SD -> Basic function -> pricing -> pricing control -> define condition type.
    in this, for conditions JEC2 and JSC2 change condition category to 'L' (i.e.. New when copying ).
    This solved the problem while copying the old SO( Which doesn't contain the new Conditions)  to new.
    (i.e.. 2 new conditions are added in new SO due to setting 'L').
    But while copying New SO ( which already contains these 2 conditions) to another,
    the above 2 conditions are duplicated. (i.e. appears twice in conditions tab of item, once from source SO and 2nd time due to setting 'L' of 2 conditions ).
    Kindly revert back if you find any solution for the same.

    Hi there,
    You are getting the duplication coz of setting L (generally new when copying) in condition catg in V/06. In your earlier case, it worked because the condition type is not defined in the old order from which you are copying. So setting L will define new in the new order. 
    In your second case your old sales order already has the condition type JEC2 & when you copy that sales order, system will copy all the existing condition types + re-define JEC2, JSC2 again (coz of setting L in condition type) in the new order.
    Rather do this. Since you are copying new OR from existing OR, in copy control routine VTAA at the item level, pricing type, choose option B which will carry new pricing. With that eventhough your old order doesnot have JEC2 & JSC2, your new order will have them.
    Regards,
    Sivanand

Maybe you are looking for

  • Set and get values with vector

    I have a class that that querys a db and sets a value of the result to a vector array. Is it possible to set and retrieve that vector array using the set and get methods? ex: my class: sql = "Select ..."; Vector fName = new Vector(); rs = sqlStatemen

  • How to add jar files to a project?

    What is the correct way to add jar files to a project? Jdev Help has an entry "Adding Files to a Project Using the Add Files or Directories Dialog", but when I goto File->Open as it says, there is no "Add Files or Directories" dialog. Using JDEVADF_1

  • Append time stamp as a column in an excel file

    Hi i want to add timestamp to the last column  of my excel file my data is this  columnA   columnB  column C  columnD temp10     temp11    temp12     timestamp       these are header name 74.212     73.122     73.222      11AM:23:59.012 73.444     73

  • Xserve as a display server

    Hi, I will soon need to set up an information display panel of 10 plasma screens. Im interested in using xserves for their small form factor. They have two expansion slots, and now come with a built in video card. Would it be possible to install addi

  • Delete text msg.

    How does one delete a text message?