Report-Total Discount of total product for perticular time

Hi Experts.,
my client gave a requirement ,he wants a report  on Total Discount of total product sold by giving item and material group. The report is unavailable in Stanadard hence have to develop.
i need some help in creating this Report,
With the development of this screen,  user can view Total Discount given on total product sold.
The report should display the Item, Material group and Date
Selection fields
1-Material -  FACOM-MATNR
2- material group VBRP-MATKL
3- Item-  VBRP-POSNR
4-document date-- From  VBRK-FKDAT  , To FACOM-FKDAT_BIS
Discount from total sales will be taken from total bill amount for the perticular period
The question is which field and table i will fetch for TOTAL DISCOUNT ,from the total sales for perticular period.
please  suggest me ASAP
i am waiting for the response
Thanks,

Hi
I suggest to do with an ABAPer. It's been a long time since the last time that I did it. This is an idea, thinking in performance.
1. Add a zz-field (ZZDICOUNT for instance) in table VBAP with an append. See Note 155012 - Further subtotal fields in pricing to do it if you don't want to use a field between KZWI1-6. Use the field ZZWI7 for instance.
2. According to note 350068, do the steps that it suggests using field ZZWI7 instead KDMAT, ie, in step 4 you must do in include V05TZZMO. I think that perhaps you would add KNUMV (as ZZKNUMV) to orders before modification (be careful with performance)
***INCLUDE V05TZZMO .
* This form is called in the include LV05TFMO.
FORM MOVE_USERFIELDS USING ZP.
  CASE ZP.
    WHEN 'VBAK'.
*     header
*     MOVE LVBAK-XXXXX TO LVBMTV-ZZXXXXX.
      MOVE lvbak-knumv TO lvbmtv-zzknumv.
    WHEN 'VBAP'.
*     item
     MOVE LVBAP-ZZWI7 TO LVBMTV-ZZWI7.
