Month Range from Single Month Entry

Hi Gurus,
In a particular query, the mandatory input is 0calmonth. Variable used is 0PCALMON.
When user inputs 12.2007, then during runtime one of the keyfigure i need to calculate is quarter quantity for the month range 10.2007 to 12.2007 as 12.2007 falls in this quarter.
Similarly if user inputs 03.2008, quarter quantity will be for these months 01.2008 to 03.2008.
have written this code in cmod and activated.
when 'ZMQ_RNG'.
Data : ZYear(4) .
Data : ZMon(2) type N .
loop at i_t_var_range into loc_var_range
where vnam = '0PCALMON'.
clear l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
ZYear = loc_var_range-low(4) .
ZMon = loc_var_range-low+4(2) .
If ( ZMon = '04' or ZMon = '05' or ZMon = '06' ) .
l_s_range-high+4(3) = '06' .
l_s_range-high(4) = ZYear .
l_s_range-low+4(3) = '04' .
l_s_range-low(4) = ZYear .
Endif .
If ( ZMon = '07' or ZMon = '08' or ZMon = '09' ) .
l_s_range-high+4(3) = '09' .
l_s_range-high(4) = ZYear .
l_s_range-low+4(3) = '07' .
l_s_range-low(4) = ZYear .
Endif .
If ( ZMon = '10' or ZMon = '11' or ZMon = '12' ) .
l_s_range-high+4(3) = '012' .
l_s_range-high(4) = ZYear .
l_s_range-low+4(3) = '010' .
l_s_range-low(4) = ZYear .
Endif .
If ( ZMon = '01' or ZMon = '02' or ZMon = '03' ) .
l_s_range-high+4(3) = '03' .
l_s_range-high(4) = ZYear .
l_s_range-low+4(3) = '01' .
l_s_range-low(4) = ZYear .
Endif .
append l_s_range to e_t_range.
exit.
endloop.
ZMQ_RNG variable is customer exit, not ready for input, and mandatory field whereas oPcalmon variable is user entry, ready for input, mandatory.
I have a RKF with 0CALMONTH restricted with ZMQ_RNG on quantity. free characteristics i have ocalmonth with variable 0pcalmon.
Still my RKF doesnot calculate quantities for the 3 month range..
Plz help.
Rgrds,
Thanks in advance.
Vaishnavi.

Hi USERPV,
Thanks a ton!
I created one more RKF (hidden) as well as replaced 3 by 2.
The problem is solved. n my query is executed.
Assigned points.
Rgrds,
vaishnavi

