Creating Variable for prompt

Hi,
I have a requirement where i have to create a variable based on a specific requirement.
A prompt is placed on the year field. Now two variables should be created
1.The Sales Revenue of the year that is selected by the user, and
2.The Sales Revenue of the previous year for the year that is selected by the user.
Please Help
Thanks and Regards,
Raja.N

Hi  Rohit,
I practiced the same formulas on eFashion. I used [year], [sales revenue] objects and prompt with equal to condition
Cyear =UserResponse("Enter Year:")
Pyear =FormatNumber(ToNumber(UserResponse("Enter Year:"))-1 ; "####")
Csales =[Sales revenue] Where ([Year]=[cyear])
Psales =[Sales revenue] Where ([Year]=[pyear])
I created the above 4 variables(all are measures), but i couldn't get the data for 'Psales'. You said, you practiced on eFashion and you got the result. Please let me know if i do any mistakes.
Looking forward to your reply.................
Thanks,
Shahin.

Similar Messages

  • How to create variables for offsets?

    Hi BW Experts.
    I have a tricky one that has been posted before, but I couldn't get my head around a feasible answer just yet.
    My customer wants to be able to display his ageing AR report with different buckets, depending on the month.
    For example, if it's January he wants to see buckets for 1-30 days, 31-60 days, 61-90 days and 91 to 120 days.
    If it's February, he wants to see buckets for 1-28 days, 29-58 days, 59-88 days and 89-118 days.
    If it's March, he wants to see buckets for 1-30 days, 31-58 days, 59-88 days and 89-118 days,
    and so on.
    We have create a structure in the query, filtering the key figure 0DEB_CRE_LC by 0NETDUEDATE. We have a variable for 0NETDUEDATE as a starting date and use different offsets to get the buckets. However, the offsets need to be hard coded, preventing us the flexibility of choosing the days in the buckets.
    Is it possible to create variables for the offsets, so the user can choose the days for the buckets at the report run time?
    Thanks in advance.
    Kind regards,
    Aline Passos.

    Hi Aline,
    as user is entering 0NETDUEDATE & he needs different buket for different months, which are more or less decided well in advance, I believe it cane be handled by User Exit varaibles which will draw value from the variable value you have entered & go backward.
    you will need to write the ABAP code with your logic to drive the correct user exit values.
    hope it helps
    regards
    VC

  • How to create Variables for the Key Figures

    Hi All,
    How to create Variables for the Key Figures
    Thanks
    Bhaskar

    Hi,
    It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
    With rgds,
    Anil Kumar Sharma .P

  • Creating variable for attribute

    Hi guys,
    Is it possible to create variable for an attribute. My requirement is that the user wants Serial # as one of the user selection criteria which is an attribute of system code equipment in Dimension material. If not, is there any other possible way to get it in user selection criteria when the report is run.
    Thanks in advance.

    you cant create a variable on attribute of a char.
    other work around is to make Serial # a navigational attribute both in the IO (system code equipment) and in the cube maintenance too. That way in the report the attribute will be available as any other char in the cube.

  • How to create variables for Characteristic Info-objects in Rows / Columns

    I want to create variables in abovementioned manner for COPA retraction in BPS, as COPA retraction does not recognise variables created in "filter" section of Bex. Can sumone advise , as I have tried all the possibilities of creating but failed to do so?

    Hi Ravi/All,
    Actually my problem will be solved if I am able to create variables in either Rows/Columns area of BeX.
    Variables are getting created easily in Filter section of BeX (but in COPA , it will not serve any purpose COPA retraction does not recognise contents of Filter/variables contained in the filter).
    In fact variables are getting created in Rows/Colums of Bex, but they are in the form of structures. (Again multiple structures (more than 1)  are not recognised in COPA retraction.

  • Creating variable for display attribute

    Hi
            I have a requirement where i have to give selection criteria for a display attribute. But how to create a variable for display attribute. Please help.
    Thanks
    Imran.

    If you are in BI 7.0 version. You have to put the navigational attribute in either characteristic restriction (Filter) or default values section and then you will get the restriction option. Once restricted you can put
    that char in where ever you want.
    Regards,
    Kams

  • How we create Variable for Previous year for COPA reports

    Hi Guruss,
    I am making a COPA report for Current year comparison with previous year from KE31. For 1st column I have created the Variable for current year (which works perfectly) now in 2nd column i need the actual data pertaining to previous. So can any one please guide me how to create the variable for previous year.
    Thanks

    Thanks Jagannadha,
    I have create the variable for current year on KE3E. but i am confuse how i create the variable for previous year on KE3E.
    Waiting for reply.

  • How do we create variable for hierarchy node selection

    hello all,
    I have to create a variable as to where the user ca input the node of hierarchy in his selection at the start. Do we have to create a new variable ?
    I have the hierarchy loaded for that infoobject. I tried creating a new variable but the when I select from drop down as varaibles and name of the hierarchy no variables shows up.
    Thanks

    Hi Raj,
    Please see this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/83/096d399bd2046fe10000000a114084/content.htm
    It has complete details.
    Hope this helps...

  • Create variable for key figures

    Hi all,
    I have a query with a couple of key figures, f.e. Net Revenue, Net Sales and Volume.
    Now, I want my end users to have the option to <b>select</b> which <b>key figures</b> they want <b>to see</b>. How to do this?
    All good ideas will be appreciated.
    Thanks in advance,
    Ralph

    Hi,
    You can put your key figures in a structure. A "key Figures" row will automatically appear in your navigation block. If you right clik and select filter value (in BEX) or just click on the filter icon (in 0ANALYZER BW3.5) you will be able to select the key figures to display.
    This should help the user to display and hide the relevant key figures according to their scope of analysis.
    Hope it helps (if so, please assign some points)
    Gili

  • Creating variables for running headers and footers

    This question was posted in response to the following article: http://help.adobe.com/en_US/framemaker/using/WS2937A033-EFF3-4d85-BBB3-98214B54950D.html

    > ... when you make a comment or suggestion in the FM help, it gets echoed to the forum now ...
    So the forum is going to get polluted with mysterious no-question "replies" that are actually just useful editorial comments in Help ...
    ... and Help is going to get polluted with actual or (as here) unnecessary discussions about these mystery threads, plus the normal topic drift that afflicts a material percentage of internet discussions.
    Well, until Adobe figures out this web stuff, we probably need to footnote any Help remarks with ...
    Note: this post was a comment on a Help page, and is not an FM forum question, nor a response to one, even though it will appear there, until this sillyness gets fixed with an option:
    Post this as (must choose one):
    [_] Help comment only (appears here only)
    [_] Question (mirrored on Forum)

  • JS CS4: Create variable for current layer then select the layer at the end of a script

    I'm coming up blank with the verbiage and spinning my wheels with the OMV and script guide.
    var myOriginalLayer = app.activeDocument.layers.item(0);
    alert(myOriginalLayer)
    returns "object layer" and not the layer's name.
    var myOriginalLayer = app.activeDocument.layers.lastItem().name;
    Does return the layer name I want but not by selection.
    I'm challenged on how to select the layer.

    Hi John,
    The difference lies in that the [Object Layer] is the actual object, and the 'name' is just a property -- just like its color.
    You can use one of these two approaches:
    var myOriginalLayer = app.activeDocument.layers.item(0);
    alert(myOriginalLayer.name);
    will hold the original layer object, and you can see the name if required :-)
    To re-select the layer, use
    app.activeDocument.activeLayer = myOriginalLayer;
    Alternatively, selecting by name goes like
    var myOriginalLayerNAME = app.activeDocument.layers.lastItem().name;
    app.activeDocument.activeLayer = app.activeDocument.layers.item(myOriginalLayerNAME);
    I also noticed the following:
    app.activeDocument.layers.item(0) points to the first layer of your document; not the 'active' one. Similarly, app.activeDocument.layers.lastItem() just points to the very last one. I'm not sure if the order of the activeDocument.layers array mimicks the order as shown in the Labels palette, but I would hope it does :-)
    To get/set the active layer, use app.activeDocument.activeLayer as shown above.

  • How to create Variables(User Input Selections) in WEBI Report

    Hi Team,
                  My requirement is to create a WEBI Report on top of BEx query,I have created a Universe and WEBI Report on this Universe but my doubt is How to create Variables for the User to select.The Input selection should be
    User Iputs(All are drop downs)
    Distribution Channel :       ->drop down,user can select one
    Division:                          -> drop down,user can select one
    Department:
    Season:
    Collection:
    Date Format              Valid From:                                 Fiscal Week:
    When the user gives the above selections the output should be displayed as
    Material No   Description     Markdown Week     Reason code1(under this)        Reason code2(under this)   like that for all the
                                                                                valid from         Amount              Valid from          Amount            Reason code.
    I have designed the basic layout of the Report but wanted to know how to design like this,Please help me out in this Format.
    Thanks & Regards,
    Somu

    Hi, depending on the way you set this up (it is not entirely clear if you are talking bex variables or report drop down filters), use the following;
    For BEX variables, the choice will be in the
    UserResponse("prompt message")
    this you can display in the message format you want.
    For drop down filters the choice will be in the DrillFilters(), this one will show all selections in one string.
    However, if you want to format this to a certain message, you need to use the Formula
    DrillFilters([object from drill bar])
    This will give you the result of just that one selection. If the user did not select (yet), the value will be "".
    Hope this helps,
    Marianne

  • How to create variable in BEx on a Nav Attribute?

    Hi All,
    We are creating a report on Master data object 0MILESTONE. 0PROJECT is the navigational attribute of 0milestone.
    and ZSTATUS is the navigational attribute of 0PROJECT.
    Requirement is to create variable on ZSTATUS in BEx. How do I do that? I dont see option of creating variable on Nav attribute of a Nav attribute.
    Regards,
    Bob

    Hi,
    There is nothing as such creating variable for navigation attribute. You can only create variable directly on particular infoobject.
    In your case you are using transitivie attributes. So they can not be accesed directly in BEX query. You can only use 1st level nagivation attributes in bex query.
    [http://help.sap.com/saphelp_nw04/helpdata/en/6f/c7553bb1c0b562e10000000a11402f/content.htm]
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Feb 22, 2012 3:53 PM

  • Using a variable for two different characteristic

    Hello
    I've to following situation:
    1) While execuring a query in BEx Analyzer, the user should manually enter a specific key date KEY_DATE
    2) Then, two InfoObjects should be restricted by using that KEY_DATE as follows
         a) InfoObject BEG_DATE <= KEY_DATE
         b) InfoObject END_DATE > KEY_DATE
    So, in Query Designer I've created a variable KEY_DATE and added it to each of the above InfoObjects. Now, while executing the query I get an error: "Variable KEY_DATE is used for two different characteristics".
    Is there another possibility to realize my requirements?

    Hi Dear,
             create variable for that date and restrict the char. info object by that date.
    -->create a variable of date char.
    -->in General tab, select processing by Replacement path
    -->in replacement path , offset 0 and lenght 0
    -->ok
    when u restrict, select value ranges and select greater than for one and less than equal for another
    try and let me know if any probm...
    Regards
    Obaid

  • How to create variable in areport

    Hi all ,
    I am using fr_studio for creating reports.Can anyone tell me how to create variable in the report?

    Hi,
    There is nothing as such creating variable for navigation attribute. You can only create variable directly on particular infoobject.
    In your case you are using transitivie attributes. So they can not be accesed directly in BEX query. You can only use 1st level nagivation attributes in bex query.
    [http://help.sap.com/saphelp_nw04/helpdata/en/6f/c7553bb1c0b562e10000000a11402f/content.htm]
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Feb 22, 2012 3:53 PM

Maybe you are looking for

  • Copy data from datagrid to Excel

    Hi, I have a datagrid with lots of data. I want to copy the data from the datagrid and paste it in Excel. Any idea how to do this? Thx

  • How do make sure a trojan how be 100% remove from my Macbook pro?

    3 days a go my Kaspersky security had found a two trojans on my Macbook pro I use Kaspersky security on my system. I all so put up a screenshot from my Kaspersky reports to show you guys where the two trojans where found on my system. But I still bel

  • Design a report like this

    Hi, Can someone please tell me how to design a report this in the following link here: I am wondering how can we have such a background color and bar color in Power View in SharePoint or Power View in Excel. Thanks

  • Class loading in Tomcat server

    Hi, I need to specify a class in web.xml or server.xml or any where else, but it shouldnot look for the class during my server startup, it should look only during my application running time. How can I achieve this in Tomcat server? thanks

  • Vnc without dtlogin, I.e. using gnome display login?

    Greetings all, Anyone out there use the xvnc server that comes bundled with u5 or u6 successfully? I've been able to get it to run with the default 'cde-login', but due to a number of security issues, we are strongly recommended to not use it (Federa