Curent period calculation

gUYS
I am trying to calcualte amounts which is for that whole year from when user enter the value
say user enter  as 06-2007 ...then i want to calculate all value from 06- 01 ..2007 and similarly if they enter 10-2007 ...then i want all cumulated value to the begining of the year... that is 10-2007 to 01-2007
is there ant sap customer exit available?

Create a customer exit variable, named WYTENT.
Let say the upper value (entered by the user) will be entered in a single mandatory variable, named WVO_MTHS
and code this into the ZXRSRU01program.
  when 'WYTENT'.
    if I_step = 2.
      loop at I_T_VAR_RANGE into loc_var_range
      where vnam = 'WVO_MTHS'.
        clear l_s_range.
        concatenate loc_var_range-low(4) '01' into l_s_range-low.
        move loc_var_range-low to l_s_range-high.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'BT'.
        append l_s_range to e_t_range.
        exit.
      endloop.
    endif.

Similar Messages

  • AR/AP & SALES for period  CALCULATION on top of 0FIAR_C03/0FIAP_C03

    hi,
    i want to create DSO/DPO report on top of 0FIAR_C03/0FIAP_C03 line item cube .so please tell me in detail on how to calculate account recievable/account payable  & sales for the period calculation by just  having credit and debit as keyfigures.  Please specify in detail
    Expect a quick reply...
    Thanks & Regards,
    Montz
    Edited by: montz2006 on Aug 2, 2010 7:33 PM

    Guys  ,
    Plz reply....

  • "Previous Period" Calculation

    I'm building a 12 monthl trend reports in Deski and need to call a previous period value (which i halve already retrieved in the query) into a current period calculation. The example would be "Installation Revenue divided by Previous Period Installations".  Is there an easy way to do this?

    You try to create a variable using the "Previous" function in Deski and use this variable in your calcualtion.

  • Grace period calculation Issue

    Hi Gurus,
    in oba3 i created a tolerance group for which the grace period is 3.
    i assigned this tolerance group to my customer,so that the due date is extended to 3 days from the due date.
    i have a payment term which gives 5% cash discount when paid within 15 days and item due in 15 days.
    i have a customer invoice whose baseline date is 18.08.2010. The item should be due only on 18.08.2010 + 15 + 3 = 05.09.2010, with the cash discount.
    05.09.2010 is a sunday.
    my query is, my customer decides to pay the item on next business day,06.09.2010,monday and looses his cash discount. which should not have happend.
    how can we solve this issue.ie, the due date calculation by adding grace period should exclude weekends and public holidays.
    what i have tried is, maintaining entry in obba for my house bank which calculates the value date.
    but it didn't prove succesufull. i am using f-28 to manually clear the customer invoice created using f-22.
    someone sleep over this and help me
    thanks and regards,
    ficoguy.

    Hi,
    Try function module HOLIDAY_GET, snippet of code:
    CALL FUNCTION 'HOLIDAY_GET'
           EXPORTING
                holiday_calendar           = 'ZA' - (Country e.g. South Africa)
                factory_calendar           = 'ZA' - (Country e.g. South Africa)
                date_from                      = HOLIDAY_DATE_FROM
                date_to                           = HOLIDAY_DATE_TO
           IMPORTING
                returncode                      = return_code
           TABLES
                holidays                          = holiday_tab
           EXCEPTIONS
                factory_calendar_not_found = 1
                holiday_calendar_not_found = 2
                date_has_invalid_format    = 3
                date_inconsistency         = 4
                OTHERS                     = 5.
    Regards,
    Vuyo

  • Fiscal period calculation

    Hi,
    I have a requirement wherein I need to get the following information.
    I have a Fiscal period for Post_period1 which refers to the MARV-VMGJA/ MARV-VMMON,  and another Fiscal period as  Post_period2 which refers to  MARV-VMMON.
    I need to find out the fiscal period by deducting the posting period2 from posting period1
    e.g. 2010/03 is the post_period1, 12 is post_period2 . I want the value which will be  "2010/10 - 12". How can I achieve this?
    Regards,
    Vaishali.
    Edited by: Vaishali Rautray on May 21, 2010 4:40 PM

    Does the below thread helps you, check?
    Re: Posting Period Date Calculation
    Regards,
    Jilan

  • Arbitrary time period calculation.

    How to do time series calculations for custom time series which are not sequential.
    We have time period called diet which is not sequential like calender date Example given below :-
    May 2012 Diet starts from 24/04/2012 to 16/06/2012 And May 2011 Diet starts from 01/02/2011 to 31/05/2011 diff
    100 50 50
    we need to compare May 2012 diet to May 2011 diet and create a difference column and also need to calculate variance on this. Also need to add other dimension like geography and status
    For this i tried to use Ago function but it wont allow us to calculate as they are not sequential
    Let me know if there is any solution.
    Thanks
    prabhu

    Any one on this ....

  • Posting period calculation

    Hi all,
    I have time characterstics Posting period (0fiscper3).........and i have hierarchy on this.......FY QUATERLY.........
    Now my requirement is in report i need two cloumns one with PRESENT QUARTER and one with PREVIOUS QUARTER...........how to achieve it?
    I tried to create a user entry variable for present quarter but for prvious quarter u cannnot specify offset value, as the option is greyed out.
    Please help

    Hi,
    In one cloumn use the variable whcih has current quarter.
    For previous quarter, create a restricted key figure and restrict it on quarter and give offset value -1.
    Hope this helps...

  • Due this period calculation at report

    hi
    for FI aged debit report i want use this column due this period.
    suppose due date is 10/01/2009  if i enter date 12/01/2009 need to show due date is 2 days ?
    like how can get this at report

    HI Suneel..
    Check this...it can give u some idea...
    no of days caluculation in report
    Regards,
    Debjani...

  • Employment period Calculation

    Hi,
    How can we calculate the employment periods of an employee, in my case after completion of one year an employee is going to get eligibility of plans. for this how can i proceed.
    With Regards,
    Sushma.

    Hi
    <b>Where you have to calculate ?</b>
    <b>Is it going to solve by report ?</b>
    You just doing it manually then .
    it will going to solve by just simple coding.
    It should be done automatically and give you desired result choose automatically the paln pay accordingly then there is other way.
    <b>Exactly why you are using it ?</b>
    Manoj Shakya.
    <b>Reminder : Points should be given on answers.</b>

  • Time Period Calculation

    Hi Experts,
    My requirement is I have equipment 'E'  and this is assigned to some work from 8am to 2 pm.
    If it is again assind to work for the same period or time period which is in touch with between 8 am and 2pm. I have to giva a error.
    Is there any function module to calculate this.
    Or Please send some logic.
    Thanks & Regards,
    B. V. Rao
    Edited by: bala virupaksha on Nov 7, 2008 12:41 PM

    Hi,
    Hi Surabh,
    I am also doing that.
    Are you trying in the internal table? The logic should be via Database table.
    so you need to create a DB table with fields like
    equipment
    start_timestamp  " - Not just time
    end_timestamp           " - Not just time
    To find if the time clashes between already given time, you can build logic like looping through all the timestamps of the given
    equipment and ...
    if new_start_timestamp > db_start_timestamp and
      new_start_timestamp < db_end_timestamp.
       "  stop from proceeding.
    elseif new_end_timestamp > db_start_timestamp and
             new_end_timestamp < db_end_timestamp.
       "  stop from proceeding.
    elseif new_start_timestamp < db_start_timestamp and
             new_end_timestamp > db_end_timestamp.
       "  stop from proceeding.
    else.
    " You can proceed
    endif.
    Cheers,
    Kothand

  • Difficult time period calculations

    I have a monthly report where I have to add up periods of time between different records, without counting any overlapping time twice. Each record has its own start and stop date/time. The length of time from each record's start to its stop can be anything from 1 minute to the entire month. So for example, if there was 1 record that covered the whole month, I wouldn't need to look at any other records, because the whole month is covered. But if not, then I have all these pieces of time covering various parts of the month, some overlapping, some not.
    If A starts at 1/1/01 0800 and
    stops at 1/1/01 1200, and
    B starts at 1/1/01 0900 and
    stops at 1/1/01 1300, then I want to see the combination of these 2 as 5 hours. Other records C, D, ... could be entirely within this time period, or completely disjoint, or partially overlapping it. Again, I can't count any overlapping time twice. I have some lengthy code that does the job, but it takes a long time to run, because I create temp records that reflect the time periods found so far, and I don't add any new temp records that overlap the ones already created. It takes a long time to do all the comparisons. Anybody have any clever ideas for doing this faster?

    Mike,
    I believe this should work for you:
    DECLARE
    CURSOR c1 IS
    SELECT start_date, end_date
    FROM test_table
    ORDER BY start_date;
    v_total_time NUMBER := 0;
    v_start_date DATE;
    v_end_date DATE;
    BEGIN
    FOR r1 IN c1 LOOP
    IF r1.start_date > NVL (v_end_date, r1.start_date - 1) THEN
    v_start_date := r1.start_date;
    ELSIF r1.end_date > v_end_date THEN
    v_start_date := v_end_date;
    END IF;
    IF v_start_date IS NOT NULL THEN
    v_total_time := v_total_time + (r1.end_date - v_start_date);
    v_start_date := NULL;
    v_end_date := r1.end_date;
    END IF;
    END LOOP;
    DBMS_OUTPUT.put_line ('Total time: ' &#0124; &#0124; TO_CHAR (v_total_time) &#0124; &#0124; ' Days.');
    END;
    /

  • Actual sales qty forecast quantity in a single period calculation

    hi experts,
    i have a report requirement to display the report in below format in bex.
    Jan-05     Feb-05     Mar-05     Apr-05     May-05     Jun-05     Jul-05     Aug-05     Sep-05     Oct-05               
    ACT     ACT+FC     FC     FC     FC     FC     FC     FC     FC     FC               
    3,361       3,807       4,833       4,069       4,491       5,935       4,776       4,926       6,386       6,898            
    312       342       457       381       393       544       439       445       634       676                                                          4,340       5,029       5,132            4,890           5,011             4,910             4,111            2,367             4,432
    say for example we are february
    in the bex report it has to display Actual sales qty for jan and act+forecast for feb and remaining months till december it has to display forecast quantities.
    how can i achieve that in bex?
    NOTE: ACTUAL SALES QTY, FORECAST QTY are two different keyfigures.
    regards

    ******Actuals
      when 'ACC_SAL'.
          if i_step = 2.
            loop at i_t_var_range into st_var_range where
                                        vnam = 'UV_CAL'.
              st_range-sign = 'I'.
              st_range-opt  = 'BT'.
              st_range-low  = st_var_range-low. "cper.
    **** Get Current Week.
    *DT = DT - 27.
              CALL FUNCTION 'DATE_GET_WEEK'
                EXPORTING
                  DATE         = DT     "SY-DATUM
                IMPORTING
                  WEEK         = week
                EXCEPTIONS
                  DATE_INVALID = 1
                  OTHERS       = 2.
    **** Get previous week
              DT = DT - 7.
              CALL FUNCTION 'DATE_GET_WEEK'
                EXPORTING
                  DATE         = DT   "SY-DATUM - 7.
                IMPORTING
                  WEEK         = PRV_WK
                EXCEPTIONS
                  DATE_INVALID = 1
                  OTHERS       = 2.
              if  week+4(2) = 01.
                st_range-low  = PRV_WK.
                st_range-high = PRV_WK.
              else.
                st_range-high = PRV_WK.
              endif.
              append st_range to e_t_range.
            endloop.
          endif.
    *******Forecast
        when 'UNCONDDP'.
          if i_step = 2.
            clear: st_range, st_var_range.
            loop at i_t_var_range into st_var_range where vnam = 'UV_CAL'.
              st_range-sign = 'I'.
              st_range-opt  = 'BT'.
              CALL FUNCTION 'DATE_GET_WEEK'
                EXPORTING
                  DATE         = SY-DATUM
                IMPORTING
                  WEEK         = week
                EXCEPTIONS
                  DATE_INVALID = 1
                  OTHERS       = 2.
              st_range-low  = week.
              st_range-high = st_var_range-high.
              append st_range to e_t_range.
            endloop.
          endif.

  • BPC75NW - Periodic Amount Not Calculating for records with blank YTD value

    We are on BPC75NW SP6 and have a YTD consolidation application.  Data is loaded on a monthly basis uising a process of importing data files from supplying systems and then loading them into BPC using the data manager append function with a transformation file.  YTD amounts are as expected and 'most' periodic amounts are also calculated correctly via MDX mesures in reporting.  However, in situations where we have a P&L YTD balance in one month (say January) and then in the next month (February) there is no longer a YTD balance in that P&L account, no record is loaded for February YTD and the system is not calculating any February periodic amount.  Example:
    January - Load $100 to a P&L Account which is the YTD amount
    The January YTD amount = $100.
    The January Periodic amount = $100.
    February - Load no record to the same P&L account as above (as the YTD amount is now 0)
    The February YTD amount in the system is blank
    The February Periodic amount in the system is blank (This should be a NEGATIVE $100)
    As a possible work around we have also tried to load a 0 to February.  The data manager package shows the record as loaded successfully but since it is a 0 it really does not put it into the database. 
    Surely someone out there has already hit this situation and is willing to share the solution.
    Thank you,
    Vicki S.

    This problem was resolved by installing SAP Note 1405993 - MDX: Error: Invalid MDX command with
    CURRENTMEMBER.  The current text on the note does not describe our error but SAP will not extend the text to cover this issue. 
    Prior to installing this note, the following other notes were also installed but they did not fix the periodic calculation issue.  Under SAP's advisement we are going to leave them however as 'they should not have any side effects':
    1529720 MDX: No data for calculated member and metadata reference
    1590976 MDX: Incorrect data for IIF
    1584196 MDX: Calculated members and different dimensions
    1528374 MDX: System error GET_PRPTY_VALUE-02-
    I will now close this message.
    Vicki Shrontz

  • Dax Calculating Same time previous period with nonstandard periods

    I need help dealing with prior period calculations where the periods are not standard.
    In our business we define these time periods based on 8 to 10 week periods that really have no correlation to standard weeks, months or quarters.  Additionally there may be some time between these periods that are not defined. For example:
    Period 1 (p1) = June 18 - Sept 2
    Period 2 (p2) = Sept 17 - Dec 9
    The length of the periods are variable and when one ends another does not necessarily begin.
    I need to figure out how to compare the sum of a metric in Period 2 with the sum of a metric in Period 1.
    I have a standard Date dimension. And I have a period deminsion with the period labels (p1, p2 etc.) the start date, the end date of the periods, and a column called previousPeriod that has the label of the prior period.
    Each Fact has a Period ID so that I can use period as a dimension.One of my measures is Sum(sales).
    I want it so that if I am viewing the Tabular cube by period, I can have the sum of sales for that period, and the prior one. I hope it is clear what I am trying to do.

    You should add to your Date table a column that contains an incremental number for each period, then write something like:
            CALCULATE
                [Sales],
                ALL
    ( 'Date' ),
                FILTER
                    ALL
    ( 'Date'[IncrementalPeriod] ),
                    'Date'[IncrementalPeriod]
                        =
    EARLIER ( 'Date'[IncrementalPeriod]
    ) - 1
    I suggest you this pattern that will be published on March 31 - it contains many more examples, including how to write the make this formula working also with a partial arbitrary selection of days in the selected period:
    http://www.daxpatterns.com/time-patterns
    Marco Russo http://www.sqlbi.com http://www.powerpivotworkshop.com http://sqlblog.com/blogs/marco_russo

  • Reg : Urgent - How to provide a calculation for a period prior to the selection.

    Hi,
         I have a requirement to create a dashboard prompt for a range of dates . such as
    from date (01/08/2012) -
    to date (10/10/2012)
    Now when I select this range in my dashboard prompt my report should be as shown
    Location
    Curent Period Sales
    Previous Period Sales
    India
    Sales between (01/08/2012) to (10/10/2012)
    Sales between (01/08/2011) to (10/10/2011)
    How do I achieve this
    Pls help
    Thanks in advance
    Reg
    Niv

    Hi Akshay,
       yup.. but the data wud b distributed wrto month having as many number of rows wrto the months though the column is hidden .
    I had tried a way to put the from_date in a presentation variable - PV1 and
                                            to_date in a presentaion variable - PV2 .
    Now i got the previous years same day and month by
    I created another 2 new presentation variable P11 AND P22
    which stores the previous period date values
    I gave this formula in the EDIT FORMULA of the column of the dashboard prompt
    VALUE OD P11 = TIMESTAMPADD(SQL_TSI_DAY,-365,@{PV1})  and
    VALUE OF P22 = TIMESTAMPADD(SQL_TSI_DAY,-365,@{PV2})
    Now I created two reports in a same criteria where
    report 1 uses presentation variables PV1 and PV2 (to get current sales)
    and
    report 2 uses presentation variables P11 and P22(to get previous period sales)
    and combined using UNION.
    When I select all the 4 dates in Dashboard prompts, I get the respected report .
    But both the sales come in the same column like
    Location               Sales
    India                414413.2231(current period)
    India                     546623.7(previous period)
    U.S                   534872.223
    U.S                     912452.23
    I want them as two diff columns and want to hide my dashboard prompts P11 and P22
    Is there any cahnges to be done or another way to achieve this scenario , pls help.
    Thanks in advance
    Reg,
    Niv

Maybe you are looking for

  • How do I get my 'On my iPhone' Contacts to sync to iCloud?

    We just upgraded my son's Mac to 10.8.2 from SnowLeapord. He didn't previously have iCloud support. So on his iPhone he had his contacts stored as 'On my iPhone'. He had a separate Contact list on his Mac for his AIM addresses.  We turned on iCloud s

  • Troubles with the Click Wheel (or whatever the "technical term" is) HELP!

    My iPod works pretty well, except for the click wheel (or whatever you wanna call it). It scrolls fine, but when it comes to trying to press the menu button, or even sometimes when I try to press the play, forward or backward button, it seems to thin

  • OnyX Doesn't Launch

    Hi, I have been having some glitches on my MBP. I downloaded OnyX a long time ago and ran it once every month or so. I have missed a few months and wanted to run the program to see if these glitches could be fixed. However, OnyX now won't launch. I c

  • Can't sign document

    Provider type does not match registered value error 2148073499

  • Install Trial Versions without a personal Adobe ID

    I have a question: I need to make a demo to a customer, so I need that they got installed Creative Cloud software, trial versions, for just one day, to up to 5 computers. I know that you can download a 30 day trial version using a free Adobe ID, but