*    for older documents (check it with your ABAPer, don't copy it and run in production without checking)
     IF lvbap-zzwi7 IS INITIAL.         "see if it's possible to check by date too
        SELECT SINGLE kbetr INTO zzwi7 FROM konv
           WHERE knumv = lvbmtv-zzkumv            "check that it's populated
           AND     kposn  = lvbmtv-posnr
           AND      ...........          "decide the type of select (GROUP BY,
                                           "INTO TABLE, ie: with an internal table
     ENDIF.
    WHEN 'VBEP'.
*     schedule line
*     MOVE LVBEP-XXXXX TO LVBMTV-ZZXXXXX.
  ENDCASE.
ENDFORM.
Remember that you must register the object in SSCR.
3. Remember that it will work from this moment. Before this date with this coding doesn't work because the coding to catch data from KONV I'm not sure that it will work. So, perhaps the ABAP report will be the better solution.
Moreover, take your time, look for help from an ABAPer if you don't know enough ABAP and of coure, check it and check it newly.
I hope this helps you
Regards
Eduardo
Edited by: E_Hinojosa on Jul 6, 2011 1:36 PM

Similar Messages

  • How to find the moving average for perticular time step for same time series

    Hello everyone,
    I am new in labview and I have one issue. I have a huge text file with the different pressure value of  different ports.
    I make the VI in which first I read the text file and identify the perticular port column. In that column there are 32768 pressure value.
    Time  Num     Port 101 Port 102 Port 103...... Port 532
    0         1
    0.001   2
    50       32768
    And this all reading takes in 50 sec and I have to split this readings in 4.5 sec... in every 4.5 sec there are 2969 values...
    Now please go throw the attched VI... i am able to find the mean value with the 12 time step of 2969 value...
    Now I want to do is, to find again the mean value of 2969 values(2970 to 5938) with time step of 12 and so on until 32768... so it happens 11 times in series...
    So can anyone modify my VI??
    Thank you,
    Solved!
    Go to Solution.
    Attachments:
    Moving average.vi ‏18 KB

    please go through the attched VI
    I made some correction in that.Now I am able to find the mean value for first 2969 rows with the overlapping time step of 12.
    It means I am able to find the mean value from 1-12,2-13,3-14 ... 2958-2969...
    but now the problem starts, I want to calculate the mean value of next 2969 rows which is 2970 to 5938 with the time step of 12...
    So please modify my VI.. I stuck with the serious problem...
    I have 32768 rows and have a partition of 2969 rows so the loop has to be repeat for 11 times.
    hope you understand the prob
    Thank you 
    Attachments:
    Moving average.vi ‏19 KB

  • How to get bpel process insantaces for perticular time period  from java

    Hi Guys,
    I want to retrieve bpel instances from java for certain ( perticular) time period ,
    Please any one help me.
    Regards
    janardhan

    Did you have a look at the listInstances(WhereCondition wc) of the com.oracle.bpel.client.Locator class?
    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/com/oracle/bpel/client/Locator.html
    Jan Kettenis

  • Totals text for ALV report

    In my ALV report I need to add descriptions for totals
                Col1        Col2          Col3
    Sum1       #Value      #Value      #Value
    Sum2       #Value      #Value      #Value
    Sum3       #Value      #Value      #Value
    How to add text Sum1, Sum2, Sum3 to the report?
    I tried to use subtotals_text and totals_text in slis_layout_alv for REUSE_ALV_GRID_DISPLAY but that did not work out. I also tried to look for methods using CL_SALV_TABLE class and have not been able to find a solution yet.
    Edited by: Megan Flores on Feb 25, 2008 8:28 PM

    it's a package in the systems above 6.4 with new ALV. There are nice examples. Main package is SALV.
    /wg

  • How to get total number of products for the site?

    Hi,
    I want to know the total number of products available for the site. i checked in the dcs_product table, it shows 40849 unique products. is this the total number of products count which are used in the site?
    I have another table in CATA schema dcs_product_sites, when i run the CatalogMaintenanceService to populate the records in this table, getting only 26000 products. Please let me know why this difference when i run the service.
    Thanks

    dcs_product table gives all products in your catalog.
    dcs_product_site will give products for a particular site.
    If you have more than one site, then you need to query for that particular site.
    And the number of products you show also depends upon the start and end date on the products.
    And also some custom filters you have like Out of stock items etc.
    Peace
    Shaik

  • Change Default message for report total: in reports

    Hi,
    I want to change the message for subtotals in the report i.e "report total"
    pls help me
    tnks
    mani

    Go to Shared Components>Text Messages and find Message Name "REPORT_TOTAL" and set correct string for your language.

  • How to diplay total *** Balance for a G/L Accnt For a Fiscper in report

    Hello All,
    We have a BI Query that gives output in the following order:
    Comp Code; Profit Centre; Fiscper; G/L Account; Cumulative Balance.
    Hence, under the Cumulative Balance field we get the value for the G/L Account for that fiscper For individual profit centres.
    I want to add a filed in the output, that will show THE TOTAL ***. BALANCE FOR THAT G/L ACCOUNT FOR THAT FISCPER IRRESPECTIVE OF THE PROFIT CENTRE as well.
    Please suggest how this can be achieved.
    Thanks a lot.
    Regards,
    Labanya.

    Hello Daya,
    Thanks for the reply.
    If I have 10 G/L Accounts, then the overall result field will give me the total Cumulative Balance for all the 10 G/L Accounts taken together. We want Cumulative Balance for each of the 10 G/L Accounts seperately.
    Secondly, even if the Overall result gives us the correct value, our requirement is such that we need a seperate column.
    Eg: For CompanyCode X, we have the following:
    Total *** Balance for GL1 for period1 for PC1 = 5.
    Total *** Balance for GL1 for period1 for PC2 = 5.
    Therefore Total *** Balance for GL1 for period 1 = 10.
    Total *** Balance for GL2 for period1 for PC1 = 6.
    Total *** Balance for GL2 for period1 for PC2 = 6.
    Therefore Total *** Balance for GL2 for period1 = 12.
    Desired output:
    CompanyCode;   ProfitCentre;  Fiscper;  G/LAccnt ;  New Column ;  Existing ***. Balance
              X                     PC1                1             GL1                  10                              5
                                                                            GL2                  12                              6
                                       PC2                1            GL1                   10                              5
                                                                            GL2                   12                             6
    Please advise. (Kindly follow the color n font codes above, since I was not able to insert table or create para-s).
    Thanks a lot.
    Regards,
    Labanya.

  • Matrix report not printing report totals

    I've created a 'Matrix with Group' report using the wizard that works great. It prints the sub-totals for each product at the end of each group, but won't print a grand total for each product at the end of the report - just displays a grand total for all products. I've tried many ways to try to add a report total for each product but get the annoying below frequency/bad product order errors. I'm using builder 9.0.4.0.33

    I've created a 'Matrix with Group' report using the wizard that works great. It prints the sub-totals for each product at the end of each group, but won't print a grand total for each product at the end of the report - just displays a grand total for all products. I've tried many ways to try to add a report total for each product but get the annoying below frequency/bad product order errors. I'm using builder 9.0.4.0.33

  • Report Total lable when "repeat heading on break"

    Hi,
    I have a report where I'm breaking on the first column, and returning the totals.
    When I have "Default Break Formatting", since I am returning totals based on the first column, it says report total under the first column.
    However, If I have "Repeat heading on break", the first column won't show as one of the columns in the report, but it will show above the box. Because that first column is not gone, I realized that the lable "report total" is gone too, since there is no space to put it. It is still returning the totals correctly, but there is no lable that says "total" or anything like that.
    I wouldn't mind having that label on the second column, or someplace else. Can I do this?
    Thanks!

    Lila,
    If you want to take advantage of the features that HTML DB reports offer, such as column heading sorting, then writing your own PL/SQL region would not be an option. I was only confirming your observation that repeating headings only works for the first break column and suggesting an alternative approach. So you'll have to decide which is more important in your case, getting the formatting you're looking for or using those advanced reports features.
    As for the previous posting regarding new and older versions of HTML DB, HTML DB 1.5 was our first production release, shipped with the Oracle 10G database, and this version as well as HTML DB 1.5.1 offers the same kind of report heading sorting and the same type of column breaks.
    Regards,
    Marc

  • Total Production Order Confirmation..Urgent

    Hi
    Can anyone tell me where to find the total production order confirmation by Second ( or minutes or hours ) for any month i.e. say for example March 2007  
    Please suggest......Its urgent
    Rgds

    Hi Vichy,
    Try this,  COOIS,
    List =confirmation
    Profile =std profile
    selection -> sys status =CNF
    Resrict ther report with Dates with Order header level.
    To get activity values use change layout option inside the report.
    Select the field  like unit/activity. from change lay out menu.
    Pradeep
    Edited by: Pradeep Kumar on Apr 18, 2008 9:19 AM

  • Daily total production details

    Dear experts
    As per DSA we can easily take single item wise production and Delivery details.
    But our customer needs to take daily total production report that also mandatory for excise department.
    Is SAP provide any report for this?
    warm regards

    Dear Experts
    DSA and Total Production daily wise both format  is same.  Actual  DSA  report will be given per Item wise report.
    But My customer requirement is same format but it has to be show total numbers production , total numbers sales and total excise duty every day.
    how to change the selection criteria to this?
    regards

  • How to show the break totals and NOT the report totals in an SQL report

    APEX 4.0.1
    In an normal SQL report (Not interactive) with a break applied on the first column, how do you just show the break totals and NOT the extra full report totals?
    Next, Is it possible to display only some of the row totals and not for all columns that have the sum option checked against them?
    PaulP

    PaulP wrote:
    APEX 4.0.1
    In an normal SQL report (Not interactive) with a break applied on the first column, how do you just show the break totals and NOT the extra full report totals?Instead of using the APEX break feature, try doing all of this in the query using <tt>GROUPING SETS</tt> or <tt>ROLLUP</tt> to get the break rows, and <tt>GROUPING_ID</tt> in the <tt>HAVING</tt> clause to suppress the unwanted rows.
    Next, Is it possible to display only some of the row totals and not for all columns that have the sum option checked against them?Don't really understand what's meant here?

  • Does Classic report provide facility to make report total to be hyperlink

    Hi ,
    Does Classic report in apex provide provision to make the report-total row editable(hyperlinked) ? if so how to implement that.
    Acq     WIP     Closed
    Abc     1     3
    Def     2     5
    report total :     3     8
    Also is it possible to provide more than 2 downloadable options for classic report :
    For eg: now i have provided options to export a report to csv and excel format, along with these two can i provide pdf option!!!!
    Thanks in advance

    You didn't mention what version of Apex you are using. If you are on 4.0, this can be done easily using dynamic actions.
    Here is an example http://apex.oracle.com/pls/apex/f?p=24317:92
    One DA that looks like this http://screencast.com/t/djyAG6F4WFM
    The first TRUE action (fire on page load) changes the cursor style to indicate that the row is clickable http://screencast.com/t/Z3YIXo6c
    The second one actually does the redirect http://screencast.com/t/jHMtyDwK8lM in the example it just shows an alert message but you can modify it to pass in whatever parameters you need and construct the location.href to redirect to.

  • Free music is not totally free, for me

    I signed up for the 12 Days of Christmas, and downloaded a few songs. But when I discovered that iTunes Store actually sent payment reciepts (card charges) for 0.00 for each and every title, I stopped downloading. Because then this music wasn't totally free, for me.
    My local Norwegian bank charges me NOK 2.50 (about 0.50 USD) each and every time I use my Visa paying card, even for these 0.00-charges. So 12 "free" downloads would cost me about 6 USD.
    Why do iTunes Store charge my account for downloading this "free" music? And why do you have to charge every title seperatly?
    Message was edited by: Sardine's

    The receipt confirms your transaction with the iTunes store. I'd be very surprised if Apple tried to collect NOK 0.00 from your credit card. If on the other hand you've had a statment with a NOK 2.50 charge for NOT transfering funds then I would both complain to your Credit Card company and report the issue to iTunes Feedback.
    tt2

  • How to Suppress Report Total When Using Sum on Columns & Break Formatting

    I need to know how to NOT show the report total line when using the sum functionality with a break in a report.
    I am summing two columns, a debit amount and credit amount. I am breaking on the first column which is the level of a hierarchical query. I want to see something like this:
    Parent Record xxxxxxxxxxxxxx
    Parent Sum $$ $$
    Child Record xxxxxxxxxxxxxx
    Child Record xxxxxxxxxxxxxx
    Child Sum $$ $$
    However, when I run the report, I also get a report total line under the child sum which is really meaningless for this report.
    I have also tried creating this report as an interactive report. When applying the sum on the two columns, I do get the sum totals on the break only - no report total - however, it is reversing the order of the hierarchical query results putting the child records first and the parent records second.
    Thanks in advance for your help.

    Hi, and welcome!
    I don't think that there's an easy way to "switch off" the Total line on a report. The nearest I could suggest would be to either hide the entire row or colour the text so that it's the same as the background - either way, the total is calculated but the user won't see it.
    If you put something like the following into your report region's Region Footer:
    &lt;script type="text/javascript"&gt;
    var outertable = document.getElementById("#REGION_ID#");
    var innertable = outertable.getElementsByTagName("TABLE")[1];
    var rs = innertable.rows;
    var lastrow = rs[rs.length-1];
    if (lastrow.cells[0].innerHTML == '&lt;b&gt;TOTAL&lt;/b&gt;')
    rs[rs.length - 1].style.display = "none";
    &lt;/script&gt;Then, on your report's Report Attributes page, scroll down to the Break Formatting section and put TOTAL into the "Display this text when printing report sums" setting. Also, in the "Layout and Pagination" section, set "Enable Partial Page Refresh" to No.
    The above code is based on the report and region templates that I'm using here: [http://apex.oracle.com/pls/otn/f?p=267:147] (Theme 18, "Report Region" region template and "Standard" report template). Your report may use different templates, so the first two lines on the code may have to change. #REGION_ID# would be replaced with the region's ID value (which would be "R" followed by a long number). As long as you can identify the HTML tag that uses this ID value, you can then get to the actual table that contains the data as it would be a TABLE within that tag - the [1] above is the second table within the region. In some instances, you may have to use "region_#REGION_ID#" as the starting point.
    Andy

Maybe you are looking for