Calculating prior months using off-set and crossing to prev year

Gurus,
I am getting current month period based on user entered value and calculating prior month by off-setting current month by 1.
it works fine when current month value is greater than 1. If it is 1, prior month does get evaluated as 12 of previous year.
Example...
If Current period is - Feb, 2008 (02/2008). previous period comes fine as Jan, 2008.
If current period is Jan, 2008 (01/2008) perious period is unknown. (I want it to be 12/2007).
is there way to handle this without too much coding etc?
Regards,
-SM

Mayank,
What is SAP variable for Fical Year/Period, which will have both month and year value? (I guess I need to Fiscal posting period rather than Cal month?)
Also what is SAP variable for Quarter/Year? I need to off-set of quarter also.
Thanks, -SM

Similar Messages

  • I'm using a mac and bought a on year Adobe CC . Where can i find the icons to download them?

    I'm using a mac and bought a on year Adobe CC . Where can i find the icons to download them?

    Sign into your Adobe account and download the CC app.
    Mylenium

  • Problem with restricted key-figure using off-set variable

    Hello Gurus,
    I have created a query in Bex Query Designer with a key figure restricted. This key figure shows me the 0amount value for the last month. When I select 003.2009, the key figure brings the 002.2009 values. I used an off-set variable to do this
    It works!
    But when I show this key-figure in Webi, no value shows up on the table.
    Any suggestions?
    tks
    Edited by: Allisson Valverde on Jul 23, 2010 12:12 AM

    Which variable are you using in BEx and in WEBI to restrict the month/year?

  • Report Generation Toolkit (Word) : How to use correctly bookmark and cross-reference without "Error! Reference source not found"

    Hi,
    I try to generate a report using a template. In my template I use some cross-reference to refer to one bookmark. For exemple in the first page I created a bookmark for my name and in the header I created a cross-reference refer to my name. The problems is when I run my VI the bookmark actualise perfectly but the cross-reference refer to the bookmark can't actualise with the same value and generates an error : "Error! Reference source not found".
    Can somebody help me please!
    Nki
    Solved!
    Go to Solution.
    Attachments:
    01.jpg ‏72 KB

    Hi,
    When i create the word template, the bookmaks and the cross-reference referred to the bookmark update correctely. The problem is when I try to change the bookmark using "report generation from template vi" the bookmark change but not the cross-reference and the error generated is "Error! Reference source not found". 
    I make coople reasherch and i think they have no solution for this because : "if the text in a heading referred to in a cross-reference is revised, the cross-reference to the heading may no longer work" (http://office.microsoft.com/en-us/word-help/troubleshoot-cross-references-HP005189368.aspx).
    To "resolved" this problem I create an other bookmark in the template who have the same value white the principle bookmark.   
    I use Labview 2011 and Micosoft office 2010.

  • N85-how to use SIP setting and use Voice over IP t...

    Dear Nokia user
    In Nokia N85 setting there is an option foe SIP setting.I want to know how can I use this option to register in a SIP proxy server and have an VOIP converstion over internet by my N85
    small_nokia_supporter

    Dear ngnok( nokia advisor)
    thank you for your reply.I went to the link you had given in your reply to download SIP Voip 3x setting but I were asked  to relog and after I entered my username and password . I saw this bloking  message" The credentialsyou provided can not be determined to be authentic".
    I had not claimed  any proficiency befor based on wich you can tell its authentic or not.Please give me the requirment which I provide you to have access to such technical tools.
    Sincerely yours
    small_nokia_supporter

  • Function Module for calculating NEXT MONTH's start date and End date

    Hi Friends,
    I want a function module which could calculate the next months start date and end date...
    Say my input will be like 01.01.2006(start date) it should return
    01.02.2006 and 28.02.2006...
    IS there any FM for this ... or how to go about this scenario ???
    thanks in advance
    Cheers,
    R.Kripa

    Hi kripa,
    1. There is no DIRECT Way.
    2. We have to do in 2 steps.
    3. See this code (just copy paste in new program)
       U can use its FORM anywhere in your program,
       for getting the desired dates.
    4.
    REPORT abc.
    DATA : sdate TYPE sy-datum,
           edate TYPE sy-datum.
    PARAMETERS : dt TYPE sy-datum DEFAULT sy-datum.
    PERFORM getdt USING dt sdate edate.
    WRITE :/ sdate , edate.
    INDEPENDENT FORM
    FORM getdt USING orgdate stdate enddate.
      DATA : mydate TYPE sy-datum.
      CALL FUNCTION 'HR_PSD_DATES_ADD_MONTHS'
        EXPORTING
          v_date             = orgdate
          V_MONTHS           = 1
       IMPORTING
         E_DATE             = mydate
       EXCEPTIONS
         NOT_POSITIVE       = 1
         OTHERS             = 2
      CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
        EXPORTING
          iv_date             = mydate
        IMPORTING
          ev_month_begin_date = stdate
          ev_month_end_date   = enddate.
    ENDFORM.                    "getdt
    regards,
    amit m.

  • 0I_FPER and variable off set not working

    Hello All,
    I am attempting to us the FiscPer Interval input variable with an off set and it does not appear to be working.  I am attempting to do this on COPA.  The business requirement is to have an interval and the corresponding interval for the prior year.  One of the problems I am having in testing this is that there is not enough data to test the year (-12) off-set.  So I have decided to test it with a -2 off set to see that at least in theory it will work.
    The 0I_FPER interval is working however the -2 off set is not returning any data.  I have attempted a number of solutions so far with out success.  We are using BI 7.0 and are currently on Service Patch 10 with a number of additional oss notes applied.  Does any one have any suggestions for me?
    Thanks
    MK

    i dont think offset would work on interval option. It needs to be a single value.
    What i mean to say is, if the user enters 01/2006 - 07/2007, when you put a offset 0f -2, the system wouldnt know which value it is supposed to offset (period1 - 7).
    The work around if you want to display the same range in previous year would be to use two variables on fiscal year and posting period seperately and there you can do a offset on fiscalyear which would give you the same range for 2006.

  • CC5.2: Logical and Cross Systems - Best Practices

    Hello,
    we are using CC5.2 in a landscape of multiple SAP systems. In order to streamline the process of creating our rule set I would like to clear up my confusion about the use of logical and cross systems.
    Here my questions:
    1. Are logical systems intended for encapsulating systems of following stages (e.g. DEV1, QA1, PRD1) or to group systems of one stage which have the same structure of risks and therefore can share rules (e.g. DEVECC1, DEVECC2, ...)?
    2. I don't see entries of logical systems in the Rule Architect - wouldn't it make sense to create functions for logical systems instead of uploading function authorizations for each system?
    3. When you create functions for one sample system - is it sufficient to generate the rules for the logical system the sample system belongs to?
    4. Regarding the cross systems functionality: After creating risks across different systems - is it still necessary to create corresponding cross systems and to generate the rules from the cross systems menu?
    Thanks for your help in advance!
    Regards,
    Martin

    Hi Frank,
    thanks for your answer.
    I now see the handling of logical systems as independent from system landscape tiers. After recreating the desired logical system for a second time it now also appears in the Rule Architect and in the upload dialog of function authorizations. I guess that after uploading them it's still necessary to generate the rules for logical systems in the configuration tab under 'logical systems' ?!
    Regarding the cross systems functionality I don't understand the redundancy of the different settings. Actually there are four options for cross system checks. Let's go into detail:
    a) Functions can include actions of different systems...
    b) ...and they can be flagged as cross system functions. --> Should not the system automatically set the analysis scope of a function to 'cross system' when functions include actions of different systems or is this flag used for the analysis of logical systems?
    b) Risks can include functions referencing to different systems. --> In my understanding it is essential that in this case the analysis scope is 'cross systems'. Is it still necessary to create cross systems and to generate rules for those? (Seems a bit redundant.) Or does one option take precedence over the other?
    c) Finally you can setup 'cross systems'. --> How is the relation of cross systems to the other settings mentioned above? Do you have to create cross systems for each combination of systems which are related in risk definitions or function definitions? Or can all related systems be accumulated in one overall cross system?
    Hope, there is not too much confusion now
    Thanks and regards,
    Martin

  • How to Off set the variable range ?

    experts !
    i have created a variable on ofiscper, and it gives a range for that. (  e.g. 001/2009 - 012/2009 ) . everything works good. but i have to show values for the same range for previous year too.. so i thought that off set should be working. But i am not gettting the correct results if i use off set to ( -1 ).
    can we use offset for a variable whcih takes range ?
    what are my options ?
    Thaks

    Hi honar,
        1. Take that  0fiscper In Characteristic Restrictions box.
        2. Right click on it choose Restrict option. you will get a window select variabls option.
        3. You may have predefined variable. Take that into selection box.
        4.Take the Offset value -12.
    Note : Make sure that your variable should be Intervel option  in variable Represents.
    This may resolve ur prob.
    Thanks,
    Mahi.

  • Regarding setter and getter methods

    Hi,
    Can anybody tell me the use of setter and getter methods in webdynpro .
    It is generated when we set the calculate property of value attribute to true .
    Thanks a lot .

    Hi Jain
    <b>setter</b> and <b>getter </b>functions will be created when you set the calculated propertyto true
    Consider the following scenario where in you can get some basic idea
    1) First insert a Child "Image" UI Element
    2) Create a Context in a view in which you are using Image UI Element
    3) Value Node
    Name : Image
    Cardidality : 1..1
    4) create 2 Value Attributes
    4)a ImageAlt (Calculate property - true) //this will create getter and setter methods
    4)b ImageSrc (Calculate property - true) //this will create getter and setter methods
    5)Bind the properties of Image
    alt - Image.ImageAlt
    source - Image.ImageSrc
    6) in getImageSrc()
    retrun "XX.gif"
    7) in getImageAlt()
    return "Image Not Available"
    you can even achieve getter and setter methods by doing the following procedure
    goto <b>implementation</b> tab-> rightclick -> <b>source</b> -> <b>generate Getter and Setter methods...</b>
    Best Regards
    Chaitanya.A

  • Set and get values with vector

    I have a class that that querys a db and sets a value of the result to a vector array. Is it possible to set and retrieve that vector array using the set and get methods?
    ex:
    my class:
    sql = "Select ...";
    Vector fName = new Vector();
    rs = sqlStatement.executeQuery(sql);
    if (rs != null) {
    while (rs.next()) {
    fName.add(rs.getString("fName") + "");
    rs.close();
    setFName(fName);
    how would I set up the set and get methods???
    thanks

    I am unsure of what you are asking:
    A Vector has set and get methods for it, you use indexes of the array to say what element you want to work with.
    If you are asking how do you know what elements of the Vector contain which data columns, you have to remember how you put them in.
    If you are asking if you can use set to load the Vector: then NO, you have to have elemenets already there to change, use the add method.
    If you are asking how to access the elements of the Vector you use an Enumeration:
    for(java.util.Enumeration e = v.elements(); e.hasMoreElements();){
    s = (java.lang.String) e.nextElement();
    vl.add(s.substring(0, 12));
    If you are asking something else: please elaborate what you want--my brain may not be very functional this morning.

  • What is USING SELECTION-SET in submit statement?

    hi,
    any body can tel me.
    SUBMIT rptedt00
                      USING SELECTION-SET 'HRESS_TEDT00'
                      WITH pnppernr-low EQ i_pernr
                      WITH pnptimr6     EQ 'X'
                      WITH pnpbegda     EQ i_begda
                      WITH pnpendda     EQ i_endda
                      TO SAP-SPOOL
                      SPOOL PARAMETERS ls_params
                      WITHOUT SPOOL DYNPRO
                      AND RETURN.
    here use of USING SELECTION-SET  and which name we have to specify in quotes.
    Regards,
    Shankar.

    Hi
    USING SELECTION-SET <var>
    This addition tells the system to start the called program with the variant var
    You specify the variant in the quotes.
    Check the below links
    http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm
    regarding calling another program from current report
    Hope this helps
    Regards
    Shilpa

  • Secret data sets and variables in photoshop elements.

    In photoshop elements 4 thru 8, you can use data sets
    and variables, with the actions recorded for them in
    photoshop and then installed into photoshop elements.
    They work exactly like they do in photoshop and in fact
    there is already a menu item in photoshop elements,
    under in export menu, called export data sets as files.

    Not sure a I read you correctly but if I understand you
    what you have to do is make the first two images as dynamic variables using the variable panel and save it as a data set
    then replace those two images and save those as a data set
    So now you have data set one and two.
    You can save that as an variable library (xml)and that can be loaded into other documents.
    The question is can it be actioned?
    It can be scripted and do you want the same two images to replace the same two image in each document.
    I think you really have to tell us more.

  • SSAS Tabular - return number of days in given month using month's start date?

    Is there a way to return the number of days in a month by providing just the month date or month start date?
    We have a time table, but it is at monthly (not daily) granularity.
    So I can't just count rows between start/end of month.
    I need to be able to divide by the number of days in a given month and can't seem to find a way to get number of days in that given month.
    Thanks!

    Hi,
    According to your description, you want to get the number of days in a month with the month's start date, right?
    In this case, we can get the first day of next month using DateAdd function, and then use DateDiff function to calculate the number of days in this month. Here is a sample query for your reference.
    WITH
    MEMBER Measures.Today AS vba!Now()
    member measures.FirstDayOfNextMonth as dateadd("m",1,Measures.Today)
    member measures.daysnumber as datediff("d",Measures.Today,measures.FirstDayOfNextMonth)
    select Measures.daysnumber on 0
    from
    [Adventure Works]
    Reference
    http://msdn.microsoft.com/en-us/library/hh510163.aspx
    http://office.microsoft.com/client/helppreview14.aspx?AssetId=HV080007558&lcid=1033&NS=EXCEL%2EDEV&Version=14&tl=2&pid=CH080007543
    http://office.microsoft.com/client/helppreview14.aspx?AssetId=HV080007559&lcid=1033&NS=EXCEL%2EDEV&Version=14&tl=2&pid=CH080007543
    Regards,
    Charlie Liao
    TechNet Community Support

  • Use Combo Boxes and Datepart "m" and "y" to filter forms and reports

    I am trying to build a Form to filter through Sales Order Records going back up to four years to find purchasing patterns of  customers and to find more potential sales.  I am using a simple main form, with 2 subforms joined on the Sales Representative
    [accntrep], one which show current orders for a given month and the other orders from past months and years.  I've got 3 combo boxes, 1 to select sales representative, 1 to select a month using date part and 1 to select a month.  This would be very
    flexible in easily searching any month in any year of the recordset.  I know I will be using something like "DatePart("m",[Date])=2 And Year([Date])=Year(Date())-4" (Feb 2011) to filter my records, but I am having troubling writing
    the procedure just right.  I am using 2-column combo boxes 1 column for text i.e (April, May, June etc.) and a second for the Date Part Expression.  I think I need to concatenate the values into the filter, but I cannot come up with exactly how to
    get this done.  Any ideas??
    Thanks,
    js

    If there is any doubt in your mind then I  will suggest a sanity debug trick; temporarily add 2 textboxes
    in T1 put its control source: =ComboBoxNameMonth
    in T2 put its control source: =ComboBoxNameYear
    don't put what I typed - put in their actual control names for those 2 comboboxes
    this way you can see what is actually the value of those combo boxes... depending on what they are bound to - those values may not be what you are expecting them to be.....obviously alter the properties of the comboboxes until they have the values they should
    Am a little unclear on filtering your records in regard to how the data is not structured whether for example: Nov 2015 is in 2 separate fields or a single field like 11/2015 or what - not sure it is a true date field or possibly a text field...so
    the next part of this depends on the data structure.

Maybe you are looking for

  • Map Request DTD has syntax-errors

    I checked the Map Request DTD with xmlspy and get syntax errors. The error positions are: <!ELEMENT jdbc_query (#PCDATA, hidden_info?)> <!ELEMENT legend column+ > <!ELEMENT column entry+ > Who can help me? From where can i get a correct Map Request D

  • How can i get the music i have on my ipod over to the new computer?

    how can i get the music i have on my ipod over to the new computer? The old computer has crashed and i can't get it out from that one. So the problem is that i want my old music on my new computer. Someone please help.

  • TS3989 how do i see what photos are backed up in my icloud if my phone is not working

    i recently got my phone wet.. ive tried everything to dry it out without having to replace it but it only partially works.. and i want to make sure that the pictures that are on there i can get them back if i get a new phone

  • ITunes having trouble importing CD's

    I have a question regarding iTunes and importing CD's(particularly my burnt CD's)to my iTunes library. I have the latest version of iTunes 7 Over the past few days I have been trying to import my cd collection to my iTunes library, for some reason iT

  • Plugins missing from Omwb.zip file

    The file omwb.zip is missing all the plug-in files. There are 860 files in the zip file set. The Oracle Migration Workbench will not work without these files. Regards, James R. Kennedy