Similar Messages

  • Calculate Month Range from Single Month input

    Hi Gurus,
    In a particular query, the mandatory input is 0calmonth. Variable used is 0PCALMON.
    When user inputs 12.2007, then during runtime one of the keyfigure i need to calculate is quarter quantity for the month range 10.2007 to 12.2007 as 12.2007 falls in this quarter.
    Similarly if user inputs 03.2008, quarter quantity will be for these months 01.2008 to 03.2008.
    Plz tell me the steps from variable creation and writing code in cmod.
    Thanks in advance.
    Vaishnavi.

    Hi Jaya,
    I have written this code in cmod and activated.
    when 'ZMQ_RNG'.
    Data : ZYear(4) .
    Data : ZMon(2) type N .
    loop at i_t_var_range into loc_var_range
    where vnam = '0PCALMON'.
    clear l_s_range.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    ZYear = loc_var_range-low(4) .
    ZMon = loc_var_range-low+4(2) .
    If ( ZMon = '04' or ZMon = '05' or ZMon = '06' ) .
    l_s_range-high+4(3) = '06' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '04' .
    l_s_range-low(4) = ZYear .
    Endif .
    If ( ZMon = '07' or ZMon = '08' or ZMon = '09' ) .
    l_s_range-high+4(3) = '09' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '07' .
    l_s_range-low(4) = ZYear .
    Endif .
    If ( ZMon = '10' or ZMon = '11' or ZMon = '12' ) .
    l_s_range-high+4(3) = '012' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '010' .
    l_s_range-low(4) = ZYear .
    Endif .
    If ( ZMon = '01' or ZMon = '02' or ZMon = '03' ) .
    l_s_range-high+4(3) = '03' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '01' .
    l_s_range-low(4) = ZYear .
    Endif .
    append l_s_range to e_t_range.
    exit.
    endloop.
    ZMQ_RNG variable is customer exit, not ready for input, and mandatory field whereas oPcalmon variable is user entry, ready for input, mandatory.
    I have a RKF with 0CALMONTH restricted with ZMQ_RNG on quantity. free characteristics i have ocalmonth with variable 0pcalmon.
    Still my RKF doesnot calculate quantities for the 3 month range..
    Plz help.
    Rgrds,
    Vaishnavi

  • What is the most sensible way to extend a wifi signal. I am in a cinderblock house and I have to buy something that will give me a single network but added range from my airport extreme base station.

    What is the most sensible way to extend a wifi signal. I am in a cinderblock house and I have to buy something that will give me a single network but added range from my airport extreme base station.

    Use an Airport Express. Configure the AEBS to allow it's wireless network to be extended. This is a dropdown menu option under the Wireless tab. Configure the Airport Express to Extend an Existing Network also under it's Wireless tab. You will need to provide the name of your network used in the AEBS as well as the network's access password.

  • HFR Range from and to - Not working correctly for hierarchies?

    Hi All,
    Can anyone help me with my below issue relating to ranges in Oracle’s Hyperion Financial Reporting Studio tool.
    The issue I’m experiencing is that when I create a report and use the ‘Add Relationship’ -> ‘Range’ option for my month dimension, the correct months are returned as long as the start month and end month are not the same.
    In our setup we have 2 month hierarchies, one for the fiscal year (July to June) and another for the calendar year (January to December). The problem that I’m noticing in the report, is that when I enter a range from July to July, that instead of returning July, it returns July, August, September, October, November, December, January, February, March, April, May, June, July. My though it that it is looping through both the fiscal and the calendar hierarchies to return the range, instead of only the fiscal hierarchy. Both these hierarchies have the same members, however ordered differently.
    Does anyone know of a way to resolve this within HFR?
    I noticed that when creating the range, there is an option to ‘select a hierarchy’. At the moment there is only 1 choice ‘ Period’, however I’m curious if I could create and link a hierarchy to the fiscal hierarchy, that this might resolve the problem?
    Any ideas?
    Thanks,
    Lance

    Hi Lance,
    IIRC Range uses the first (main) hierarchy - so you'll need to move the Fiscal year one to be first in the outline.
    Cheers, Iain

  • Multiple Hierarchies from Single Dimension Table in OBIEE-11g?

    Is it possible to have Multiple Hierarchies from Single Dimension Table in OBIEE-11g?
    Like 1)Year-Qtr-Month-Weeks 2)Year-Month-Days

    Hi,
    or if your lowest level is the same like
    Day->month->year->Total
    Day->businessMonth->businessyear->Total
    Then yes, it is.
    Create the first, then you start to create the second by adding your top(business year) level on the same level as the one you have (year) both under your total.
    Then when you would add your second base level, there is a special option for it, something like use other hierarchy level/shared level (sorry can't recall and does not have a connection right now) then you select your existing day level under your businessmonth level.
    Hope this helps,
    Regards,
    D

  • Placing Named Ranges from Excel into InDesign

    InDesign CS3 5.0.4, Excel 2003, Windows XP.
    I have placed named ranges from Excel into InDesign and linked them. The Excel file consists of multiple worksheets. I go back now a few months later to update the files. I go to place a couple of new ranges from new worksheets and they don't show up under the correct sheet. ALL my named ranges now show up under the first worksheet only.
    Anybody ever had this happen?
    JAG

    I've upgraded to CS5.5. Ninety-nine times out of a hundred placing named ranges into InDesign from Excel works fine. One time out of a hundred I still see all my named ranges on the first worksheet and none on the rest of the worksheets where I originally named them.
    I save the Excel files as XLS.
    Am I the only one in the universe having this problem?
    Can I get an answer?
    JAG

  • In EPM10, how do you call/reference a dynamic range from a macro.

    Hi Gurus
    In EPM10, [we are using SP16,P1], how do you call/reference a dynamic range from a macro.
    EG, in the BPC input sheet below, we have BPC reports ‘000’,’001’,’002’. For report ‘001’,users are able to select from diffent versions which each have different number of months. In the forecast version below, there are 7 months. We require a macro to select & delete f'cast data content of report ‘002’, there after we will manipulate it via the macro and return it. However, standard excel named ranges don’t work per BPC7.x and don’t dynamically expand.
    The macro code in 7.x was:
    Range(“REPORT1_RANGE”).Select >> Does any oneknow the replacement in EPM10 please?

    The following macro which accesses API's looks like it would help to define the report range:
    Sub TopLeftCell()
    Range("c26").Select
    Application.Run "EPMExecuteAPI", "GetDataTopLeftCell", "", "Sales Planning", "001"
    End Sub
    Anybody able to assist with the syntax of this macro..it currently runs without error, however does not return any result?? Note:
    * the parameter ''" relates to the text which i believe can be left if using macros
    *the parameter "Sales Planning" is my worksheet name
    *the parameter "001" is my report definition.
    I was hoping to return the result back to cell C26. Thanks All

  • Switching plan from Single app Plan to Photography Plan

    I just switched my plan from single app Photoshop $19.99/month plan to the Photoshop & Lightroom $9.99/month plan because I don't use everything on the larger plan. My original renewal date was in either June or July. Will I be charged fees for changing my plan today?

    HI Sarah,
    I checked your account information. No, you will not be charged fees for changing the plan. You are continuing to use the same product but at a cheaper rate. Enjoy using the software.
    Thanks
    Scott

  • Provide LabVIEW programmin​g service (ranging from school to SME)

    We are LabVIEW team in Spore to assist you in any LabVIEW project, ranging from School to SME. 
    Quick FAQ:
    How Much?  
    We charge on project-basis, at a reasonable price.
    How to Request ?
    Send an email to [email protected] and tell the detail. We will responds to you asap. 
    How if I want to clarify (and verify) by face-to-face ?
    No problem. Send us an email, we can have our team member to talk to you.
    How if I found a bug ?
    We provide 3 months software guarantee (bug-fix). We will debug and reply to you within 24 hours during first month of guarantee period and 48 hours for the next 2 months(weekday).
    Please don't feel hesitate to email [email protected] for any enquiry.

    Where the heck is Spore?
    And what kind of company has gmail as an address?
    Plus as Dennis mentionned, this is the wrong forum.  Can you post some of your sample code for people to review your skills?

  • Need help with EXS24 "read velocity range from file name"

    I am trying to import 127 drum samples to a single key using the option shown here. The option says "Map to key dropped on and read velocity range from file name". I can find no documentation in the manuals on how to do this. What is the syntax required in the file name to make this work? I need to do several of these imports. The capability is cleary there, but I need help on how the file name should be formatted. My thanks to anyone who can help.

    Hi
    Not a direct answer to your question, but if you are doing a lot of sample mapping etc, you may want to check out Redmatica's KeyMap Pro or the simpler Keymap 1:
    http://www.redmatica.com
    CCT

  • Forcing Single Pass entry point

    Hi all
    I have a sequence based on the sequential model that I only ever want to enter as single pass. I am driving myself slight crazy as I keep clicking “Test UUT(s)” rather than “single pass”. Is there a call back or expression I can add that will force the sequence to run as single pass regardless of which button I click?
    Many Thanks              
    Dave B
    P.S Happy new Year
    Solved!
    Go to Solution.

    Because the client and model are "decoupled" and the client technically doesn't get called until later in the execution this is a tricky one.
    Several options:
    Customize the UI to only allow the Execution Entry point button to be linked to the Single Pass entry point
    In the Sequence Editor fix your toolbar to only show the Single Pass entry button
    This one is kind of a hack:  override the Process Setup callback and if the entry point was Test UUTs then kill the thread and start a new one using the Single Pass entry point
    Remove Test UUTs from the process model.  Or change it to a configuration entry point temporarily.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • GRN display through single gate entry number

    Dear Sir,
    I want to develop t-code through which GRN can be displayed against single Gate entry No.

    Hi,
    Where in SAP you are creating the Gate entry no. or is it coming from another system through interface.
    While doing GRn are you refering to such Gate entry number in any field..pls provide the details.
    There are no such SAP standard transaction for gate entry..if its an custom devloped one..kindly provide us the details.
    Thanks
    BR

  • Can we change the UCCX server from single node to the first node without affecting it's configurations

    Hi all,
    Firstly I was using the single CUCM7.0 server with the single UCCX 7.0 server. Now I am going to add the second CUCM and UCCX in the cluster. I was first configured the UCCX server as a single node. Now I have to configure this as a first node. How I could configure this from single node to the first node without affecting it's configurations..??????
    Regards
    Ali Raza

    Hi Aaron,
    How could we do the change on Imhost file. How we add the both servers in that file?
    Below is the Imhost file txt.
    # Copyright (c) 1993-1999 Microsoft Corp.
    # This is a sample LMHOSTS file used by the Microsoft TCP/IP for Windows.
    # This file contains the mappings of IP addresses to computernames
    # (NetBIOS) names.  Each entry should be kept on an individual line.
    # The IP address should be placed in the first column followed by the
    # corresponding computername. The address and the computername
    # should be separated by at least one space or tab. The "#" character
    # is generally used to denote the start of a comment (see the exceptions
    # below).
    # This file is compatible with Microsoft LAN Manager 2.x TCP/IP lmhosts
    # files and offers the following extensions:
    #      #PRE
    #      #DOM:
    #      #INCLUDE
    #      #BEGIN_ALTERNATE
    #      #END_ALTERNATE
    #      \0xnn (non-printing character support)
    # Following any entry in the file with the characters "#PRE" will cause
    # the entry to be preloaded into the name cache. By default, entries are
    # not preloaded, but are parsed only after dynamic name resolution fails.
    # Following an entry with the "#DOM:" tag will associate the
    # entry with the domain specified by . This affects how the
    # browser and logon services behave in TCP/IP environments. To preload
    # the host name associated with #DOM entry, it is necessary to also add a
    # #PRE to the line. The is always preloaded although it will not
    # be shown when the name cache is viewed.
    # Specifying "#INCLUDE " will force the RFC NetBIOS (NBT)
    # software to seek the specified and parse it as if it were
    # local. is generally a UNC-based name, allowing a
    # centralized lmhosts file to be maintained on a server.
    # It is ALWAYS necessary to provide a mapping for the IP address of the
    # server prior to the #INCLUDE. This mapping must use the #PRE directive.
    # In addtion the share "public" in the example below must be in the
    # LanManServer list of "NullSessionShares" in order for client machines to
    # be able to read the lmhosts file successfully. This key is under
    # \machine\system\currentcontrolset\services\lanmanserver\parameters\nullsessionshares
    # in the registry. Simply add "public" to the list found there.
    # The #BEGIN_ and #END_ALTERNATE keywords allow multiple #INCLUDE
    # statements to be grouped together. Any single successful include
    # will cause the group to succeed.
    # Finally, non-printing characters can be embedded in mappings by
    # first surrounding the NetBIOS name in quotations, then using the
    # \0xnn notation to specify a hex value for a non-printing character.
    # The following example illustrates all of these extensions:
    # 102.54.94.97     rhino         #PRE #DOM:networking  #net group's DC
    # 102.54.94.102    "appname  \0x14"                    #special app server
    # 102.54.94.123    popular            #PRE             #source server
    # 102.54.94.117    localsrv           #PRE             #needed for the include
    # #BEGIN_ALTERNATE
    # #INCLUDE \\localsrv\public\lmhosts
    # #INCLUDE \\rhino\public\lmhosts
    # #END_ALTERNATE
    # In the above example, the "appname" server contains a special
    # character in its name, the "popular" and "localsrv" server names are
    # preloaded, and the "rhino" server name is specified so it can be used
    # to later #INCLUDE a centrally maintained lmhosts file if the "localsrv"
    # system is unavailable.
    # Note that the whole file is parsed including comments on each lookup,
    # so keeping the number of comments to a minimum will improve performance.
    # Therefore it is not advisable to simply add lmhosts file entries onto the
    # end of this file.
    Regards
    Ali Raza

  • I'm looking for the old toolbar that doesn't double post the web adress and only has single line entries and the extension xpi doesn't work with my new computer

    I'm looking for the old toolbar that doesn't double post the web adress and only has single line entries and the extension xpi doesn't work with my new computer

    Mike wrote:
    > Could someone tell me why this prototype-based lightbox
    seems to work on one
    > of my sites but not on the other?
    >
    > I literally took the exact same .js & css files,
    copied them over from one
    > site to the other, but it's only partially working on
    the new site.
    >
    > Works :
    >
    http://www.roxanacampagiorni.com/
    >
    > Doesn't work :
    >
    http://www.vilverset.com/sample.html
    >
    > Been troubleshooting this one for days, and I'm stumped.
    Script wants
    > nothing to do with lightboxing HTML files on the new
    site. Only straight
    > JPGs. But it was written to work with them, and it
    *does* work with them
    > just fine on the *other* site.
    >
    > Where is the anomaly between the two sites that's
    causing it to break in
    > sample.html?
    >
    >
    Not sure if this is relevant but on the page that works you
    have these
    js files linked - 4.....
    <script type="text/javascript"
    src="/scripts/jscripts.js"></script>
    <script type="text/javascript"
    src="/scripts/prototype.js"></script>
    <script type="text/javascript"
    src="/scripts/effects.js"></script>
    <script type="text/javascript"
    src="/scripts/control.modal.2.2.3.js"></script>
    and on the page that doesn't - 3......
    <script type="text/javascript"
    src="/scripts/prototype.js"></script>
    <script type="text/javascript"
    src="/scripts/effects.js"></script>
    <script type="text/javascript"
    src="/scripts/control.modal.2.2.3.js"></script>
    HTT
    chin chin
    Sinclair

  • ILIFE Upgrade from single user to family?

    I have Ilife on my Mac but now my wife wants it for hers. Can I purchase an upgrade from single user to family (5) users. Thankfully I got the family package for IWork 09'.

    Welcome To  Discussions gamman!
    I have requested that a Host, relocate your Topic to a more appropriate Forum.
    As it will be transferred, it is not necessary for you to repost elsewhere, at this time.
    But for future reference, please review the first entry How To Post A New Topic, on Feedback About Discussions.
    That is the Forum where you erroneously posted your issue.
    ali b

Maybe you are looking for

  • How to handle Multiple attachments in sender Mail Adapter

    Hi,      In our requirement is mutiple documents send through mail adapter, In custom java module we read the each document details and do it bussiness process. But now i am not able to read the multiple files at a time. we are able to read single fi

  • Sql statement not showing right result set

    Hi everyone, I have a statement : select to_date(extract (day from to_date(begin_datum,'yyyy-mm-dd'))||'-'||extract (month from to_date(begin_datum,'yyyy-mm-dd'))||'-'|| extract(year from sysdate),'dd-mm-yyyy') from fus_medewerkers; which returns fol

  • Create ViewRow Dynamically

    Hi, For testing purposes I would like to create a view row dynamically, rather than reading it from the database. I tried (for example): PersonViewRowImpl myPerson = new PersonViewRowImpl(); myPerson.setName("Fred"); Unfortunatley the setName invocat

  • How do I open draft folder of my mail?

    How do I open draft folder of my mail?

  • Lenovo T440s Crashes During/Aft​er Waking from Sleep

    Hi there, I recently purchased this laptop for school and one of the primary factors was the battery system; being able to switch the external battery on the fly is excellent but I wonder if it's causing some of the problems I have had. I've had a co