Calculate % Complete

I am trying to create a query that requires the % of the month complete.  I need to pass a date, have it read the factory calendar and then return to me the % of the month that has been completed.
I know that I can use the function module RKE_SELECT_FACTDAYS_FOR_PERIOD and it will return to me the number of days in the month based on the factory calendar.
In a query, how can I access this function module and have it return the # of days in the month and the day number we are on so I can create the percentage?
I then need to take that percentage and multiply it by my full month budget amount.  Since we only budget by the month and not the day, my requirement is to get the % of the monthly budget based on the day number we are on per the factory calendar.
I can do most of this in an function module, but how can I get the query to access this function module? 
Your help / advice is greatly appreciated!!!
Renee

virtual key figure?
or alternatively, you could store the number of days for the month in the Cube (which should not be that hard since you already have all those function modules figured out)... and then calculate the % "easily" in the query

Similar Messages

  • HAL Error Log Error Code = 1033 Native Code = 1030201

    Hello,
    I am geting the following error message in HAL logs:
    05/19/2010|193212|PlanApp/Plan2|Error|Calculate|Error Code = 1033 Native Code = 1030201 Error Msg = [Wed May 19 19:32:12 2010]PRODVIS/PlanApp/Plan2/admin/Error(1030201) Cannot create object: admin.txt, App\PlanApp\Cube\Plan2\CS\RBefLdMt
    05/19/2010|193212|PlanApp/Plan2|Error|Calculate|Method Ended - Calculate completed with exceptions.
    What might be the problem?
    Regards

    This happened due to the login I was giving to HAL. This user was administrator of Essbase and Planning but when I logged in the EAS admin console with it, I could not see any application. I'm not sure why though, but changing the user to the one that made the initial Essbase install did the trick.

  • SAP CPS script to calculate the percentage of number of jobs completed

    Hello
    I have 2 client specific jobs, which I am executing on 300+ ABAP system using SAP CPS system. I would like to know..
    what % of jobs completed successfully & failed.
    at present, using the filter method, I get a consolidate jobs status mail. some think like this.
    regards
    Shridhar Gowda

    Hi Shridhar,
    Redwood system maintains statistics for each job Definition.
    In job statistcis you can notice Execution Completed Count  and Execution Error Count .
    You can use Redwood script to pull those statistics
    Use following methods to extract them.
    getExecutionCompletedCount()
    getExecutionErrorCount()
    You can write code to get the error percentage and completed percentage.
    Hope this helps.

  • Sql query to calculate order completion time

    Hello,
    This is probably a textbook example, but I was wondering if someone could show me the technique to answer the following question based on the sample data:
    Show all orders from the orders table where completion time (defined as difference between time the order was completed and received). is > 5 hours
    Order_id
    Action
    Time
    1
    Received
    1/11/2014 10:12:00
    1
    Logged
    1/11/2014 10:15:00
    1
    Sent
    1/11/2014 15:15:00
    1
    Complete
    1/11/2014 16:15:00
    2
    Received
    31/10/2014 8:10
    2
    Logged
    31/10/2014 8:28
    2
    Sent
    31/10/2014 10:11
    2
    Complete
    31/10/2014 12:13
    3
    Received
    30/10/2014 13:10
    3
    Logged
    30/10/2014 15:10
    3
    Sent
    30/10/2014 16:10
    3
    Complete
    30/10/2014 17:10
    Thanks

    create table orders (order_id int, action varchar(50), [time] datetime)
    insert into orders values(1,'Received','1/11/2014 10:12'),(1,'Logged','1/11/2014 10:15'),(1,'Sent','1/11/2014 15:15'),(1,'Complete','1/11/2014 16:15'),
    (2,'Received','10/31/2014 08:10'),(2,'Logged','10/31/2014 08:28'),(2,'Sent','10/31/2014 10:11'),(2,'Complete','10/31/2014 12:13'),
    (3,'Received','10/30/2014 13:10'),(3,'Logged','10/30/2014 15:10'),(3,'Sent','10/30/2014 16:10'),(3,'Complete','10/30/2014 17:10')
    select order_id from (
    select *, datediff(hour,lag([time],1) Over(partition by order_id Order by [time]),[time]) diff
    from orders WHERE action IN ('Complete','Received')) t
    WHERE diff>=5
    drop table orders

  • How to calculate Planned % Complete of project server data?

    Hi All,
    I have got project server data in SQL server Analysis service. We have one Time Phased Assignment cube there.
    This cube gives budget cost, baseline cost, baseline work etc, but it does not contain % complete or planned % complete.
    Actually I need to create a time series schedule variance report, for that only I'm trying to find % complete or planned % complete.
    I got some formula from net for the same.
    SV=EV-PV
    EV= Budget at completion * % Complete
    PV=  Budget at completion * Planned % Complete
    % Complete= (Actual Duration/Duration)* 100
    We don't have these values directly, so we used
    % Complete=(Actual work/Baseline work) * 100
    I have used baseline cost instead of Budget at completion.
    So, I could find value of EV. But, for finding PV, I need to Planned % complete. How can I find it? Can anyone please suggest.
    Regards,
    Julie

    Alternatively, you could use the approach outlined here. Somwhat simpler than using EV.
    Will require making sure the Status Date is accurate within projects.
    http://niksprojects.com/blog/?p=126
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Delivery Completed Indicator  - Open PO Quantity Issue

    Hi All,
    I have an issue relating to our Open Purchase Order Report.  I have some POs which are appearing on the report eventhough they are marked, 'Delivery Complete' ie NOT open. The example of a PO is where the PO Quantity is 100 and the Goods Receipt is 99.  The user knows that there will be no further deliveries and therefore marks the PO 'Delivery Complete'
    In the Extractor to BI we have extracted this field ELIKZ 'Delivery Completed Indicator'.  The structure of our datamodel is
    PSA -> DSO (Write Optimised DSO) -> Cube
    We calculate the Open PO Qty by taking 'PO Qty' minus 'Goods Receipt Quantity' I have checked the example PO in the cube & DSO.  I can see that for the infoobject 'Delivery Complete Indicator' that it has been marked 'X' but only on the records relating to the Goods Receipt for this PO.  The original PO record is added to the cube eg on 1st Jan and then the Goods Receipt record, including the delivery complete indicator is added to the cube on 31st Jan, but the original record is not updated by this indicator.  Therefore at the moment I cannot use this to filter out records in my query.  See below how it looks in the Cube;
    Created Date - PO No - PO Line - Del Complete Indicator - PO QTy - Goods Receipt Qty
    01.01.2011       123      10             (Blank)                             100
    31.01.2011       123      10                 X                                                         99
    What should I do?  How have you created this report?
    Just to let you know I have already read the post Delivery Completed Indicator(ELIKZ:0COMPL_DEL) in 2LIS_02_SCL
    Many thanks for your help,
    Michelle

    Hi Kalyan,
    Thanks very much for your message,
    In my case if the Order Qty is not equal to receipted this does not always mean that it is open.  Sometimes the receipted quantity can be over or under (not equal) and the PO can be closed.  What do you mean by confirmed quanity?  Also, this is a Purchase Order report not a Sales report.
    You have said...
    "Then I would suggest to still keep the condition on the Net ord qty and Net confirmed qty and exclude the del compl indicator as X and also the status as open "
    I don't understand how this will work.  My issue is that the indicator is not on all the records of a PO only the receipted records.
    Can you help again please?
    Many thanks
    Michelle

  • In repeat run, can i calculate Depreciation for perticular period.

    Hi
    when I calculate the depreciation in Repeat Run, It shows the message that for 12 periods only the Dep is calculated.
    But I want to calculate the Dep for Particular period. Is it possible?????
    If possible pl give me the suggession
    Venkata Raju

    Hi,
    You can't do.
    See below note:
    It is possible to repeat the posting run within the period last posted. However, in contrast to the first run for a period, the repeat run can be restricted to specific assets. In the repeat run, the system posts changes to depreciation, as compared to the depreciation amounts from the previous run.
    Normally the repeat run is carried out at the end of the fiscal year, if completing postings are necessary because of corrections to manual depreciation or depreciation terms.
    Regards,
    Murali

  • How to calculate the next incoming PO for a given material/plant in an elegant way

    Hi experts,
    Given a material and a plant i want to find out when the next PO is arriving. Is there a function module to calculate it?
    This is the values i want to retrieve, but this method is not very optimized and can have performance issues:
    "Entry un EKPO with material (MATNR), plant (WERKS), and Delivery Completed Indicator (ELIKZ) = blank, select the PO
    numbers.
    For all the POs, sort in EKET for the field ‘Delivery Date’ (EINDT) to get the next delivery date being
    EINDT ≥ Todays day
    Take the next PO to be received. Do the calculation (MENGE – WEMNG) for the item
    The result of the calculation is the amount still open and that is supposed to be received. "

    Hi,
       You can use the FM: MD_STOCK_REQUIREMENTS_LIST_API. Execute the FM with plant and material number in selection. Now, check the structure: MDEZX which will give you all the requirements for the item. You can filter the items in the structure where MDEZX - DE = BE which will give you only the purchase orders. Also, the items will be sorted automatically based on the date.
        Please check the same and revert back.
    Regards,
    AKPT

  • How to created a Report to calculate On-Hand inventory for pending sales

    hi,
        how to  created a Report to calculate On-Hand inventory for pending sales orders.for this report what are the tables and fields we have to use give me sample report.
    thank you
    radhakrishna.

    Hi!
    Tables:
    VBAK - sales order header data
    VBAP - sales order position data
    VBUK - sales order status header data
    VBUP - sales order status position data
    VBELN field is the key between the tables.
    Statuses in tables VBUK, VBUP: A-uncompleted, B-partially completed, C-fully completed
    Regards
    Tamá

  • How to calculate totals in Blocked ALV Report

    Hi All,
    Can any body tell how to calculate totals & sub totals in
    Blocked ALV Report[Blocked List].
    Thanks in advance
    Thanks & Regards,
    Rayeezuddin.

    read this it might help
    Sums                                                       
    15. No_sumchoice(1) TYPE c : This parameter allows the choice for summing up
    Only by fieldcatalog.
    Value set: SPACE, 'X'
    'X' = fields which are to be summed, passed by the calling program (FIELDCAT-DO_SUM = 'X'). The user should not be able to change this value interactively.
    16. No_totalline(1) TYPE c : Removes the option of having totals after sub-totals.
    Value set: SPACE, 'X'
    'X' = no total record is to be output. Subtotals can still be calculated and output. The fields in the subtotals are flagged DO_SUM = 'X' in the field list.
    17. No_subchoice(1) TYPE c : Does not allow the user to interactively change the field chosen for subtotals.
    Value set: SPACE, 'X'
    'X' = value whose change triggers subtotals, provided by the calling program. The user should not be able to change this value interactively.
    18. No_subtotals(1) TYPE c : No subtotals possible          
    Value set: SPACE, 'X'
    'X' = no subtotals.
    19. Numc_sum(1)  TYPE c : Totals only possible for NUMC-Fields.
    20. No_unit_splitting TYPE c: No separate total lines by inh.units   
    21.totals_before_items TYPE c: Display totals before the items   
    22. Totals_only(1) TYPE c :  Show only totals      
    Value set: SPACE, 'X'
    'X' = only total records are output.
    23. Totals_text(60) TYPE c : Text for 1st col. in totals   
    Value set: SPACE, string (max.60)
    ' ' = The first column in the total record contains an appropriate number of '*'s to indicate the total by default. If the first column is wide enough, the string 'Total' is output after the asterisks.
    'String’ = The string passed is output after the total indicated by '*', if the column is wide enough.
    24. Subtotals_text(60) TYPE c : Texts for subtotals
    Value set: SPACE, string (max.60)
    ' ' = In the first column of subtotal records, the subtotal is indicated by an appropriate number of '*' by default. If the first column is not a subtotal criterion, the string 'Total' is output after the asterisks, if the column is wide enough.
    'String’ = the string passed is output after the subtotal indicated by '*', if the column is wide enough and the first column is not a subtotal criterion. If it is a subtotal criterion, its value is repeated after the total, if the column is wide enough.
    ELSE TELL ME I WILL PASTE COMPLETE HELP
    regards

  • How to calculate the total running time for process from sysssislog entries

    Hi All,
    I have the below query which gets me the log entries form the logs table when the process started/completed.
    Select row_number() over (order by starttime) row_num,Substring( Substring(message, CharIndex('''',message) +1 ,Len(message)) ,0, CharIndex('''',Substring(message, CharIndex('''',message) +1 ,Len(message)))) as Description,
    starttime,endtime,message
    from dbo.sysssislog
    where (message like 'start%' or message like 'finish%' ) and
    LEFT(Substring( Substring(message, CharIndex('''',message) +1 ,Len(message)) ,0, CharIndex('''',Substring(message, CharIndex('''',message) +1 ,Len(message)))),1) between 'A' and 'Z'
    order by starttime
    However,I have to build a report on the top of it showing how much time that attribute/dimension/heirarchy took to execute(Ex-How much time did YearlyReview dimension take to complete).I dont have much knowledge of T-SQL and unable to figure out how to calculate
    that on SQL or report level.
    Could someone please assist me in getting the exact query for that?
    Thanks a lot.

    I get the below output(sample 20 rows) on executing this query.Also,a start process does not necessarily follow up a finished message for the same dimension as it may have been stopped or it failed.So we need to leave it as NA in case it started but dint
    finish
    Row_Num Description starttime endtime Message
    1 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Super Type' dimension.
    2 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Super Type' dimension.
    3 Team Member Indicator 12/13/12 16:38 12/13/12 16:38 Started processing the 'Team Member Indicator' dimension.
    4 Team Member Indicator 12/13/12 16:38 12/13/12 16:38 Started processing the 'Team Member Indicator' dimension.
    5 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Super Type' attribute.
    6 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Super Type' attribute.
    7 Specialist Merger Indicator 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Specialist Merger Indicator' attribute.
    8 Specialist Merger Indicator 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Specialist Merger Indicator' attribute.
    9 YearlyReview 12/13/12 16:38 12/13/12 16:38 Started processing the 'YearlyReview' dimension.
    10 YearlyReview 12/13/12 16:38 12/13/12 16:38 Started processing the 'YearlyReview' dimension.
    11 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Repeat Caller' dimension.
    12 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Repeat Caller' dimension.
    13 Year 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Year' attribute.
    14 Year 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Year' attribute.
    15 Staffing Function 12/13/12 16:38 12/13/12 16:38 Started processing the 'Staffing Function' dimension.
    16 Staffing Function 12/13/12 16:38 12/13/12 16:38 Started processing the 'Staffing Function' dimension.
    17 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Repeat Caller' attribute.
    18 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Repeat Caller' attribute.
    19 PAC HV Cust 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC HV Cust' dimension.
    20 PAC HV Cust 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC HV Cust' dimension.

  • How do I use acrobat to calculate quantity/price as a form?

    Hello, I am trying to find out how to complete a form in acrobat pro using fields to calculate quantity/prices, ending in the field "TOTAL". This form is designed in illustrator. Here is a picture of the form: http://db.tt/gJsLWngT  Can anyone help me complete to process? If I am taking the wrong approach to this please let me know. I would greatly appreciate it, thank you.

    You need to place text fields as your Quantity and Total columns, 2 in each
    row.
    For example, in the first row you can create: Quantity1 and Total1
    Set up the quantity fields to accept only numbers (under Format).
    The total fields should be set to be read-only, and under Calculate you can
    use the Simple Field Notation to calculate their value.
    In the case of Total1, you can use something like this (for the retail
    price):
    Quantity1 * 35
    The value will be automatically updated whenever the value of Quantity1
    changes.
    For the last total field, use the first calculation option: Value is the
    (sum) of... and then select all the other total fields from the list.
    There are many more things that you can do...
    The tutorials on this website contains a lot of information about forms in
    PDF files:
    http://acrobatusers.com/tutorials

  • How can i calculate tempsize and logdir size ?

    Hello:
    I have one database on a primary server and its replica on a replica server.
    Since one week to now, Mexican Exchange have had a considerable growth on transactions.
    My database works in line, every night all data is cleaned waiting for new data on next day.
    From last Thursday (29 april 2010) my replicas have had problems on drop all data using delete from.
    I use delete from because those tables are Oracle cache groups defined.
    Looking for error on tterrors logs (yesterday I got this error) I could see that replica was ran out of temporal memory.
    On line database and replica database I have defined same temporal memory size, on this case 512Mb. But primary database did not send any error about this parameter, so if I checked “monitor” columns on database, my temp_in_use size is too less than temp_allocate_size.
    My problem is, how can I calculate temp_allocate_size ?
    So I have had close to 3,000,000 record on a simple table, I mean, I could have 2 or 3 tables with same number of rows.
    If I have this parameter (may be 9,000,000) rows to be deleted, is there any way to calculate temp_allocate_size ?
    But now, I suppose that I need enogh space on “LogDir”, my high_water_mark for permanent memory is 10GB, I have defined 16 gb for LogDir, but if I stopped replication since the operation starts, I had 100% space used at middle of my operation, so 5Gb on real database used, it is using close to 16 gb on LogDir.
    My second doubt … is there any way to calculate LogDir size having the maximum database size ??
    Thanks a lot for your help.
    Regards.

    I think that approaching this from the perspective of increasing temporary space and log space is not the best way.
    Firstly, there are better ways to delete all rows from a table instead of using delete...
    1. For regular tables (ones that are not part of a cache group) you can use TRUNCATE TABLE ... This operation is replicated but the voilume of replicated data is vastly smaller than if you delete all rows individually. Also, it should take a lot less Temp space on both the source and target system.
    2. For cache tables, you could use UNLOAD CACHE GROUP ... This is similar to TRUNCATE but for cache tables. Again, this operation is replicated. Note that if you are using AWT or SWT cache groups and you DELETE in TimesTen then the data is also deleted from Oracle... is that wjhat is desired?
    If you have to use DELETE then it is very important that you delete the rows in small batches rather than as one huge transaction. Trying to replicate a delete of 3M rows will cause huge problems for replication. A much better solution is to delete in smaller batches using some application logic as follows:
    loop:
    commit;
    DELETE FIRST 1000 FROM sometable;
    If rowcount > 0 then goto loop;
    commit;
    This approach has 5 benefits:
    1. Much less Temp space will be needed.
    2. Replication will be able to process the delets as they occur rather than waiting until all 3M rows have been deleted and then trying to tepliate a single transaction of 3M deletes. This will greatly improve replication performance and also prevent excessive log file buildup.
    3. Checkpointing will be able to purge log files as the delete progresses rather than having to wait until all rowsw have been deleted. This will prevent excessive log file buildup.
    4. The overall time required will be much reduced compared to deleting all rows in a single delete.
    You should not stop replication while the delete s are being done as this just causes log file accumulation.
    To answer your original question. it is not possible ot 'calculate' the required temp space pof log space; rather one must use observed data from when the system is running to determine the necessary size. For Temp size, you can look at the Temp high water mark to see the maximum space used and then set TempSize to somewhat more than that value. For log space, you need enough to sustain the maximum amount of log data generated with some contingency. Running our of log space is a very bad idea...
    If you adopt my suggestions above then you can avoid these issues and also complete the cleanup of data in a shorter time.
    Chris

  • How to Count Number of completed line items in past 6 months / 12 months ?

    How to Count Number of completed line items in past 6 months / 12 months ?
    Hi,
    I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
    Purchase Order document = ZEBELN
    Line Item = ZEBELP.
    I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
    I have "Delivery Completed" field, ELIKZ.
    So, based on this would I be able to calculate it in Query Designer?
    If so, Please let me know how

    Hello Deva
    If youe want to calculate the completed line item for last 6 or 12 month then i think u will be displaying the query data for these montrhs...create a customer exit to give you date range and restric it in filter area....
    Now Choose any of the below option
    1. I would suggest to implement an additional key figure "counter" in cube and fill values with one for which delivery is completed.
    Now use calculated key figure in Query Designer based on logic
    IF counter = 1 THEN counter ELSE 0
    OR
    2. create a formula variable based on ELIKZ and use replacement path variable, it will display you no. of docs for which delivery is completed....
    Award points if it solves your problem
    Revert back in case of further assistance...
    Thanks
    Tripple k

Maybe you are looking for

  • Please help me with the paint tool!

    Sorry for all the simple questions, but I'm having so many problems with Flash's drawing tools it isn't funny. What I want to do is draw a series of slightly diagonal stripes. In any other program, I'd use the line tool to draw the partitions and the

  • Bt infinity in a block of flats

    Okay so I finally moved out from my parents house and bought a flat with my girl friend, however We are a bit broadband crippled here, I'm currently with Sky Broadband ( Naughty I know being with another provider and posting in a BT forum) Becasue w

  • Question about multiple VLAN groups?

    Hi I took over this task from a colleague. I am asked to implement the following for the 2 server pools: VLAN 1000 - common server management VLAN 2501 - Production heartbeat VLAN 2502 - Production live migrate VLAN 2503 - Production VM guest VLAN 35

  • I'm trying to convert a PDF to Word. The convert box will not let me choose a format.

    I am signed in and trying to convert a PDF to Word. I can't get the convert box let me choose the format (won't light up) What am I doing wrong?

  • The exact date when iTunes 10.5 will be reased?

    hey guys, does anyone know the exact date when iTunes 10.5 will be reased? is it same as october 12th?