Scales in  customer  discount needed  at  totals  level

Hello,
when  creating  a  value  scale  discount  for  customer ,the  discount  only  applies  when  document  item  fullfills 
the  scale  value  and  doesnt  take  into  account  the  document  total  value at  header  level?
What  can  be  wrong?
Thanks in  advance  and  best  regards
L

Hi,
You can use group condition (KGRPE) option to calculate base value for scales
system proposes based on items related to same group- If necessary you can use routinue also
check in condition type customizing
Thanks
Chidambaram

Similar Messages

  • Calculating total discount at the row level

    Hi,
    I want to determine the total discount amount for all of the invoice row levels by summing the row totals that have the same discount % and then multiplying that total by the row discount percent.
    Example:
    Lets say there is an invoice with 3 line items
    Qty     ItemCode     Price    Discount%
    2         A                $30            10
    2         B                $20            10
    2         C                $15             5
    I want to figure the total for the first 2 lines (because they have the same discount amount) by multiplying the quantity (230)+(220)=100 and then calculating the discount from this total. (100) * (.10) = $10 and then calculating the discount for the third line item ((215).05)=1.5. This brings the total discount amount to $11.50.
    Below is what I have drafted for a query so far.
    Select
    //For each grouping of items with the same discount %
    (SUM ((T0.Quantity * T0.PriceBefDi)) * DiscPrcnt)
    FROM INV1 T0 WHERE T0.DocEntry=$[OINV.DocEntry]
    Any ideas?
    Thanks,
    Luke

    Gordon,
    I was thinking that I would have to use a group by (grouping on the discount %) statement or possible a sub-query to accomplish this. The group by statement would replace the commented section. "//For each grouping of items with the same discount %"
    I will work on this query some more and post my results if I figure out a way to accomplish this.
    Thanks,
    Luke

  • What is the use of Grand total level in obiee ,

    hi ,
    i know that we can perform drill down from one level to another level, level base measures ,aggregate atble.................
    apart from that any other user if so pls give me one small example
    What is the use of Grand total level in obiee

    When you start to use multi-star models and none-conforming dimensions, you will use the grand total level to tell the BI Server what to do with the measures when you try and plot them all in the same answers request.
    Also consider any meaure you want to perform a '% of total' you will need the total mapped somewhere, this could use the Grand total level as a level based measure.
    Regards
    Alastair

  • FM to calculate Customer Discounts

    Hello Experts,
                               I need a function module to calculate customer discounts. customer cash discounts that get displayed based on payment terms is what I need.
    Any pointers to other threads will be much appreciated.
    Thanks!
    Rahul.

    Try this
    CALL FUNCTION 'ISU_S_DISCOUNT_PROVIDE'
    EXPORTING
    x_rabzus = st_discount_hdr-rabzus
    x_ab = wa_discount_item-ab
    x_wmode = '2'
    IMPORTING
    y_obj = xy_obj
    EXCEPTIONS
    not_found = 1
    foreign_lock = 2
    general_fault = 3
    OTHERS = 4.
    all the details of the discount are returned in type xy_obj
    change the details of the discount in ie. xy_obj-edsch ie.:
    loop at xy_obj-edsch assigning <fs_edsch>.
    add 10 to <fs_edsch>-rabproz.
    endloop.
    set the control parameters and the okcode
    xy_obj-contr-no_dialog = 'X'.
    xy_obj-contr-db_update = 'X'.
    xy_obj-contr-upd_online = 'X'.
    xy_obj-auto-edscd_okcode = 'SAVE'.
    call the function module to effect the changes
    CALL FUNCTION 'ISU_S_DISCOUNT_CHANGE'
    EXPORTING
    x_rabzus = st_discount_hdr-rabzus
    x_ab = wa_discount_item-ab
    x_no_dialog = 'X' "!!!!
    x_obj = xy_obj
    IMPORTING
    y_db_update = sw_db_update
    EXCEPTIONS
    not_found = 1
    foreign_lock = 2
    cancelled = 3
    general_fault = 4
    not_authorized = 5
    OTHERS = 6.
    do not forget to:
    commit work.
    [end abap coding]
    In the pbo of screen 200 (which is called in the 'change' function module') there is a 'suppress dialog' statement, which is executed under a certain condition. So if you set all control switches correctly and do a call function with export parameter x_no_dialog set to 'X' then the changes are processed without interruption of this screen.
    You have set the ucomm to 'save' and therefore the pai of screen 200 is processed correctly as well....

  • RPD: Wrong Fact join when utilizing Level Based Measures (TOTAL Level)

    I have 2 Facts and 3 Dimensions (Customer, Customer Emails, Time) being used in the RPD. The Dimensions are all set with TOTAL and DETAIL hierarchies.
    Physical Layer:
    Fact 1 joined to all 3 Dimensions
    Fact 2 joined to all 3 Dimensions
    Business Layer:
    Fact 1 joined to all 3 Dimensions and Content Level set to DETAIL for all 3 Dimensions
    Fact 2 joined to all 3 Dimensions and Content Level set to DETAIL for all 3 Dimensions
    Metrics:
    Fact 1 Metric: SUM set to TOTAL Level for Customer Emails Dimension
    Fact 2 Metric: SUM set to TOTAL Level for Customer Emails Dimension
    Issue:
    I run a query pulling the metric from Fact 1 along with Dimension columns Email Address and Customer Name (2 Dimension Tables).
    2 Physical queries are generated one against Fact 1 to get the Metric total by Customer. The 2nd query to get the Customer and Email Address that hits the Fact 2 table.
    Expectation:
    I would expect both queries from above to hit the SAME fact table (Fact 1). I understand the 2nd query would NOT contain the metric (Due to it set to TOTAL), but a relationship exists between the Fact 1 table and the Email Dimension, since the metric is pulled from this table I'd expect the Dimension value to be pulled from this table as well.
    I look forward to any thoughts.

    Merging Customer and Customer Email will not work as a Customer can have multiple Email Addresses and changes the grain of that Dimension (Customer Level).
    Implicit fact would make no sense here, since each Fact has different sets of data.
    The basic issue here is that we have a Customer Email table that is NOT at the grain of the Fact or even the Customer Dimension. I would have loved to snowflake off the Customer Email from the Customer Dim but then the metrics get inflated when returned and total on.
    Hence we built the Email dimensions to join off the Fact and set all the metrics in each Fact (That joins to Customer) to TOTAL. So the metrics do not get inflated, the metrics repeat (Customer request) for each email per Customer.
    I hope that clarifies.

  • Scoping Dimension Members, Incorrect TOTAL Levels

    I have successfully applied security on my analytical workspace using PERMIT_READ and FGAC. The guide that I had followed can be read at the following link:
    http://www.oracle.com/technology/products/bi/olap/olap10g_applying_aw_security.doc
    My problem is that on the TOTAL level on the DIMENSION in which the security/limitiation is applied for a certain USER, it still shows the aggregated TOTALs of all the members, instead of just computing for the TOTALs of the visible members to the current user, regardless of checking or unchecking the presummarizations on the "Summarize To" tab.
    I'm guessing that the solution is the manipulation of the PERMIT_READ program, but I'm new to all of these and have a rather tight schedule.
    I was wondering if anyone might know what to do..
    If the above explanation is not quite clear, please see the following:
    =======================================================
    ] 1) A REGULAR user sees the following:
    ] Member 1 : 200
    ] Member 2 : 500
    ] Member 3 : 300
    ] Member 4 : 700
    ] TOTAL : 1700
    ] 2) A LIMITED user sees the following:
    ] Member 2 : 500
    ] Member 3 : 300
    ] TOTAL : 1700
    See the problem? The limited user should have its TOTALs calculated according to the dimensions that it only sees.

    When you say the following "regardless of checking or unchecking the pre-summarizations on the "Summarize To" tab", does this mean you unchecked the various levels and then completely rebuilt the cube? If not then you will have to completely rebuild the cube you are querying because the summarizations for the cube are stored directly in the AW. Unchecking the levels does not delete the stored data.
    What you need is a cube that has not been summarized across the dimensions where you are applying the PERMIT_READ. It should then work correctly, or at least that is my experience.
    Hope this helps
    Keith

  • Need a multi-level control break report displaying a cross-tab for each ...

    I need a multi-level control break report that displays a cross-tab report for each
    detail and subtotal. The individual cross-tabs are no problem. There are two issues:
    1) How to get many cross-tabs (thousands) to appear in one report.
    2) How to provide cross-tabs in-line on the multi-level subtotal lines.
    Here is a concrete example.
    Suppose the data base contains this table:
    road (
    id_number number, -- this is an artificial PK
    city varchar2,
    county varchar2,
    state varchar2,
    length number,
    owner varchar2, -- roads may be owned by cities, counties, states, and others
    surface_type varchar2 -- the surface type may be gravel, asphalt, concrete, and others
    The table is populated with several million records that include every
    length of road in a US city.
    It is OK to suppose that all the attributes in all the records are not null.
    Without the PK, there would be millions of duplicates,
    which should all contribute to the summed lengths.
    The report I need is like a control break report with a detail line for each
    city together with subtotals for each county and state and
    a grand total for the US at the end.
    However, each detail and total line needs to be a cross-tab report
    summing the length over the city, county, state or US
    (whichever is called for at that location)
    for each combination of owner and surface_type.
    so the report would have the following structure:
    a city cross-tab for the first city in county 1/state 1
    a city cross tab for the last city in county 1/state 1
    a cross-tab for count 1
    a city cross tab for the first city in county 2/state 1
    a city cross tab for the last city in county 2/state 1
    a cross tab for state 1
    a cross-tab for the US
    Any suggestions will be appreciated.
    This problem comes up because my client's legacy system,
    which is being replaced,
    already has such a report (in COBOL).
    Thanks!!!
    Steve
    PS, I know one ugly way to do it. Namely, make a variable for each
    possible combination of owner and surface. Then code an ordinary control
    break report. However, I am looking for something better.

    Hi Jenna_Fire,
    According to your description, you have a matrix contains total for each group on each level. Now your requirement is, when you click on any number (data field or total), it will go to the detail report which returns all the detail information of the people
    within the group scope. For example, if you click on the total of Active users in United States, it will return the detail information of Active users in New York and Texas. Right?
    In this scenario, we should set the parameter (@Country, @State, @City) allow multiple values in both main and detail report. And in Default Value (@Country, @State, @City), query out all distinct values. In the textbox which contains
    those total values, when set use these parameters to run the report, we only need to pass the parameters of parent groups. For example, if we click on the total of Active users in New York, we only need to pass Country, State, Status to detail report, and
    in the detail report, the City parameter will use all distinct values (Default Values) because we don't pass the City parameter. We have tested this case with sample data in our local environment. Here are steps and screenshots for your reference:
    1. Create parameter Country, State, City and Status in both main report and detail report. Set both Available Value and Default Value get values from query (Create a dataset for each parameter, use "select distinct [column] from [table]" as query). Set allow
    multiple values for parameter Country, State and City in both reports.
    2. In corresponding textbox, pass appropriate parameters in go to report Action.
    4. Filter data in detail report (in where clause or using filters).
    5. Save and preview. It looks like below:
    Reference:
    Using Parameters to Connect to Other Reports
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Creative "Customer Support" Is A Total Joke

    I've had my Zen MX for about 2 months now & have e-mailed customer support 3 times regarding 3 seperate issues. The routine is pretty much the same in every case:
    . I e-mail them with a problem
    2. They scan my e-mail, pick out a couple of key words, & refer me to one or two of the FAQ's.
    3. I respond that I have previously read all the FAQ's and that the ones they referred to had nothing at all to do with my problem.
    4. They respond with "I don't have an answer at this time but your problem will be referred to our "escalation team."
    5. Some one from the "escalation team" suggests that I do the clean-up & reboot procedure.
    6. I respond that I've already done that.
    7. They respond with "you need to update your firmware".
    8. I respond that I've already done that.
    9. They respond with they have no solution for my problem but that it will be referred to the technical people.
    0. I never hear from them again.
    I would strongly suggest that Creative fire all the support people and with the money they save, make some improvements to their products such as:
    a) Get rid of that horrible Centrale program and give us one that actually works once in a while.
    b) Fix the firmware so that music (or videos) in the main player integrate with files in the memory card.
    c) Improve the product so that it doesn't die 0 seconds after the warrenty expires.
    BTW, the good folks on this board helped me with all 3 of my issues...thanks.

    Re: Creative "Customer Support" Is A Total JokeI see they haven't changed at all.
    A couple of years ago I had a problem with the headphones connection on my Creative MP3 player due to it having been dropped. I sent off an email requesting the name and address of their nearest service agent to see if it could be repaired. Their reply was to ask what was wrong with it. I told them to which they replied that it was not under warranty any more. I advised them that I was aware of that and was happy to pay for any repairs. Their answer was that it was not under warranty and could not be repaired.
    Remember that the original question was for the name and address of a service agent.
    From this one can draw one of two conclusions. Either they have no service agents or they are all totally incompetent.
    With nothing to loose I oulled the player apart and with a $.50 tube of super glue and 5 minutes of my time it was up and running perfectly. 8 months later it gave up the ghost and was replaced with an Ipod which has performed faultlessly.

  • Mass update of a custom field at Product Revenue level

    We are trying to update a custom field at Product Revenue level using the Opportunity Web Service. The webservice call is timing out as we have thousands of Opportunities.
    I would appreciate if anybody gives input on how we can massively update a custom field using Opportunity Web Service.
    OR
    Is there a way to mass update a custom field at Product Revenue level other than using a web service.
    Thanks for your help!
    -purna

    If you are not very much obsessed with Webservices, the other workaround is the Data Loader Tool. It was discussed earlier in this forum.
    Pl refer-
    Re: Product Revebue Updation
    Hope this helps.
    Rgds,
    Amit Sahu

  • Set custom JhsDateFormatter at a global level

    [with regard to my previous post]
    Does anybody know if I can specify a custom JhsDateFormatter at a global level by using the Application Structure File Editor ? Or do I have to walk through all my EO's and set the FMT_FORMATTER property by hand ?
    Regards,
    Pascal Prins

    Pascal,
    No, you can't. Easiest is to do a global search and replace on your file system.
    Steven Davelaar,
    JHeadstart Team.

  • I'm a newbee, (Win Tech)  Would like to know what command it is for reaching the reinstall menu at boot-up. I do not meen cmd r menu wich just install OSX above the OS. I think I need a totally fresh installation. Do you have any clue?

    I'm a newbee, (Win Tech)  Would like to know what command it is for reaching the reinstall menu at boot-up.
    I do not meen cmd r menu wich just install OSX above the OS. I think I need a totally fresh installation.
    Do you have any clue? Have several issues on a new MacBookPro but it's propably "PEBKAC" made.. 
    Uffe

    It is Command+r or for the online internet system it is Command+option/Alt+r keys. Then you use Disk Utility to erase the macintosh partition, from the built in recovery hd, or you can repartition the drive as one partition from the online system.
    To actually get to the online internet system you have to hold that key combo down until you see a globe on the screen. Otherwise it will just boot from the built in recovery hd on the internal drive.

  • Active Export list of customer discount set up into Excel file

    Hi Every Body,
    How to export a list of customer discount from plant to Excel Spread sheet.  Please provide me your valuable inputs
    Thanks
    Prasad

    Hi Prasad,
    I think you can use the pricing reports to first generate a list of that discount condition type in a report format and then export it to an excel sheet.
    See if the standard pricing reports in V/LD given by SAP is useful for you if you are using standard condition tables. If not, then you can easily create a new report for your condition type and the condition tables that you have used for that.
    Hope this helps.
    Aribis

  • Grand Total level Discrepency

    Hi,
    I have a Pivot table view which has three measures namely Net Units, Budget Net Units, Achvd% along with channel and Account at row level.
    Here Achvd% is a calcualted column with Achvd% = (Net Units - Budget Net Units)/Budget Net Units.
    At my Grand Total level also the same Formula should apply for Total Achvd% i.e., (Total Net Units - Total Budget Net Units)/Total Budget Net Units.
    Currently it is displaying the Aggregation Level for this column as Sum.
    In the Aggregation Level Setting for any column, we have Default, Sum, Average,Min, Max,... So can this customization for this column be done at Grand Total Level.
    Can you please provide valuable inputs
    Thanks
    Sri
    Edited by: sri on Feb 2, 2011 10:54 PM

    Saichand,
    I tried as you suggested, it is working on a single request... But if we have a result set of two combined requests(union) then this option is not helpful.
    Can you suggest how to take this up while using combined requests
    Thanks,
    sri
    Edited by: sri on Feb 7, 2011 12:30 AM

  • Percentage calculation at Grand Total Level

    Hello,
    I have issue in calculating the percentage at grand total level. I have three measures (A count, B count and Total count). These measures are defined in rpd with aggregation rule as sum. In answers i am calculating A % as 100*A count/Total Count. I have defined the aggregation rule for this percentage column as default. I am able to get correct % results for sub total level but getting wrong percentage values when Grand Total level is added. Going through some posts in this forum, people have suggested to enable this tag in instance config file.
    <ReportAggregateEnabled>true</ReportAggregateEnabled>
    After adding this tag, i am able to get correct results. The issue is when there is no data i am able to see table view with all columns having blank values even though i have defined the no result view.
    Please Help

    HI,
    For your CKF set exception aggregation as summation based on the last most characteristic in the row in the reference(as per the example it is product)
    Regds,
    Shashank

  • SQ01 query - Drilldown total level larger than 0 and drilldown function

    Hi everybody,
       I have made a sq01 query and set the call up report at "Report assignment" function. The drilldown total level of my query is 1 and I found that this makes the report can't pass the selected data (with cursor) to the receiver report correctly. I can't change the drilldown total level as 0 due to the user requirement. May I ask is there any other way to solve this problem? Thank you.

    Hi everybody,
       I have made a sq01 query and set the call up report at "Report assignment" function. The drilldown total level of my query is 1 and I found that this makes the report can't pass the selected data (with cursor) to the receiver report correctly. I can't change the drilldown total level as 0 due to the user requirement. May I ask is there any other way to solve this problem? Thank you.

Maybe you are looking for

  • Column Value in Title

    Guys, I have a query in Which I have used a calendar date as a prompt. I can add this via a variable to the report title. This is not my problem. When I select a date it returns (in my query) the financial week it is associated with. So in my current

  • Hello button opens "start conversation", but after this there is no further action

    on my mac os 10.6.8 I updated firefox to 36.0 in order to use HELLO. But when the hello button is clicked it only displays the blue "start conversation" button - but furthermore nothing. Besides this the selection bar for changing search engines in f

  • Contact request spam

    So, i keep geting the this person i dont even know trying to add me on skype. And each time i go to block the person they keep creating new accounts to add me on. I dont know what they are trying to acheve.

  • SCCM 2012R2 Client on workgroup machine

    Installing the SCCM client on a workgroup Server installed with Server 2012 is not working ok. I can only see 2 actions in the Config manager control panel item. This means the policies can not be downloaded. I have configured a boundary for the netw

  • Error no. 4 in SAPGUI with Graphics call or file  transfer

    Hi Experts, I have a requirement that is " I need to display the selected data from database table in bar chart". I am using the Function Module " GRAPH_MATRIX_3D ". I am getting the following error message. " Error no. 4 in SAPGUI with Graphics call