Based on the user response need to calculate measures in universe

Hello Folks,
I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer.
1.Based on the user response I need to create a report for previous months .
2. PYTD and YTD measures based on user prompt from universe. [PYTD - JAN 1 2013-OCT 1 2013, YTD - Jan 1 2014- OCT 1 2014].
Example Date Set :
DIM 1                    SEP13...............................................................OCT 14      PYTD   YTD
Florida  state        M1.Single value need to give previous 13 months data    M3        M4
             federal    M2..Single value need to give previous 13 months data   M5       M6.
Arizona  state        M1.Single value need to give previous 13 months data    M3        M4
             federal    M2..Single value need to give previous 13 months data   M5       M6.
M1...M6 are the measures need to come from universe based on the user prompt.
M1,M2 Need to give previous 13 months based on user response.
M3,M5 [PYTD - JAN 1 2013-OCT 1 2013]
M4,M6 YTD - Jan 1 2014- OCT 1 2014].
Thanks for your help in advance.

Hello Folks,
I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer.
1.Based on the user response I need to create a report for previous months .
2. PYTD and YTD measures based on user prompt from universe. [PYTD - JAN 1 2013-OCT 1 2013, YTD - Jan 1 2014- OCT 1 2014].
Example Date Set :
DIM 1                    SEP13...............................................................OCT 14      PYTD   YTD
Florida  state        M1.Single value need to give previous 13 months data    M3        M4
             federal    M2..Single value need to give previous 13 months data   M5       M6.
Arizona  state        M1.Single value need to give previous 13 months data    M3        M4
             federal    M2..Single value need to give previous 13 months data   M5       M6.
M1...M6 are the measures need to come from universe based on the user prompt.
M1,M2 Need to give previous 13 months based on user response.
M3,M5 [PYTD - JAN 1 2013-OCT 1 2013]
M4,M6 YTD - Jan 1 2014- OCT 1 2014].
Thanks for your help in advance.

