Can a scales-based condition be defined as group condition?

We have a scales-based condition, applying to certain items. A formula has been created, which basically loops through all items equipped with this condition, calculating the value based on the accumulated quantity of all items up to the one currently calculated. The condition rebate is then applied if the "max" value hasn't been exceeded.
The formula itself works fine as long as the condition is not defined as a group condition. If it is set as such, the condition value is overwritten due to the sum quantity of all items exceeding the scale maximum... the client insists on the condition being a group condition, whereas I think this destroys the purpose (calculate rebate for items up to the last one before max is reached). Any suggestions?

Create a hidden item lets say P1_MYITEM and set its default value to *2*
Just amend the IR SQL query to add a where clause like below
//remember the default value of item is 2 and this will evaluate to false and return no data initially
where 1 = :P1_MYITEMBefore setting your filters and refreshing the report just set the value of the item P1_MYITEM to *1* (make sure you set the item's value into session state using Page Items to Submit property)
So ideally the dummy where clause will now evaluate to true and the data will be shown

Similar Messages

  • Scale based condition contract

    Hello,
    I have created contract with quantity based condition and define the scales as follows
    For example From 1 Qty Price would be 251, From 10 Qty price would be 241, from 20 Qty price would be 231.
    Now, I have created PO from the contract for 9 Qty. System defaulting 251 price, that is ok as per the scales defined in the contract.
    Now again, I am creating PO for next lot of 9 Qty, again system defaulting 251 price, but it should be 241 as I already consumed 9 Qty in my previous PO from this contract. Why system picking 251 Price and what configuration we need to do to have 241 price for this PO.
    Thanks,
    Vikas

    Hi Vikas,
    You have maintained scales like following:
    from 1Qty-251
    from 10Qty-241
    from 20Qty-231.
    You have created PO for 9Qty. It is  correct. that means till 9Qty it will take 251 only.
    If you want to take 9Qty price as 241.
    You have to maintain like this:
    from 1Qty-251
    from 9Qty-241
    Hope it will works...
    Regards,
    Padmini.
    Edited by: Padmini on Dec 19, 2011 8:45 AM

  • How to sum up billing documents and provide scale based discounts

    Dear Gurus,
    Here is the client's requirement:
    Actually the client requires that after two weeks some of the customers are given discount based on the total quantity or value been sale.
    Invoice list seems a great option but issue is that its sums up the factor discount from all the billing documents.Although,the client requires that after the toal quntity or value been taken from the billing docuements a scale is applied at the level of invoice list.For example
    billing 1  value 10,000 discount 3 %   = 300
    billing  2 value  1,000  discount 3%    =30
    system response:
    invoice list  value 1100 discount =330
    client requirement
    invoice list value 1100
    scale  :  if value <= 500  discount 3%
                 if value >500 && value<2000  discount 4%
    required value : invoice value 1100 discount 400
    Kindly help , if there some better option availble in invoice lists or any other solution you may come up or suggest.
    Regards,
    Sam Ahmed

    Hello,
    you can create a discount condition type and add access sequence to it. If your client does not have access sequence as per your requirement create one with copying a standard access sequence for discounts.
    you can create a separate table to fulfill changes so that access could be made.
    regards,
    amol marathe

  • Scale Based Pricing

    Folks,
    I have a case here for scale based pricing but a variant of it. Please let me know if you guys faced this situation and please throw up possible solutions.
    For quantity 1 price is say 20,000
    For each additional quantity price is incremented by 5,000.
    If quantity is 2 --> 25,000
    3 --> 30,000
    4 --> 35,000
    Is there any routine that I can use that is available?
    Thanks in advance

    Hi,
    Go in to condition record maintenance by VK11.
    Put materail and it's price
    click on scale and maintain scale
    1 >>>> 20000
    2>>>>>25000,
    If required go in condition detail and choose which type of sacle u wish to use, quantity base or value base.
    kapil

  • Can't find FILTER CONDITION for filters or Function_Name for Functions

    In the Data Warehouse 11gr1 views all_iv_xform...
    I can't seem to find the Filter Conditions for filters and function name for functions that are called.
    I have looked at the other views in the documentation for the API's but can't seem to find this information.
    Any body have any ideas where this information is?
    thanks
    greG

    select map_component_id, position, source_parameter_name
    from ALL_IV_XFORM_MAP_PARAMETERS
    where map_component_id in (
    SELECT map_component_id
    FROM ALL_IV_XFORM_MAP_COMPONENTS
    WHERE MAP_ID IN (
    select MAP_ID
    from ALL_IV_XFORM_MAPS
    where MAP_NAME = :p_map_name
    AND OPERATOR_TYPE = 'Filter'
    Using map_component_id and position from above query you can see your filter condition defined in property_value:
    select map_component_name, property_name, property_value
    from ALL_IV_XFORM_MAP_PROPERTIES
    where map_component_id = :p_comp_id;

  • How can I select the condition one by one

    I attaching a VI in which I have two condition less than or equal and greater than or equal. With respect to the input value 0f 125 the condition should be greater than or equal and if it is 175 then it should be less than or equal. So how can I exchange the conditions. Please reply
    Attachments:
    24.1.14 data acquisition reverse corrected-1.vi ‏116 KB

    Hi perumpadapu,
    Can you show me in your code where is this "175" and "125" is coming from? Where do you want to implement your flip logic?
    " I need to relpace the greater than equal to to lesser than equal sign as the 175 becomes 125.So there should be a flip in conditions to be considered. "
    If you want to do some sort of flip conditions based on the integer value received, you can use case structure as below:
    Unless you are very certain that you will not receive any values other than 175 and 125, you can use Select. 
    "Becaus if i use case structure as you said, for the true as well as false case I have to include all these commands to execute in each case. I can't wire the both cases to the same case structure after that."
    Can you provide a screenshot to this issue?
    It would be great if you can explain what you want to do and what your code does.
    Warmest regards,
    Lennard.C
    Learning new things everyday...

  • MM-PUR default scales for condition types for service (ME31K

    Hi,
    We have faced the following problem:
    The business case was, to have default scales for certain condition types for a service for a purchasing contract.
    We didn't find it in SAP, so we wrote an OSS. SAP answered that it's not possible now, nor in the future.
    So we decided to look around in SAP, and found out that it was half possible.
    I've abused the exit USEREXIT_XKOMV_BEWERTEN_INIT of program RV61AFZB.
    In this exit I provide the internal table staffel for program SAPMV13A with the correct information (via ASSIGN ('(SAPMV13A)STAFFEL[]') to <staffel>.)
    In this way, if a user adds a service, this exit will get reached and the scales are filled. If the user then clicks on conditions and then double clicks the condition type with the scales, all the default scales are shown to the user. If you then click on save, the next screen is the service screen, if you then click on save again, all the date is stored in the database. (bit of a work around, but this works)
    However, I can't figure out how to save the scales data, when you only add a service and then push the save button without viewing the conditions. Quite logically actually because I'm skipping two whole screens with pbo and pai modules, in these modules internal converting takes place.
    Has anyone encountered this problem before and how did you solve it then ?
    Alternatively what is the SAP standard way to add pricing condition scales on condition types of a service of a purchasing contract? As you know there is no BAPI yet to change/create a purchasing contract.
    I was thinking, to add the scales by updating the tables directly via ABAP, I know that's not a clean way to do it, although it isn't too risky.
    Kind regards, Rob Dielemans

    Dear Rob,
    Is this solution properly working for you?
    I think my problem is similar: purchasing outline agreement (contract) refuses to apply relevant scale prices in the item line. Always uses the first price - without considering order quantity depencies.
    Regards,
    Tamás
    Edited by: Tamas Szabo on Mar 31, 2009 3:50 PM

  • How can i call a condition type into my ALV report

    I am developing one ALV report in that how can i call a condition type.I am one condition type PB00 for special price.This special price column should be present at the output list.This special price is not there any one of the database tables.So we will create one condition type for this.How can I develop one condition type and how we may call this condition type into my ALV report.

    V/06 is the condition type transaction .You attach a Access sequence to that which is stored in V/07 .
    there you can also get based on key combination tables names .
    which you can used in your report to include in the ALV .
    Contion type PB00 Access sequence PB00
    which will have step say
    Step Table combination 
    1      071       Material plant
    2      142       SO/dc/DV
    here Application would A and table would A table number .
    for eg .A071 .

  • How to Handle Blank Field Value based Condition in SmartForms

    Dear Sir,
    In SMARTFORM , we need to define a Condition that incase Field Value is not equal to  BLANK value (blank means that field is empty) then a specific text gets printed .
    Our problem is that  We do not know as how to define  Empty Field Value  based condition .
    Had it been Non Empty Field value based condition then solution was simple and could be done in following way :
    Field Value                        R                     Comparision Value
    WA_KZDKZ                      =                      'X'
    In our case , we need to give Blank (Empty Value) instead of 'X' .
    Kindly help us pl .
    Rgds
    B Mittal

    Hi,
    To handle blank field values in SMARTFORMS,
    Go to the conditions tab in your SMARTFORM and give condition there
    Field                Comparision operator          value
    <Field name>      <> Here symbol is diff     space.
    eg:
    wa_mara-matnr    =/                                   space.
    Regards,
    Santosh Kumar M.

  • How to create scales for conditions for rebate agreements?

    Does anybody know any function modules or bapis to create scales for rebate agreement conditions.I want to create entries in konm table where scales for conditions get stored.Also pls tell me how to link contributory volume by programaticaly?
    Thanks in advance

    Part of my question is answered .I could find parameter in BAPI_PRICES_CONDITIONS to create scales for conditions.But do anyone have any idea how to link contributory volume to conditions? i have conditions and also contributory volume? can anybosy send me some material which explains the contributory volume..atleast functionally?

  • Scales in condition Records

    Hi
    My client need DNP prices for their customers to be maintained in Scales.In condition type DNP we have maintained Calculation type as "C" Quantity and for the condition type Scale basis as "F" Volume Scale.
    In this scenerio in VK11 iam maintaining scale value as from 1 qty  DNP is 100$
                                                                  10 Qty DNP is 90$
    When iam creating sales order system is not picking the DNP value for that materia & DNP Value is Blank.And after delecting the scales value when i created Sales Order system picks the DNP Value.
    Can anybody guide me if any config changes to be made.what should i do so that scales work?

    Hi,,,
    Check in pricing procedure for DNP condition type requirement type is 2
    Thanks,

  • WinRT - how to add an image that scales based on bounding box?

    I have an image I want want to put on my map and have it scale based on the zoom level. If this had the same API as the WPF version, I could add a MapPolygon and use an ImageBrush.
    How can this be accomplished with the Bing.Map on an Windows Store application?
    This is how I am adding the image (and a Polygon to show the bounding box):
    imageLayer.Children.Clear();
    MapLayer.SetPosition(_vm.RadarImage, new Location(_vm.Overlay.LatN, _vm.Overlay.LonW));
    imageLayer.Children.Add(_vm.RadarImage);
    shapeLayer.Shapes.Clear();
    var rect = new MapPolygon();
    rect.Locations.Add(new Location(_vm.Overlay.LatN, _vm.Overlay.LonW));
    rect.Locations.Add(new Location(_vm.Overlay.LatS, _vm.Overlay.LonW));
    rect.Locations.Add(new Location(_vm.Overlay.LatS, _vm.Overlay.LonE));
    rect.Locations.Add(new Location(_vm.Overlay.LatN, _vm.Overlay.LonE));
    rect.FillColor = Colors.Green;
    shapeLayer.Shapes.Add(rect);
    map.SetView(new LocationRect(new Location(_vm.Overlay.LatN + 0.0001, _vm.Overlay.LonW + 0.0001), new Location(_vm.Overlay.LatS - 0.0001, _vm.Overlay.LonE - 0.0001)));Here's the image scaled close to accurate.
    If you zoom out, the image stays the same size, but the Rect and Tiles scale.

    The WP8 map control doesn't have this functionality, however it is possible to calculate these values. First you will need the tile math code from here:
    http://msdn.microsoft.com/en-us/library/bb259689.aspx
    Once you have this you will then need to take the top left coordinate of the map. Since there is no Bounds property or some other nice property to get this information you will need to use the center of the map and convert it to a global pixel coordinate
    using the LatLongToPixelXY method. Once you have this you can offset the value to get the top left corner global pixel coordinate by subtracting the x by width/2 and the Y by height/2.
    Next use the LatLongToPixelXY  method on the top left and bottom right corners of your bounding box. This will give you global pixel coordinates. You will now want to convert them to local pixel coordinates by subtracting the top left map corner pixel
    coordinates from  the X and Y values you just calculated for your bounding box. This will result in the pixel coordinates you need to position your image on the canvas.
    http://rbrundritt.wordpress.com
    Finally got a chance to try this out on the phone. Not sure I'm doing it right. Is LevelOfDetail == ZoomLevel?
                    var level = map.ZoomLevel;
                    int outLat, outLon;
                    Microsoft.MapPoint.TileSystem.LatLongToPixelXY(
                        map.Center.Latitude, 
                        map.Center.Longitude, 
                        (int)level, 
                        out outLat, out outLon);
                    int tlLeft = outLat / 2;
                    int tlTop = outLon / 2;
                    int brRight = outLat * 2;
                    int brBottom = outLon * 2;
    My debug output:
    tlLeft
    67 int
    tlTop 117
    int
    brRight
    270 int
    brBottom
    468 int
    level 1.6759999990463257
    double

  • Regd: Scale based Pricing

    Our Client is operating the Prices for LOT by LOT.
    One lot consist of 32000 Qty and the Price is 75$
    My query is  If Vendor gives 0-32000 Qty it should be charged 75$ directly.
    If he gives 32001 Qty, then system should trigger the calculation based on the formulae ((75/32000)*32001).
    If he gives 32003Qty, then formulae ((75/32000)*32003).
    Instead of creating Routine for the same, any further workaround for this solution possible.
    Thanks for your guidance
    Ganesh

    Hi,
    This is not possible without routine.
    You can try with Scale type 'scale based on formula' but this is again like routine.

  • Can we use If condition in so10?

    Hi Experts,
    I want to have different text descriptions for different release code in PR workflow
    can I dynamically change the task description keepin the task as same .
    can we put if condition in task description ?
    Thanks & Regards
    Dharmesh Sharma

    Use this syntax in Task Description it will work. If you are using Include Text and maintaining the condition in include text bring that text to Task Description.
    Syntax:
    /: IF &BUS2015.RelCode; = 'HD'
    Head of Department
    /: ENDIF
    /: IF &BUS2015.RelCode; = 'DR'
    Director
    /: ENDIF
    Regards,
    Ramu N.

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

Maybe you are looking for

  • My Firefox 4 network settings are not saved when I restart Firefox.

    In particular, when I set my proxy configuration to 'No Proxy', it keeps getting reverted back to 'Manual Proxy' with '127.0.0.1' as the proxy address and '63111' as the port.

  • How to load word .doc-files into java applications?

    Hi, I want to load a word .doc-file (or any other type of document) into a java application, as part of the application. Is there any java special library to do it? Any solution or hint? Thank you.

  • Expand the selection Screen of  ME2L

    Hello everybody, please can someone tell me how can I expand the selection Screen of ME2L . Thanks best regards

  • SAP Netweaver   BI Upgrade

    Hi Everybody My question is about the Add-in or Standalone installations, I have upgraded our DEV & QA from BW3.1 to BI 7, the Abap & The Java stack are located on the same server, SAP calls it Option 1. For the production system, I am thinking to im

  • Colour picker problems

    i'm making a colour picker to pick a colour from a list of buttons, i'm having a few problems getting the layout setout right and creating a second component using the same buttons just to change the background of panel which the second component is