Equivalent of SYSDATE function in SAP MDX

For scheduling a web intelligence report, we will have to build a logic in the report or universe to automatically refresh the report for last week or last month or last year as per the requirement.
For this, is any one aware of an  MDX function equivalent to SYSDATE.
We cannot go for an SAP exit variable to implement this functionality as the condition would be applied transparently at universe level, which means any report built on this universe will run for a fixed period as defined in bex query. But the requirement is to be able to schedule the reports with different frequencies (weekly report should run for last week data,monthly report should run for last month data,yearly report should run for last year data).
Please let me know if my requirement is not clear.
I hope this post would be useful for many consultants.
Thank You.
Best Regards.
Naresh

I suggest you define calculated measures in the OLAP Universe using the Universe Design Tool. Here is a sample MDX query that illustrates how to build the measures expressions.
  MDX query  -
WITH
MEMBER [Measures].[Quantity Sold in Latest Month] AS 
  '([Measures].[0D_INV_QTY], TAIL(EXCEPT({[0CALMONTH].[LEVEL01].members}, {[0CALMONTH].[000000]}),1).item(0).item(0))'
MEMBER [Measures].[Amount Sold in Latest Month] AS 
  '([Measures].[0D_NETVLINV], TAIL(EXCEPT({[0CALMONTH].[LEVEL01].members}, {[0CALMONTH].[000000]}),1).item(0).item(0))'
SELECT
{[Measures].[Quantity Sold in Latest Month],[Measures].[Amount Sold in Latest Month]} ON columns,
{[0D_DIV].[LEVEL01].members} on rows
FROM [$0D_DECU]
  Result  -
Division     Quantity Sold in Latest Month      Amount Sold in Latest Month
Internal  
High Tech      2.205 ST                444.243,00 *
Service  

Similar Messages

  • How can I use Seeburger java functions on SAP XI's user defined functions?

    Hi All,
    As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions?  I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
    best regards,
    Mike

    Hi Mike !
    You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
    What kind of functions are you trying to use?
    Regards,
    Matias.

  • The value of sysdate function is sometimes not equal with O/S date.

    Hello, everyone.
    I administrate oracle 8i database that consists of OPS.
    The problem is that the value of sysdate function is not matched to OS date.
    It's runing commonly in equal state. but sometimes occurred, and the gap is one hour or one date.
    There are not any other logs and traces in the distination of oracle dump.
    So I can not detect what oracle event is happened on that time which the problem is occurred.
    Is there oracle event in this case?
    Could you reply to this problem?
    OS ver : HPUX 11.11
    DB ver : 8.1.7.4 OPS

    Please look into metalink note 1017965.102 for this
    You may need to change some settings in the System level to reset the Timde differential factor

  • Equivalent of to_date function in Ms SQL and using it in Evaluate function

    Hi,
    I am trying to find out a function in MS SQL which is equivalent to to_date function in oracle. Please find below the advanced filter i am trying to use in OBIEE.
    Evaluate('to_date(%1,%2)' as date ,SUBSTRING(TIMES.CALENDAR_MONTH_NAME FROM 1 FOR 3)||'-'||cast(TIMES.CALENDAR_YEAR as char(4)),'MON-YYYY')>=Evaluate('to_date(%1,%2)' as date,'@{pv_mth}'||'@{pv_yr}','MON-YYYY') and Evaluate('to_date(%1,%2)' as date ,SUBSTRING(TIMES.CALENDAR_MONTH_NAME FROM 1 FOR 3)||'-'||cast(TIMES.CALENDAR_YEAR as char(4)),'MON-YYYY') <=timestampadd(sql_tsi_month,4,Evaluate('to_date(%1,%2)' as date,'@{pv_mth}'||'@{pv_yr}','MON-YYYY'))
    The statement above works fines with oracle DB with to_date function. The same statement throws an error with MS SQL since to_date is not a built in function.
    With MS SQL I tried with CAST, not sure how to pass parameters %1 and %2.
    Please help me how to use Evaluate function and passing parameters along with to_date funtion in MS SQL.
    Regards!
    RR

    Hi,
    please refer to this thread for useful information on using to_char and to_date functions of oracle in MS SQL server:
    http://database.ittoolbox.com/groups/technical-functional/sql-server-l/how-to-write-to-to_char-and-to_date-sql-server-351831
    Hope this helps.
    Thanks,
    -Amith.

  • Crystal reports 2013 , SAP MDX Driver not able to connect with BW BEX Query

    Hi All,
    We just installed Crystal 2013, and want to create crystal report on SAP BW CUBE/BEX Query through SAP MDX Driver.
    1.When start connecting through SAP MDX Query option from new connection , SAP Systems which are in SAPLOGON are not appearing in initial screen. where as from OLAP Connection we are able to connect to SAP BEX Query.
    2.Even from SAP Tool kit we are not able to connect to BEX query, we are getting ERROR MESSAGE.
    and we are using SAP BI BO PLATFORM 4.1 sp01 .
    Please suggest me , if I am missing any configuration settings.
    Regards,
    Joseph

    Hi Joseph,
    Before you start building the report, make sure the right transports have been loaded on the SAP System. The right Transport files are the ones found inside the installation zip you download from SAP's server. They're under the "Collaterals\Add-Ons\SAP\Transports" folder.
    For more info on Transports, authorizations etc, please have your BASIS admin go through this wiki:
    Crystal Reports 2008 and BW - Installation and Configuration - Business Intelligence (BusinessObjects) - SCN Wiki
    To resolve your first issue, please follow the steps from this thread:
    Problems with SAPLogon.ini for SAP GUI and Crystal 2011
    P.S: Crystal Reports for Enterprise 4.1 does a better job at handling BEx queries that the CR 2013 designer. It directly connects to BEx queries via the BICS connectivity driver and doesn't need the Transports to be there on the SAP System. You might want to give this flavour of CR a try too.
    -Abhilash

  • Importance of Bounce management functionality in SAP CRM

    Hi All,
    I want to discuss few interesting issues which I have come a cross while doing a setting for bounce management functionality in SAP CRM 7.0
    Before sharing my experience I want to discuss some term related to Bounce email than will discuss about types of bounce emails and cause of the bounce email.The setting of bounce functionality is describing in below link .
    http://help.sap.com/saphelp_crm700_ehp01/helpdata/en/46/3f509215835fa7e10000000a1553f7/content.htm
    In general when a website visitor sigh up they receive email from the company site, the information the site collected saved in the database but It commonly happen some of your email will be undeliever. In marketing term we say it as 'Bounce'. this is the same way happen as when a person give a bank cheque to bank and don't have sufficient money to his/her account the bank people say the cheque got bounce ..
    As we are aware emails are bounce for variety of reason such as.
         - In case the recipient email address is invalid.
         - recipient email address is inactive or closed
         - recipient mailbox is full or mail server have some technical issue etc
    In general all these bounces emails categorize in two category.
    Hard bounce- When email address is not active. example wrong email address, email address de-activated, deleted,or closed
    Soft bounce-  recipient mailbox is full, mail server have some technical issue, Out_of_office is setup .
    Now finally we come to know about the cause of bounce email and types. Now the question arises why this is so important when we have bounce management functionality active in sap crm marketing ? as described in above url.
    suppose that there is a campaigning happening for an product where 3000 person visited it. Now incase 2000 visitors shown interest so have qualified as prospect bases on the information they have provided such as name, address, salary or employment detail.
    After successfully execution of campaign now senior executives create a mailing list for all the prospects in the target group of campaign and sends email to all the users.Now if I say to how many customers really company have reached reached after campaign execution answer will be we can not have the correct fact and figure as there could be some bounce happened.
    Now incase bounce management setting is configure in your CRM system than system will receive inbound e-mails for each bounce.Suppose we have received one thousand bounce emails than we would say actual customer contacted is 1000. this is the correct fact and figure and very much useful for marketing people.
    After than executive could remove email address which were hard bounced and for soft bounce they can use some other channel to contact like telephone calls etc to reach them.
    The correct facts and figures are very much important for marketing strategy and planning and also to know success level of each campaign. Assume a scnario where in day a company launches more than 5 campaign. I feel the importace is transparent now.
    I hope you would find some interest in above blog.
    Thanks
    prem

    HI, Sreedhar
    Check this thread:
    Re: New search help on CRMD_ORDER locator
    Denis.

  • E-mail functionality in SAP BO X1 3.1

    Hi All,
    I have few questions regarding the E-mail functionality in SAP BO X1 3.1
    1)Is there a limitation on size of report in Email within the SAP BO X1 3.1? 
    2)Can you zip reports within SAP BO X1 3.1 ?file type options(?)
    3)Is there an Impact on performance front end/back end if many users are mailing the reports using SAP BO X1 3.1?
    4)How can we restrict users to only email the public folder Reports?
    5)Only people with Scheduling have access to Email Functionality - Are there any other ways we can place restrictions around this?
    Please help in this regard
    Thanks in Advance
    Regards,
    Pavithra P

    Hi Pavithra,
    We can send a report instance (after schedulling) to an email address and not the actual report.
    Adaptive Job Server (Web Intelligence Scheduling and Publishing Service) is used to generate the instance and Destination Job Server is used to deliver that instance to the email address.
    If multiple users are expected to send instances to email concurrently then we could have multiple instances of Destination Job Server.
    As far as I am aware, there is no direct way to zip reports.
    If I am not wrong, the size of attachment would depend on the limitations set at Mail Servers. Your network administrator might help you on this.
    Hope this will help.
    Regards,
    Yuvraj

  • Using 'SYSDATE' function in ACCESS 2000?

    'SYSDATE' function is not working in ACCESS 2000 , is there any other
    alternative function available in access.
    I use a select statement using SYSDATE, but it did not work.

    I found it already.
    use the now() function.

  • Bank chain functionality in SAP

    Hi,
    If anyone has knowledge as to how to use bank chain functionality in SAP for vendor payment in SAP. Please let me know I will get in touch with more details for my query. This is required when we are making payments to a vendor and there are some intermediary banks involved between our bank and vendors bank. The tcode for setting up bank chain is FIBPU
    Regards,
    Vijay

    Hi,
    Mainly this bank chain is used for giving payments to foreign vendors. Normally house bank will finalise via which bank the payment should be made. But using this bank chain, you can specify this.
    Configuration:
    Create a scenario in IMG under bank chains.
    Here you can maintain your search criteria. If you select Gen.Search (General Search), you should use IMG activity Create General Bank Chain. After maintain this, you need to activate your chain in IMG Activity.
    Then in Easy Access, you can maintain Master data for Bank Chains under Bank accounting. Note, you can define upto 3 intermediary banks for a bank chain.
    Hope this will help you.
    Thanks,
    Krishna..

  • Equivalent of ValueList function in SQL

    Hi,
    Is there an equivalent of valueList function in SQL? Here's
    what I am trying to do:
    Suppose I have the following table:
    Name -- Color
    John -- Green
    John -- Red
    Mike -- White
    I want to do a query such that the colors are aggregated as a
    list. So the result would be:
    Name -- Color List
    John -- Green, Red
    Mike -- White
    The only way I could think of doing this is to loop through
    each name in the table and doing ValueList in each loop. Is there a
    better way?
    Thanks.
    Min

    > I want to do a query such that the colors are aggregated
    as a list.
    If it _must_ be done in sql, there are some database options.
    Such as the one mentioned above. There are also some interesting
    approaches using xml path and cross apply with MS SQL 2005. I do
    not know about other databases.
    http://databases.aspfaq.com/general/how-do-i-concatenate-strings-from-a-column-into-a-sing le-row.html
    Bear in mind there are some performance implications with all
    of the methods. For example, a udf would execute once for each
    name. So the more records, the greater the impact.
    Another possibility is to use cfoutput's group attribute to
    create a list for each name. Assuming that is feasible ..

  • What is the non-recursive stack based equivalent of this function?

    what is the non-recursive stack based equivalent of this function?
         static void _try (int n)
              int i; if (n==4) print(); else for (i=0; i<4; i++) if (is_free(i,n)) {
                   x[n] = i;
                   _try(n+1);
         }

    It goes infinite no output. Thanks though.
    public class CopyOfDamen { // x[i] = x coordinate of queen in row i.
         static int N = 4; static Stack stack = new Stack(); static int [] x = new int[8]; public static void main(String [] par) { _try(); }
         // prints field
         static void print ()
              int i,j;
              System.out.print ("+----------------+\n");
              for (i=0; i<8; i++) {
                   System.out.print ("|");
                   for (j=0; j<8; j++)
                        if (j==x) System.out.print ("<>"); else System.out.print (" ");
                   System.out.print ("|\n");
              System.out.print ("+----------------+\n\n");
         // tests, whether (ix, iy) is beaten by queens 0...(iy-1)
         static boolean is_free (int ix, int iy)
              int i;
              for (i=0; i<iy; i++)
                   if ((x[i]==ix) || (Math.abs(x[i]-ix)==Math.abs(i-iy))) return false;
              return true;
         // tries to place queen n on row n
         static void _try () {
              int i = 0, n = 0;
    call:
              for(;;) { // forever
                   if (n == N) {
                        print();
                   } else {
                        for (;i < N; i++) {
                             if (is_free(i,n)) {
                                  x[n] = i;
                                  System.out.print(x[n] + " ");
                                  n++;
                                  stack.push(i);
                                  i = 0;
                                  continue call; // call _try (but first save state and initiate new state)
                        } System.out.println();
                   // _try returns (check termination criterion and restore state)
                   n--;
                   if (n < 0) break; // terminate
                   i = stack.pop();
    } class Stack {
         int StackSize = 32, top = 0; int [] stack = new int[StackSize]; public Stack() {} void push(int x) { if (top < StackSize) stack[top++] = x; } int pop() { if (top >= 1) return stack[--top]; return -1; }

  • Formating sysdate function output

    Hi Gurus,
    I'm doing a POC with BPEL and XMLPublisher and need the current date in a rtf template. I found the function <?xdofx:sysdate()?>, this output is not in the correct format and I need to reformat the sysdate output.
    I also found the information about date formatting, but all this information refer to the field name. How could I reformat the sysdate function output?
    Thanks in advance.

    Hi mcarlosro,
    I hope you will be using form field method to place the sysdate....
    Do one thing ...in form field choose the type as a date...or choose current date.... if you r choosing current date.. hen no need to give any code... but i will suggest you to go with this code whatever you are having for this field........ and choose type as a date and type format.. whatever you want...... you can type it there....
    I hope it will help you.....
    Regards
    Ravi

  • Any report or Table to see orders with BP partner functions  in SAP CRM?

    Hello All,
    Could anyone help me  in getting  the table or any report  for orders with BP partner functions in SAP CRM?
    Would appreciate replying at the earliest.
    Cheers
    Sreedhar

    Hello Bruno,
    Thanks very much.
    It is somehow helpful for my need but  not completly. This is ok when the orders are less in number.
    My requirement is how to check the first name , last name and number for  contact persons in a list of  CRM orders(simply who is the contact person for a list of orders).Let me know for any additional info.
    I would apprecaite if you could help me in getting any other way.
    Cheers
    Sreedhar
    Edited by: sreedharhazari2 on Jun 8, 2010 9:18 AM

  • IS IT POSSIBLE TO CALL FUNCTION IN sap QUERY sq01

    IS IT POSSIBLE TO CALL FUNCTION IN sap QUERY sq01

    Use enhancement project SQUE0001 for background downloads of query data.  Use the 'Private File' option with the query execution.

  • Functionality in SAP to allow you to print multiple copies of a form

    I've been asked by a SD functional team member how to: 
    This is the table and field names for  Number of Messages functionality in SAP which should allow you to print multiple copies of a form at one time.
    Program Name:SAPMV13B
    Screen #:0211
    Transparent Table: NACH
    Field Name: ANZAL
    Data Element: NA_ANZAL
    How do I go about setting up this functionalilty?
    Thanks,
    Laurie

    Hi Laurie,
       There are three possible ways -
       1. Predefined number of copies - You can define number of copies in the print parameters while creating condition record. Ask you functional team member how they are setting up condition records. You have an option to setup print parameters on condition record screen. This is the only option if you are using output determination.
       2. If you have an isolated print program then you can choose to let user enter print parameters by using parameter " DIALOG = ' ' " in "open_form".
       3. If you have an isolated print program and do not want to let user control other print parameters you can take input from user ( or hard code ) number of copies and use that in parameter " OPTIONS " in "open_form".
    Cheers,
    Sanjeev

Maybe you are looking for

  • Error Max no of items in FI reached during CJ88

    Hi All, We are getting a similar error as above in cj88 error no F5727. The number of Fixed Assets defined in Level 1 WBS is 964. This is less than 999 so dont understand why this issue is coming. I find two other discussions in this forum: First we

  • Tns-12560 protocol adapter error linux

    I m running two independent oracle 11g on red hat 5 in vmware workstation 7 which is sitting on window xp where i m running 10g. I was facing a lot of networking when using tnsping. during my search i found that SUlinux and firewall was on which i tu

  • Relocation error from JNI

    Hi, I am writing a java program which uses JNI to call old c++ libraries, and got error message: ld.so.1:jdk/bin/sparc/native_threads/java:fatal relocaiton error:file /home/myhome/lib/libtest.so: symbol __xxxxx: referenced symbol not found libtest.so

  • Weird Cursor(s) in Photoshop Elements

    Today when I started using my photoshop elements the cursors had changed, there are different ones that switch depending on what tool I try to use. For some of the tools the cursor almost looks like it is trying to resemble the icon for it but three

  • Job Opening - LabVIEW (Bangalore & Noida Location)

    Looking for Labview certified candidates with 2-3 years of experience for Sankalp semiconductor, Bangalore Location and 3-5 years of experience for Noida. Relevant candidates can mail your updated profiles to [email protected]