Consumption Calculation using Table MVER

Hi expert,
How to develop new report in crystal report for 6 months total of consumption.
The data can be extract from table MVER. Total for each Months can be grap from fields GSV01- GSV13.
The report i would like to develop is like this;
Material (MATNR) = ABC123
Current Month (System Month) = April 2008
N-6 (MVER-GSV**) = March 2008
N-5 (MVER-GSV**) = February 2008
N-4 (MVER-GSV**) = January 2008
N-3 (MVER-GSV**) = December 2007
N-2 (MVER-GSV**) = November 2007
N-1 (MVER-GSV**) = October 2007
if current month = <April>, how the program could determine for column N-6 is what month ? and also same with N-5,N-4,N-3,N-2 and N-1.
please help, thanks Nghiem.

i would create a parameter for the start date and then in the record selection i would use
Month(@startdate)+6
this should only retreive the current month to the 6 month range
then create a group by the date and group it by month.

Similar Messages

  • Standard extractor for forecast & consumptions values (prow and mver table)

    Hi All,
    Is there any SAP BI standard extractor for forecast and consumptions data ?
    For information,
    ECC6 Forecast table : PROW.
    ECC6 Consumptions table : MVER.
    Thx.
    radj.
    Edited by: Radjech Radjech on Jul 27, 2011 11:13 AM
    Edited by: Radjech Radjech on Jul 27, 2011 11:25 AM

    I have created a generic extractor, in the past, with the FEBEP table. However, my requirement was to join it with the BSID and BSAD tables in order to determine payments that have been received into the lockbox but not cleared, so that the Credit Department has a more up-to-date look at customer accounts.
    If you have multiple companies you could end up with a Cartesian product when the data for this view is rendered because the Accounting Document and Fiscal Year don't uniquely identify records in BSEG and BKPF. Additionally, you wouldn't know exactly which Accounting Document Line Item is the correct record on BSEG. Both of these cases are potential sticky points for both a custom view or User Exit in CMOD, unless you've been given by the end customer a way to mitigate these. For instance, you may be able to derive the Company Code for the FEBEP entry by using the Cost Center or Profit Center, unless your Cost Centers or Profit Centers can span across companies.

  • How the consumption valuse gets updated in the table MVER

    Hi,
    Can anyone explain me how the consumption value gets updated in the table?
    Would you please be able to confirm that all movement types are considered for updates in table MVER. If not, i would need the movement types that are considered as pertaining to u2018consumptionu2019.
    Thanks
    Srini

    Hi,
    Consumption both in material master view and table MVER are updated as soon as the movement is made, ie, real time data.
    To see the movements relevant to consumption, use OMJJ to review movement types or table T156. In this table, select Consumpt.postg. field not equal to blank (so blank is excluded).
    This should then show all movement types subject to consumption posting. The likely ones to see are below, with majority being G.
    (blank)     No consumption update
    G     Planned withdrawal (total consumption)
    R     Planned, if ref. to reservation, otherwise unplanned
    U     Unplanned withdrawal (unplanned consumption)
    Thanks.

  • Calculations using Physical Tables vs Logical Tables

    It's easy to find an example of where you would want to use Logical Tables instead of Physical Tables to create fact columns in the repository. Any measure such as Profit Margin (i.e. Profit / Sales) must be computed in the Logical Tables, so that the division operation occurs after the dimensional aggregations are passed to it from the physical layer. In the example of (Profit / Sales), using Physical Columns returns an incorrect result, because it does the division operation first, then aggregates all of those results into a nonsense value.
    So, is there some type of formula in which the reverse is true, such that using Logical Tables would return an incorrect result, while the Physical Tables would return the correct result?
    If not, then under what circumstances would we want to use the Physical Tables instead of the Logical Tables? Is there some type of formula that performs better with Physical Tables?

    Hi Thomson,
    calculations using physical columns generate fair SQL which wouldn't involve any sub-selects in physical query... and would be fast.
    If you use logical columns by selecting the “Use existing logical columns as the source check box" in rpd, most of the times it generates queries.. with sub-selects (means subqueries)
    Ex: suppose you are calculating a calculation based on 2 columns a, b then
    If you use, Logical columns, the query would be something like...
    *Select D1.C1 + D1.C2*
    *From (select Sum(X) as C1,*
    *Sum(Y) as C2*
    *From FactX) D1*
    *Group by DimY*
    If you use, phyiscal columns for calculation the... the query would be...
    *Select Sum(D1.C1 + D1.C2)*
    *From FactX*
    *Group By DimY;*
    which is much preety and good to query the database... without any difficult..
    For first query... it's using inner queries... so process would be slow...
    +Thanks & Regards+
    +Kishore Guggilla+

  • Consumption values get updated in the table MVER

    Hi,
    Can anyone explain me how the consumption values get updated in the table MVER?
    If you have any doucments,it will be better......
    Thanks
    Srini

    hi,
    When ever you do the GR for the consumption postings, the material gets updated in the respective table...
    You can see the table in SE16 tcode...
    There is ABAP coding linkages, in which all the fields are stored in the forms of tables in the std sap system...
    Hope it helps...
    Regards
    Priyanka.P
    I request you to close the threads once you get the satisfied answers...

  • Consumption Calculation,

    Hi SAP Abap expert,
    My roles is a functional, I'm in process to develop new report for 6 months total of consumption.
    Table contain the data of consumption can be grap from MVER.
    The Total for each Month can be grap from fields GSV01- GSV13.
    let say, current month is GSV04, how can i tell the abapers to Grap GSV03 in SQL Statement
    Please Help, just learning

    Hi,
    Tell ABAPer to pick current month from system date with using
    Function Module "DATE_TO_PERIOD_CONVERT"
    where I_DATE = SY-DATUM
    and I_PERIV = 'K1'
    get month & year
    Example month(MON) = 01 & Year(Y1) = 2008.
    Now use the following code.
    concatenate GSV MON into l_gsvbr
    now from table mver select query
    select *******   ***** ****** into table itab
              where matnr = ****
              and werks = ***
              and gjahr   = Y1.
    loop at itab.
    if l_gsvbr = GSV01.
       l_gsv = itab-gsv01.
    elseif l_gsvbr = GSV02.
       l_gsv = itab-gsv02.
    endif.
    endloop.
    If it is helpful pls reward me.
    Regards
    Srimanta

  • Hi,How to add field to sap Liquidity calculation module tables?

    Hi Experts,
            How to add field to sap Liquidity calculation module tables?
            and how to add a field to a particular transaction code using a customer exits.
    please tell me in detail.
    thanks inadvance,
    Regards,
    Rekha

    Hi Pranab,
    Please follow the below steps to create an extra field and write code for that field through Infoset.
    1-->Change in Infoset
    u2022Go to SQ02 , enter Infoset name and click on Change Button
    u2022Go to Extras (F5) button displayed on application bar.
    u2022In Extras tab, click on 'Create' icon to create additional field E_NAME1, give as type C (character) and give desired length and. Enter header description  as 'ShipToName'
    u2022Select this field i.e E_NAME1 in one of the field group of Infoset.
    u2022Go to Code section  (Shift+F8) of infoset, Select Record Processing Event and write your logic code (condition) in this code section:
    if vbpa-adrnr = space.
    E_NAME1 = kna1-name1.
    else.
    E_NAME1 = adrc-name1.
    endif.
    2-->Generate the Infoset.
    3-->Change in Query
    u2022Go to SQ01(in a new session), give your query name (by selecting your user group) and click on change button.
    u2022Check the field group in which you have added E_NAME1 field, then check E_NAME1 from Fields screen
    u2022Click on 'Basic List' button; give line (row no.) and sequence (column no.) for extra fields.
    u2022Execute/Test the Query, you will get desired result.
    Please let me know, if you need more information.
    Regards,
    Dinesh
    Edited by: Dinesh Tiwari on Oct 29, 2009 7:13 AM

  • Using Table Splitting

    Hello,
    I am doing experiments in preparation of a unicode conversion of a 1 TB MAXDB system. Therfore I have exported the database with sapinst with a duration of 44 hours.
    To reduce the downtime I did another try using the table splitting option with the export monitor. Because I have not found detailed information I did a mistake in konfiguration of the file import_monitor_cmd.properties, so the export monitor did not use table splitting but needed also 44 hours for export (in addition to calculation of table splitting of around 20 hours which can be done online).
    At third try I konfigured the export monitor right, the duration increases to 7 days.
    Technical details:
    R3 Enterprise EXT 1.1, Kernel 640, MAXDB 7.5, actual R3ta
    10 CPU, 30 GB RAM, SAN
    8 parallel processes for export,
    8 tables to split to 16 parts each (COEP, COSS, COSP, COSB, GLPCA, CDCLS, AUSP, IBINVALUES)
    largest table: COSS with 85 GB
    DB-Size filled: around 1 TB, 50 Datafiles
    In special of MAXDB it would be best to use primary key for table splitting. But I found no documentation of the file R3ta_hints.txt where I can manipulate the splitting decision of R3ta. (I added IBINVALUES IN_RECNO as selective column).
    And now the questions:
    Do you know a detailed dokumentation of the file import_monitor_cmd.properties?
    Do you know a documentation of the R3ta table splitting options and input possibilities of R3ta_hints.txt?
    Can you give me some experiences of similiar tests or migrations?
    Best regards
    Andreas

    I´m actually trying to do a likewise thing with a 2,1 TB MaxDB 7.6.
    (in addition to calculation of table splitting of around 20 hours which can be done online).
    I´d be careful doing that online. If either at the time R3ta starts to evaluate the distinct values or after that table is finished someone does an insert to one of those tables you may miss that entry.
    I used DB50 - Statistics to find out the biggest tables. After I had those I created my own  R3ta_hints.txt checking each table in SE11 and DB50 to find out which field has the most distinct values. I have 85 tables in the R3ta_hints.txt.
    The R3ta run itself took almost three days (though database prefetching was activated).
    Since I had good experiences with packages of 250 MB in former migrations I spllited the rest of the tables with that value. At the end there were 1,114 packages.
    I started the export last friday, it´s still running.
    After my experiences the MaxDB can´t leverage the parallel unload as it would be expected. You may see a little better speed if you set the parameter LRU_FOR_SCAN to YES which will then use the full available data cache for table scans (as R3load does) instead of just 10 % of the cache if set to NO.
    What you see if you use parallel unload is (using x_cons  sh ac 1)
    T204   7     -1 User      21781 IO Wait (R)           0 0     45        98030278(s)
    T206   7     -1 User      21911 IOWait(R)(041)        0 0               98030278(s)
    T222   8     -1 User      21887 IOWait(R)(041)        0 0               132941587(s)
    T228   8     -1 User      21775 IOWait(R)(041)        0 0               132941587(s)
    T234   9     -1 User      21899 IOWait(R)(041)        0 0               105696431(s)
    T236   9     -1 User      21893 IOWait(R)(041)        0 0               105696431(s)
    T248  10     -1 User      21905 IO Wait (R)           0 0     40        101974717(s)
    T249  10     -1 User      21311 IO Wait (R)           0 0     41        101974717(s)
    The IOWaits with 041 are no real reads but in fact waits for another task reading the same tree/leafs.
    Markus

  • How to use table maintenance view in module pool screen

    hi ,
    want to use table maintenance view in a module pool screen so that i can edit, insert, delete and update date in to the ztable.please help.

    You can simply call it via SM30.   Or you can call the table maintence view from any program(report or module pool) using a function module.
      call function 'VIEW_MAINTENANCE_CALL'
           exporting
                action                       = 'U'
                view_name                    = 'Z_Table_Name'
           exceptions
                client_reference             = 1
                foreign_lock                 = 2
                invalid_action               = 3
                no_clientindependent_auth    = 4
                no_database_function         = 5
                no_editor_function           = 6
                no_show_auth                 = 7
                no_tvdir_entry               = 8
                no_upd_auth                  = 9
                only_show_allowed            = 10
                system_failure               = 11
                unknown_field_in_dba_sellist = 12
                view_not_found               = 13
                others                       = 14.
    Regards,
    RIch Heilman

  • Derive found flag in SQL with where clause using TABLE(CAST function

    Dear All,
    Stored procedure listEmployees
    ==========================
    CREATE OR REPLACE TYPE STRING_ARRAY AS VARRAY(8000) OF VARCHAR2(15);
    empIdList STRING_ARRAY
    countriesList STRING_ARRAY
    SELECT EMP_ID, EMP_COUNTRY, EMP_NAME, FOUND_FLAG_
    FROM EMPLOYEE WHERE
    EMP_ID IN
    (SELECT * FROM TABLE(CAST(empIdList AS STRING_ARRAY))
    AND EMP_COUNTRY IN
    (SELECT * FROM TABLE(CAST(countriesList AS STRING_ARRAY))
    =================
    I have a stored procedure which lists the employees using above simple query.
    Here I am using table CAST function to find the list of employees in one go
    instead of looping through each and every employee
    Everything fine until requirements forced me to get the FOUND_FLAG as well.
    Now I wanted derive the FOUND_FLAG by using rownum, rowid, decode functions
    but I was not successful
    Can you please suggest if there is any intelligent way to say weather the
    row is found for given parameters in the where clause?
    If not I may have to loop through each set of empIdList, countriesList
    and find the values individually just to set a flag. In this approach I can’t use
    the TABLE CAST function which is efficient I suppose.
    Note that query STRING_ARRAY is an VARRAY. It is very big in size and this procedure
    suppose to handle large sets of data.
    Thanks In advance
    Regards
    Charan
    Edited by: kmcharan on 03-Dec-2009 09:55
    Edited by: kmcharan on 03-Dec-2009 09:55

    If your query returns results, you have found them... so your "FOUND" flag might be a constant,...

  • Using Table Control

    Hi Experts,
    I am working on module pool Program using " Table Control ".
    the below code is a part of program.
    "  Here i want insert new lines ( New values ). Please tell me that how to Do? "
    MODULE USER_COMMAND_0100 INPUT.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      CASE SAVE_OK.
        WHEN 'INSERT'.
       "  Here i want insert new lines ( New values ). Please tell me that how to Do? "
        WHEN 'TOGGLE'.
          LOOP AT EMPLOYE-COLS INTO COLS WHERE INDEX GT 2.
            IF  COLS-SCREEN-INPUT = '0'.
              COLS-SCREEN-INPUT = '1'.
            ELSEIF  COLS-SCREEN-INPUT = '1'.
              COLS-SCREEN-INPUT = '0'.
            ENDIF.
            MODIFY EMPLOYE-COLS FROM COLS INDEX SY-TABIX.
          ENDLOOP.
        WHEN 'DELETE'.
         READ TABLE EMPLOYE-COLS INTO COLS WITH KEY SCREEN-INPUT = '1'.
          IF SY-SUBRC = 0.
            LOOP AT ITAB INTO ZEMPLOYE WHERE EMPID = 'X'.
              DELETE ITAB.
            ENDLOOP.
          ENDIF.
      ENDCASE.
    ENDMODULE.   
    Its Urgent  
    Thank You.
    Basu

    Hi,
    WHEN 'INSERT'.
    " Here i want insert new lines ( New values ). Please tell me that how to Do? "
    <b>Append initial line to EMPLOYE.</b>
    Or
    Change the table control attribute for rows.
    Reward if helpful.

  • I prepare chronologies in word, and i am trying to do the same in pages using tables and cells. But somtimes i need a cell to wrap onto the next page but I can't work out how to do it - any suggestions would be greatly appreciated

    I prepare chronologies in word, and I am trying to do the same in pages using tables and cells. But sometimes I need a cell to wrap onto the next page because the contents are bigger than the page or the space left on the page,  but I can't work out how to do it - any suggestions would be greatly appreciated

    brendanfromsydney wrote:
    What are the different opinions on why pages should not achieve this?
    As far as I know, Apple is free to choose to offer this or that feature.
    They never said that they want to clone Word or even compete with it.
    Differences between tables in both worlds are numerous.
    In Pages (or Numbers)
    - we can't sort a single column
    - we can't sort by row
    - we can't insert or remove a single cell
    - a cell can't cross pages boundaries
    If I understand well these design choices match :
    ++-+-+-+-+-+-+-+-++
    Apple Human Interface Guidelines:
    Apply the 80 Percent Solution
    During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution‚ that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.
    If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.
    +-+-+-+-+-+-+-+-+-++
    Yvan KOENIG (VALLAURIS, France) jeudi 9 juin 2011 16:03:52
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Order Query in SQ01 using Table Joins in CRM

    Hello Experts,
    I am trying to create a query using table joins in SQ01 in CRM because I need a report that will give me all transactions for a selected Business Partner.  I am unable to display any results when running my query.  I have found other threads which give a list of possible tables to join together, but the fields used in the joins were not described. 
    The tables I have joined in my query are as follows:
    CRMD_ORDERADM_H
    CRMD_ORDER_INDEX
    CRMD_PARTNER
    BUT_000
    I have used SE16 to try to search for additional tables to use for linking the Business Partner with a transaction, but I have been unsuccessful.
    Would anyone please give advice as how to proceed? 
    Reward points are available!
    Thank you in advance,
    David

    David
    The link with be the GUID.
    CRMD_ORDERADM_H = Document Header Table
    CRMD_ORDERADM_I = Document Line item Table
    CRMD_LINK = Lists various ‘link’ GUIDs, to
    access order Information
    The Table CRMD_ORDERADM_H will contain you transactions , once you find the GUID of your sales transaction in the table CRMD_ORDERADM_H.
    You then need to check the table CRMD_LINK.
    In this table you will then find a number in 11 = sales. This refers to the table CRMD_SALES. There are also links to many other tables ie Shipping, pricing, org etc.
    CRMM_BUT_SET0140 - for Sales Group, Sales Office, District
    CRMM_BUT_LNK0141 - for Sales Area data
    Transaction CRMD_BUS2000115 allows you to see all sales transactions for a BP. CRMD_BUS2000126 shows you activities for selected BP.
    Regards
    M

  • Custom Infotype - Using Table control in the screen.  IN OM

    Hi,
    I am having a requriement where in I need to create a custom infotype using table control in the screen. I have to create this in OM and I am using PPCI transaction to create the info type. I am able to create the infotype with fields but not table control. Please let me know if any one of you came across and help me with the process I need to follow.
    Thanks in advance.
    Venkat.

    Hello,
    After you create the info type throug PPCi, you can directly go to the Sceen module program created automatically while creating Info type and edit the screen.
    activate it after your changes.
    Regards,
    Srujan.

  • How can I use table control to enter data

    Hi all,
    I want to use table control to enter data, instead of using textboxes.
    So that the user can enter many data at once and just click the save button at the end of the work, only one click.
    How can I use the table control at this context?
    Thanks.
    Deniz.

    Hi deniz,
    go through it:
    /people/ravishankar.rajan/blog/2007/02/23/an-easier-way-of-displaying-and-editing-data-using-table-control
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/code%2bto%2bhandle%2bmultiple%2brecords%2bin%2bbdc%2btable%2bcontrol
    Regards,

Maybe you are looking for

  • Why can I no longer sync my iPad calendar with Google calendar?

    Why can I no longer sync my iPad calendar with Google calendar? What is the solution?

  • What monitor should I get for my Macbook Pro?

    I have a 2012 Macbook Pro I want to get an external monitor What spec monitor should I get? The only thing I'm worried about is getting the correct connection I'm assuming I want a monitor that will take DVI connection ALSO: would I need to buy a DVI

  • Movie using much more space than file size

    Hello. I published a movie in imovie to the media gallery in HD. It is a long video, so I knew it would take up a lot of space. It is listed as 5 GB in my imovie project folder. However, when I "show package contents" of the movie, the actual size of

  • Safari has gone after 4.2 to 4.3 update

    After the las update to get IOS 4.3, ther is a big hole in the bottom task bar. I need some minutes guess what was missing, I'm so used to seen this icons that I don't remember what they do. Looking on iPhone pubs I've seen that Safari has disapeared

  • Blank screen after i reset help please

    my screen is white blank i tried resetting and restoring numerous times also plugged it in to computer wont recongnize device please helpit is the iod nano