Similar Messages

  • Formatting a Date based on the user's Locale

    I'm having some trouble formatting a date based on the user's locale. I'm aware you can do something like this:
       public static String getAsString( Object dateObject, Locale locale ) {
          DateFormat dateFormat = DateFormat.getDateInstance( DateFormat.MEDIUM, locale );
          return dateFormat.format( dateObject );
    However, this is returning something like Jan 21, 2009. I need 01/21/2009. Of course, if this was the UK locale it'd have to be 21/01/2009. Any help would be appreciated.

    another issue I'm running into is that when I'm logged in as a users' locale which uses '-' instead of '/' (i.e. 21-01-2009), I get a parse error. Can anyone provide any input? Thanks.
        * Parse a Date
        * @param dateString
        * @param locale
        * @return parsed Date
       public static Object parseDate( String dateString, Locale locale ) {
          DateFormat dateFormat = DateFormat.getDateInstance( DateFormat.SHORT, locale );
          try {
             return dateFormat.parse( dateString );
          catch( Exception exception ) {
             throw new ExceptionUtl( UtlMessageHelper.getMessage( UtlMessageConstants.ERROR_FailedParseDateFromString, dateString ), exception );
        * Format the given value into a DateFormat
        * @param dateObject
        *           Object value to be formatted
        * @param locale
        *           Locale format to use
        * @return dateObject in SimpleDateFormat
       public static String formatDate( Object dateObject, Locale locale ) {
          DateFormat dateFormat = DateFormat.getDateInstance( DateFormat.SHORT, locale );
          if( dateFormat instanceof SimpleDateFormat ) {
             SimpleDateFormat simpleDateFormat = ( SimpleDateFormat )dateFormat;
             String pattern = simpleDateFormat.toPattern();
             if( !pattern.contains( "yyyy" ) ) {
                pattern = pattern.replace( "yy", "yyyy" );
             if( !pattern.contains( "dd" ) ) {
                pattern = pattern.replace( "d", "dd" );
             if( !pattern.contains( "MM" ) ) {
                pattern = pattern.replace( "M", "MM" );
             simpleDateFormat = new SimpleDateFormat( pattern );
             return simpleDateFormat.format( dateObject );
          return null;
       }

  • Purchasing Group authorization based on the user

    Hi All,
    Can anyone suggest me ideas on how to restrict in accessing details of a PO for a  purchasing group based on the user who tries to access it .
    the object is M-BEST_EKG.
    need guidance in using AUTHORITY_CHECK in restriciting PO group based on the userid.
    Thanks in advance.
    Regards,
    Ry

    Hi,
    ACTIVITY controls what user can do to the PO.
    01-Create
    02-Change
    03-Display
    EKGRP controls the purchasing group
    To restrict to a specific purchasing group, modify the authorization object in the role which user has to allow the specfic P.Grp. only
    Cheers !

  • Report based on the user profile

    Hi,
    i'm trying to create a report with Oracle Report6i based on the user profile.
    I created a form with many Lovs, so that i can choose the parameter to send to the report (using a java script).
    I also would like to send the user that's currently logged in, just in order to filter the output.
    How can i use the api wwctx_api.get_user in the java script ?
    Thanks.

    Hi,
    It is not possible to use the api directly in javascript. Maybe you pass it as a parameter to a javascript function.
    Thanks,
    Sharmila

  • Data view web part to display the most frequently accessed pages based on the user that is logged in

    I am working on a project in which I would like to display the top 5 most accessed pieces of content as links, based on the user that is logged in. Our MOSS 2007 implementation has subsites for all regions that we do business in, as an example North, South, East, and West. When a user visits the North region homepage, I would like a web part to display:
    Hello, <username>, here is a listing of your most accessed content:
    Link to One
    Link to Two
    Link to Three
    Link to Four
    Link to Five
    So each user would get a customized list based on their content access. We are not using my sites, but these would not work as we want the list to display on the home page of the region site.
    I am thinking that a data view may work here, but I am not sure. Any help is greatly appreciated.

    If you are running MOSS you may want to take a look at the Relevant Documents web part too.
    http://office.microsoft.com/en-us/sharepointserver/HA102410251033.aspx
    The Relevant Documents Web Part helps you create a personalized view of the documents that you create, check out, and change. In a large Document Center, the Web Part can save you time and effort by making files easier to find and use. The following figure shows the Web Part:

  • Restrict Org details based on the User in Business partner creation..

    Hi Gurus,.
    I have to assign Sales Org , DIV, Distribution Channel to the Business Partner in Sales Area data.  When I try system shows entire Org structure. But I want the Org structure should be displayed based on the user log on. Assume that, I am assigned to Shangai and creating Business partner for Shangai, the system should not show Beijing or other Org Unit since I belong to Shangai.  How to address this scenario thro standard customization?
    Is it common problem in CRM Webui(6.0 and 7.0).
    My Org Structure:
    Global
      China
         Shangai
         Beijing
       Nanjing.
    Thanks in Advance....

    Hi Denis,
       Thanks for your reply. I believe Org determination rule is applicable for Transaction types not for Account Creation. I want to get Sales area data based on login user. It shows complete Sales Area(Sales Org IDDistribution ChannelDivision) when I create an Account.. Assume that you are an employee and assigned to Newyork, when you create New Customer in Newyork, system should not show Boston, Washington Sales areas...Please throw some light on this...
    Thanks in Advance.,

  • Determine Business partner number based on the user id

    Hi all,
    Is there a way to determine the BP number of an employee based on the user id. The employee is created as a BP with role Employee in the system.
    I'm checking USR02 and BUT000.. But i find no link between them.
    Thank you,
    Preethi

    Hi Preethi
    Try this
    *Get the BP Guid by passign the user name here
      CALL FUNCTION 'BP_CENTRALPERSON_GET'
        EXPORTING
          IV_USERNAME         = lv_username
        IMPORTING
          EV_BU_PARTNER_GUID  = lv_bp_guid
        EXCEPTIONS
          NO_CENTRAL_PERSON   = 1
          NO_BUSINESS_PARTNER = 2
          NO_ID               = 3
          OTHERS              = 4.
    *Get the BP Numbere here
      CALL FUNCTION 'CMS_BUPA_NUMBERS_READ_BL'
        EXPORTING
          IV_PARTNER_GUID         = lv_bp_guid
        IMPORTING
          EV_PARTNER_ID           = lv_bpnumber
        EXCEPTIONS
          NO_PARTNER_SPECIFIED    = 1
          NO_VALID_RECORD_FOUND   = 2
          INCONSISTENT_PARAMETERS = 3
          NO_ADDRESS_FOUND        = 4
          OTHERS                  = 5.
    Reward if this helps.
    Thanks

  • Different masterhead image based on the user logged in portal

    HI,
    Presently we are using standard portal theme.How can I change the image in the masterhead based on the user logged in.How can i change that and i want to assign that masteredhead to users.
    Can anybody give me suggesion about this.
    Thanks,
    Regards,
    Srinivas

    Dear Srinivas,
    Simple of achiving this kind of scnario is create separate themes for different users and assign the themes to the users in master rule collection through Desktop Page.Here in this case you will be creating one framework page and multiple Desktops and themes.All the desktops will be having the same framework page and different themes based on the user type or group type.
    Otherway of achiving this is create an pdk application where it will have multiple jsp components in it and based on the each component create one PAR iview.Let us take if four groups of users then you will be creating four different jsps in pdk application which will inturn contains different masterhead images and related logos.After creating the iview place the iview in the correcsponding framework page below the masterhead iview.Here multiple framework pages and Desktops and you can go with single theme.
    In the first scenario the masteread , we are managing through the theme and in second the masterhead we are managing throgh application.
    Either of the scenarios can be used to create differet masterheads for different users.
    Hope the answer helps you....
    Reward the points if it is helpful.
    Thanks,
    Rudradev Devulapalli

  • Different masterhead image based on the user logged in

    HI,
    Presently we are using standard portal theme.How can I change the image in the masterhead based on the user logged in.How can i change that and i want to assign that masteredhead to users.
    Can anybody give me suggesion about this.
    Thanks,
    Regards,
    Srinivas

    Dear Srinivas,
            Simple of achiving this kind of scnario is create separate themes for different users and assign the themes to the users in master rule collection through Desktop Page.Here in this case you will be creating one framework page and multiple Desktops and themes.All the desktops will be having the same framework page and different themes based on the user type or group type.
            Otherway of achiving this is create an pdk application where it will have multiple jsp components in it and based on the each component create one PAR iview.Let us take if four groups of users then you will be creating four different jsps in pdk application which will inturn contains different masterhead images and related logos.After creating the iview place the iview in the correcsponding framework page below the masterhead iview.Here multiple framework pages and Desktops and you can go with single theme.
             In the first scenario the masteread , we are managing through the theme and in second the masterhead we are managing throgh application.
             Either of the scenarios can be used to create differet masterheads for different users.
    Hope the answer helps you....
    Reward the points if it is helpful.
    Thanks,
    Rudradev Devulapalli

  • Pdfwatermark based on the user who login

    Hi,
    I wanted to know whether we can apply pdfwatermarking to documents based on the users who logs in?how?
    Thanks in advance

    I just got your point: you want to determine the rule, not the text in the PDF Watermark itself.
    I'm afraid, this is not possible - at least, OOTB. The rules really have criteria based on metadata of the document only - see http://docs.oracle.com/cd/E23943_01/doc.1111/e10978/e01_user_if.htm#CACCAGAB
    I can think of two ways how this could be resolved:
    - text in the template would be so dynamic, that it'd opt to blank if necessary (this requires that PDF templates may accept idocScript, which I do not know if true)
    - at the caller side or somehow in the processing of the called service (so that Watermarking is by-passed)
    It'd help if you describe your business scenario.
    P.S. I've just seen you described your scenario. So, it eliminates the option b) - just check if you can use idocscript in the templates, then.
    Edited by: jiri.machotka on Apr 2, 2013 3:21 PM
    Edited by: jiri.machotka on Apr 2, 2013 3:33 PM

  • How to hide iviews based on the user groups?

    Hi,
    I have a custom role with workset, page and iviews.
    The page has 5 iviews.
    User group1 can see 5 iviews in the page.
    Now user group2 wants see only 3 iviews in the page (same role).
    Without creating another role for user group2, How can I hide the iviews based on the user group?
    Is this possible?
    Thanks
    Sundar

    Hi Sundar,
    I guess to achieve this, you have to set the permissions at iView level.
    For this, go to System Admin -> Permissions -> Portal Permissions. Now navigate to your iView using the folder structure, do right-click on the iView and click on Open Permissions.
    Search for the particular group and add that and assign the privileges accordingly. You can remove Everyone group from the iView .
    Hope this will solve your problem.
    Regards,
    Saurabh Mathur

  • How to check Role based on the User ID

    Hi All,
      Based on the User ID how to check the role of the particular person[ex Employee / Manager etc].In HR module in which table the details are present.
    Thanks.
    Regards
    Tina

    Hi Tina,
    Use FM: <b>HR_GETEMPLOYEEDATA_FROMUSER</b>
    This will give you all info related to User ID.
    In parameter EMPLOYEESUBGROUP , you will get position of this employee.
    Hope this helps.
    Regds,
    Akshay Bhawgat
    Note: Some points would be nice if it helps.
    Message was edited by: Akshay Bhagwat

  • I have a main fillable form.  From this main form the user may need additional forms.  I want to create checkboxes that link to these additional forms.  This part I believe I know how to do (Properties/Actions/Open a File).  What I want to add is a javasc

    I have a main fillable form.  From this main form the user may need additional forms.  I want to create checkboxes that link to these additional forms.  This part I believe I know how to do (Properties/Actions/Open a File).  What I want to add is a javascript to the checkbox that when the new file (or form) opens some of the data (the repetitive data like name, date, etc.) from the main form is placed into the form opened where the same form fields exist.  Is this possible?

    Yes, but then it all has to be done using a script. You can't use the built-in Open A File command.

  • How to restrict the entries of a database table based on the user name

    Hi All,
    I have created a Database Table. Table maintenance generator is generated for the table.
    UNAME(user name) is one of the fields in the table. whenever the user creates a new entry, the field UNAME will be populated automatically with SY-UNAME value. I have used Table event '05' to do this.
    My requirement is...
    When a user tries to maintain the entries of the table using SM30, when 'DISPLAY' is chosen, all the records of the table should be displayed.
    When 'MAINTAIN' is chosen, only those records which have UNAME = SY-UNAME(User Logged in) should be in EDIT mode. and rest all the records should be in DISPLAY mode(greyed out). It should allow to edit only those records which are created by the user logged in.
    Could you please tell me how to do this..? Thanks in advance.
    Thanks & Regards,
    Paddu.

    HI,
    In table main. gen there are number of events , try to select one event like 05 for the Sy-uname.
    For the  requirement:
    In that event write the code like
    this is basic idea not the code:
    Case ' Sy-ucomm'.
    when 'display'.  " button
       Nomally for the display button it will show all the records, but we need to write a code like this.
    select all records frm the table.
    ( Need to write the code in case if the user first maintained the data then again press the display , list has to be refreshed.)
    when ' Maintain'. " button.
    Fetch the records that are with SY-UNAME and find out the edit function and implement it on each and every record.
    endcase.
    Thanks and Regards,
    Bharani.

  • Is it possible to lock the structure Tab in Solar02 based on the users

    Hi,
    In Solar02 transaction of solution manager , under configuration node - > structure Tab , it is possible to change the structure . Is it possible to restrict this authorisation based on login users.
    Best Regards,
    Saravana.

    Hi
    You can't restrict users as you required
    because if they have change access they can very well proceed.
    Moreover if you hide it will be hidden for all users from solar_project_admin...project tab
    Regards
    Prakhar
    Edited by: Prakhar Saxena on Sep 24, 2010 12:12 PM

Maybe you are looking for

  • My ipod touch 4g wifi randomly disconnects, any solution? my firmware is 4.3.1.

    Hi, I have an ipod 4th gen. It has firmware 4.3.1. I have a very annoying problem that my wifi gets disconnected randomly with no particular reason. The signal strength is excellent in my laptop. Also, when I see safari not responding, and then when

  • BPEL process blue print not importable by JDeveloper

    Hi I have a troublesome BPEL process that is not being imported into JDeveloper. Others work fine and the closed loop process change management works great. However, this particular one is annoying. On selecting the process, JDeveloper downloads the

  • Where can i find remarks in oralce applications

    Hi, I have an old instance. 11.5.9. I need to find the remarks in it. Can any one help where to look plz. Regards

  • Blackroom theme - cleaner look possible on close-ups & slideshow?

    Hello - Looking for someone that knows the darkroom theme pretty well. I have built a website mainly featuring photo galleries. When clicking on a particular photograph within an album, the image is enlarged and right above it there is the "bar" with

  • Error with JRE in Windows in Jbuilder

    I have the following messagge: -- IOException starting Java runtime process -- java.io.IOException: CreateProcess: C:\JBuilder7\jdk1.3.1\bin\javaw -classpath "C:\JBuilder7\jakarta-tomcat-3.3.1\lib\tomcat.jar" org.apache.tomcat.startup.Main -config C: