Urgent::::What is OLAP Variable

Hi Experts,
I want write my own OLAP Variable in data selection in info package.....
So where is the editor where i can write my own logic for a particular OLAP Variable????
Pls share some knowledge of OLAP Variable in BW.
Some good document on OLAp variable....
Thanx in Advance????
Naween

Hi Naween,
Three things need to be done: -
1. In the Query Designer, create a New Variable based on the InfoObject that has the same data type as the value in your infopackage field selection. For example, create a variable for InfoObject 0CALDAY if your selection field is a date. This can be done in any query that has the required InfoObject. The processing of this variable must be 'CUSTOMER EXIT'.
2. In CMOD, create code for this variable. Sample code for the derivation of first and last dates for year based on 0CALDAY is affixed below: -
DATA: f_date LIKE sy-datum,
      f_date2 LIKE sy-datum,
f_date3 LIKE sy-datum.
WHEN 'Z1ST_LST'.
returns first and last day in year
    CLEAR f_date.
    CLEAR f_date2.
    CLEAR f_date3.
    f_date = sy-datum.
    CLEAR l_s_range.
    concatenate f_date+0(4) '0101' into f_date2.
    concatenate f_date+0(4) '1231' into f_date3.
    l_s_range-low  = f_date2.
    l_s_range-high = f_date3.
    l_s_range-opt  = 'BT'.
    l_s_range-sign = 'I'.
APPEND l_s_range TO e_t_range.
3. Select the InfoPackage 'Data Selection' tab, then 'OLAP Variable' and specify the newly created variable. The values are not prepopulated but only populated at runtime. To review the values that will be populated, select the 'Details for Type' button and the 'Check' (glasses) button in the subsequent screen. If the values are not populated with the 'Check' method, you may have to log off and on to the system.
Regards,
Eugene

Similar Messages

  • Use of OLAP variable 0FYTCFP in extracting GL transaction figures

    Hi
    We load data to cube 0FIGL_C01.
    We use the OLAP variable to ensure that we are extracting for the current fiscal year to date, as a full load, with a deletion of overlapping requests in the process chain.
    Our fiscal year ends 30 June. My question is around  special periods and opening of the new fiscal year while posting is still allowed into the old year e.g. on 15 July both the old year and the new year are open as the year end processing is still underway, and special periods 13-16 might also be in use.
    Do I have to wait until the user close the year (a manual step) to then do a "final" run for the year, with the periods specified manually, or is there a way to automate this?
    thanks and regards, Lara

    Hi Sander
    Thanks for the response.
    That;s what I have been doing (run manually after the period is closed). It is not ideal, in my mind, because it (1) relies on someone remembering to do it and (2) has to be done repetitively i.e.at least daily until the "old" period is closed, otherwise reports based on the provider will not be accurate. Again, not hard to do, just a pain when everything else is automated.
    This particular DataSource is not delta enabled, otherwise I would have used the delta loads.
    regards, Lara

  • Creation of OLAP Variable for Master data

    Dear BW Experts,
    How to Create OLAP Variable for Master data  in SAP BW? What is the use of OLAP Variable?

    The entry column Type (Variable) on the Select Data tabpage indicates a variable time frame in which the data should be requested. The variables are not replaced by concrete values until a request is made. There are eight options:
    Variable            Data request        Description
    0
                          Yesterday
                                            (12am – 12am)
    1
                         Last week
                                            (Monday-Sunday)
    2
                           Last month
                                            (1. (First day - last day of previous month)
    3
                           Last quarter
                                           (1. (First day - last day of previous quarter)
    4
                           Last year
                                          (01. (January 1 – Dec 31 of previous year)
    5
                      User time selection
                                               See below
    6
                       ABAP routines
                                               See below
    7
                         <b>OLAP variables</b>
                                                See below
    <b>Time selections with the help of the variables 0 to 4.</b>
    The variables 0-4 only refer to date fields of the data type DATS.
    <b>User time selection</b>
    Type 5 gives you a free selection of all fields.
    If you select this variable for a field, confirm the selection, and then choose Detail for Type, an additional dialog box appears. In this dialog box you can freely limit the values of the fields and determine the next period value and the number of periods until a repetition.
    Variables are placeholders for values and are not replaced by concrete values until a data request is made. You can also use a Variable for selections when requesting data for an InfoObject, if you choose type 7, confirm the selection, and then choose Detail for Type.

  • InfoPackage selection offset with OLAP variable

    Hi Bw Gurus,
    I have a requirement to load ODS with full upload everytime but in order to reduce repeated loads I am trying to use a DATE field which is not part of communication str. as a selection critera in InfoPacakge.
    I changed DS to include this field avaialable for selection and It's working fine when I input date to and from values hard coded in InfoPackage.
    Further I am trying to automate this InfoPackage scheduled weekly and I need to include date offset value for this DATE field to load for additional last 2 weeks every time to capture changes for already loaded data.
    I have created OLAP customer exit variable having Date interval for Date starting from last 3 weeks to Current DAte and included in InfoPackage selection for DATE field but it's not working. By the way if someone can explain what's meaning for two columns there for TYPE(Variable change to selection.....) and detail for type.
    Any clue for reason or any other way to accomplish this requirement?
    Thanks in advance,

    hi,
    can you explain me ,hw you solved the pbm,
    the same pbm i am facing.
    i am trying to load the data everyweek ( i have date field ),so i have selected OLAP Variable option -7 and there i have selected 0WEEK,but data is not comining from R/3,then i have selected the option -6 abap code,i have written code to get the date range,even though i am not able to retrive the data.
    can you suggest me
    Thanks
    Madhu

  • Can't find 0FYTLFP OLAP Variable in InfoPackage Data Selection tab on 3.5

    On BW 3.5, when generating an InfoPackage with the datasource as Purchasing Data(80PUR_C01), under Data Selection tab, for the InfoObject 0FISCPER, I selected 7 (OLAP variables)for the Type column, then click the button next to it and under the column of Details for Type to bring up a window, but when expending the OLAP Variable field list, can't find the following value in the list which shows up on BW 3.1:
    0FYTLFP     0FISCPER Cumulated to Last Fiscal Year/Period (SAP Exit)
    How to make the above value show up in the OLAP Variable list?   I thought maybe the variable 0FYTLFP needs to be installed in Business Contents, but there is no variable object type in Business Content.  It sounds like a SAP Exit, but how to make the SAP Exit value show up on BW 3.5?
    Thanks for everyone's input!

    hey Rohit,
    Besides the three variable values in the list on BW 3.5, now I find a new one in the list, called "0E_ROLE     0SR_ROLE     Role (SAP Exit)", I have no idea why this one shows up now.  Now all the four variables in the list are:
    1. 0CML12LM     0CALMONTH     Last 12 Months Excluding the Current Month
    2. 0CMONTH     0CALMONTH     Current Calendar Month
    3. 0E_ROLE     0SR_ROLE     Role (SAP Exit)
    4. 0S_RQMRC     0REQUID     Most Current Data
    0FYTLFP is still not in the list!   We can't try to create BEx query since our BW 3.5 system is just installed and we have not got to the step to ceate a query.  I try the 2nd way you suggested by pressing F6 on this variable with the typed in value 0FYTLFP, get the following msg "BEx variable 0FYTLFP could not be evaluated - No error message", that means it would not work on BEx query as well, right? 
    What could be the reason that we can't see 0FYTLFP variable in our new installed BW 3.5?  Do you think our BASIS missed installing sth?
    Thanks
    Message was edited by: Kevin Smith

  • Creating new OLap Variable

    Hi Experts,
    I want to create a new variable for using at data extractions. How can I do that, I tried it at CMOD but I couldn't see my variable at the OLAP Variables list how can I see it in the list ?

    How do I get the last 90days from current date in abap routine. When I go to the routine this is what comes up.
    Program conversion routine.
    Type pools used by conversion program
    type-pools: rsarc, rsarr, rssm.
    tables: rssdlrange.
    Global code used by conversion rules
    $$ begin of global u2013 insert your declaration only below this line -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
        InfoObject      = SHIPDAT
        Fieldname       = DELIV_DATE
        data type       = DATS
        length          = 000008
        convexit        =
    form compute_DELIV_DATE
      tables   l_t_range      structure rssdlrange
      using    p_infopackage  type rslogdpid
               p_fieldname    type rsfnm
      changing p_subrc        like sy-subrc.
          Insert source code to current selection field
    $$ begin of routine - insert your code only below this line        -
    data: l_idx like sy-tabix.
    read table l_t_range with key
         fieldname = 'DELIV_DATE'.
    l_idx = sy-tabix.
    modify l_t_range index l_idx.
    p_subrc = 0.
    $$ end of routine - insert your code only before this line         -
    endform.         
    TIA

  • Step by step OLAP variable for Infopackage

    Hi Experts
    I have been thru all the threads but am still not clear how to accomplish this.  I am not an ABAPer so am trying to do this in Bex.
    I am in BI 7.0.  I want to create an OLAP variable for 0CO_OM_CCA_9 infopackage to select all cost centers for one 0comp_code.
    I've tried creating a query as well as variable but I can't seem to get it to work.
    I think the problem is all of the various possibilities of Settings in the variable creation i.e. Processed by, repalcement path, etc
    Thanks very much for your help !

    Thank you very much Sven !  This is exactly what I needed.
    I have a couple of additional questions.
    Do I use the variable in this query somewhere or just create it on the Cube?
    For Replacement Rule do I choose query and use the query I've just created or choose variable ?
    I have done this with query in replacement Rule and I can't see my variable in the list for selections in my Infopackage. 
    Thanks for your help
    laura

  • Options 0 to 7(olap variable) in infopackage Scheduler screen

    Hi Pioneers,
    I've seen 0 to 7 options in the selection Tabpage of Infopackage scheduler screen(option TYPE beside a date selection).
    0(Yesterday),1(last week),2(last month)....6(Abap code),7(Olap variable).Could any one please let me know what do these options does?If  I am not wrong are these to pick data accordingly(weeek,month..).Please give me a clear picture
    Thanks in Advance
    James

    hi James
    this field is to used to populate date range field dynamically
    suppose u r loading any particular infopackage weekly for previous weeks data (monthly or daily) then u can use option 1 (2 or 0).
    but if u want u r own logic to populate this range in data selection tab for loading then u have to write routine in ABAP in option 6.
    Message was edited by:
            Arun Purohit

  • Problem in OLAP Variable for InfoPackage

    Hi All ,
    My requiremnt is to get all the Blank values for VERSION field from the R/3 to BW .
    So I created a OLAP variable and given that variable in the InfoPackage.
    code i written is
      IF p_vnam = 'ZS_BLKVR'.
        CLEAR: l_s_range.
        l_s_range-sign  = 'I'.
        l_s_range-opt  = 'EQ'.
        l_s_range-low   = '' .
        l_s_range-high  = '' .
        APPEND l_s_range TO p_t_range.
        CLEAR: l_s_range.
      ENDIF.
    Now when iam loading data in BW , it is giving zero records , but there are records in r/3 with blank values for VERSION field.
    in the selection critria it is displaying as '#' for Version in the monitor.
    So is there any other way to get the Blank values VERSION records from R/3
    Thank You.....

    Hi Ravi,
    You can write an ABAP routine to populate the VERSION field. Choose type '6' from the drop-dwon and try the following code,
    loop at l_t_range into l_s_range where fieldname = 'VERSION'.
      l_s_range-low = ' '.
      modify l_t_range from l_s_range.
    endloop.
    If it doesn't work then try to use the other way round. Find out what are the non-zero values possibel for version and exclude all the values from the selection.
    Hope it helps.
    Thanks,
    Soumya

  • OLAP Variable not populated

    Hi All,
    I have created an OLAP variable which is being used in an infopak. In development, when i go into the infopak and display the result of the variable, i get what am expecting.
    However, after I have transported this to QA, when I go into the infopak and try to display the result of the variable i get the following error;
    BEx variable YVC00060 could not be evaluated - No
    error message.
    I have checked the user exit in cmod and the code is there and it is active. Have searched the usual places but cannot find any answers.
    thanks Geoff.

    Hi Geoffrey,
    Could you please explain a little bit more.
    How you are using a Bex variable (YVC00060) in Infopack?
    Anyway, one thing I could think of is that the Function Module's (EXIT_SAPLRSS0_001) assignment may have become inactive.
    Please check the assignment in CMOD.
    Regards,
    Vikrant.

  • OLAP Variables and transportation system

    Hi,
    When I transport a variable from the development system to the production system, SAP transports not only the definition of the variable but the current content of it.
    In our case this is an odd and dangerous behaviour: I have some OLAP variables defined which their values are used to know what data to load in next load process (they are parameters for InfoPackages and DTS processes). So, if someone transports a variable it will overwrite the current content of it and some data can be lost or loaded again.
    This is what happened us few days ago. Someone transported a variable from the developement system and SAP used the current value copied from the development system (and not from the production on) to load and manage data.
    I posted a note to SAP Support System and they said that this is the standard behaviour of it.
    a) Do you think that this is a normal behaviour?
    b) Do you know any method to avoid developers to don't transport variables to the production system by accident ?
    Thank you
    Ramon Roura

    Look at following link:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/44/b4a2bc7acc11d1899e0000e829fbbd/frameset.htm
    In case, it's a fresh installation, then just run the command "STMS". This will recognise that there is no configuration and it will ask you for inputs. Kindly input the domain controller details and you will be able to set the basic configuration for transport management.
    Also, check the following links:
    http://help.sap.com/printdocu/core/print46b/en/data/en/pdf/BCCTSTMS.pdf
    Regards,
    Gauravjit.
    Reward points if the solution is helpful

  • Creation of OLAP  Variable

    Dear BW Experts,
    How to Create OLAP Variable for Master data  in SAP BW? What is the use of OLAP Variable?

    Hallo
    You posted this question three days ago and now again. What do you really want to now?
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    I hope this can help you.
    Close one of them
    regards
    Mike

  • SAP BI - OLAP variable in DTP unable to read from input ready variable in query

    Hello,
    Here's the problem:
    We have a process chain which is launched in a WAD.
    We would like to filter the DTPs in the PC with the values entered in the variable screen of the WAD
    I created a variable of type customer exit X which reads the input ready variable Y in CMOD.
    Customer exit variable X was placed in the filter of the DTP.
    The input ready variable Y in the query contained in the WAD.
    I am getting an error that customer exit variable X is getting not value.
    Is it possible to read an input ready variable in a customer exit variable placed in a DTP?
    Or am I missing a step here?
    Please help.
    Thanks in advance

    Hi Anjalee,
    Maybe it would be good to share a bit more information on your scenario and the chosen solution design. I am currently missing the point of triggering a Process Chain using Web Application Designer.
    Anyway, I recommend to be careful with using OLAP variables in DTP filters. For sure not all functionality is present, e.g. because the variable pop-up is absent. Your constellation of an input ready variable and a customer-exit variable will only work in the context of a BEx Query and probably not if used in a DTP filter.
    Best regards,
    Sander

  • Issue With OLAP Variable

    HI all,
    we have an issue with the OLAP variable. One of the  SAP olap variable(0P-perf1) is processed  as Authorisation. where it should be sap exit. When we try to change at the BEx analyzer it was in disabled status.
    My question here are :
    1) How we can change the processing type?

    Hi,
    Pls refer link
    creation of OLAP  Variable
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a55ece09411d2acb90000e829fbfe/frameset.htm
    It may help you.
    Thanks
    Edited by: npathak on Aug 4, 2010 4:09 PM

  • Can I use OLAP variable in ABAP Code of infoobject filter

    I have 0FISCPER infoobject in filter section of info-package while loading data.
    Below OLAP varaibles has below dynamic values that are being calculated at run time.
    0P_PRFP2 -  (Current fiscal period - 2)   ex: 2010010
    0P_PRFP1 -  (Current fiscal period - 1)   ex: 2010011
    0FPER    -    (Current fiscal period )        ex: 2010012
    I want to write ABAP CODE FOR using filter values from 0P_PRFP2 to 0FPER. (Last 3 fiscal periods - ex: 2010010 to 2010012).
    how to  use above standard OLAP variables in ABAP CODE to assign l_t_range (low or  high).

    try this using ABAP routine option (6)
    DATA: curryear(4)           type N,
                 currperiod(2)         type N,
                 prevper1(2)           type N,
                 prevyear1(4)         type N,
                 prevper2(2)           type N,
                 prevyear2(4)         type N,
                 prevfiscperYr1(7)   type N,
                 prevfiscperYr2(7)   type N,
                 prevfiscper1(3)      type N,
                 prevfiscper2(3)      type N,
                 w_length1              type i,
                 w_length2              type i.
      curryear = SY-DATUM+0(4).
      currperiod = SY-DATUM+4(2).
      If currperiod EQ '01'.
        prevyear1 = curryear - 1.
        prevper1   =  '12'.
        prevyear2 = curryear - 1.
        prevper2   = '11'.
      elseif currperiod EQ '02'.
        prevyear1 = curryear.
        prevper1   = '01'.
        prevyear2 = curryear - 1.
        prevper2   = '12'.
      else.
        prevyear1 = curryear.
        prevper1   =   currperiod - 1.
        prevyear2 = curryear.
        prevper2   = currperiod - 2.
      endif.
      w_length1 = STRLEN( prevper1 ).
      If w_length1 = 1.
        concatenate '0' prevper1 into prevper1.
      Endif.
      w_length2 = STRLEN( prevper1 ).
      If w_length2 = 1.
        concatenate '0' prevper2 into prevper2.
      Endif.
      concatenate '0' prevper1 into prevfiscper1.
      concatenate '0' prevper2 into prevfiscper2.
      concatenate prevyear1 prevfiscper1 into prevfiscperYr1.
      concatenate prevyear2 prevfiscper2 into prevfiscperYr2.
      l_t_range-low = prevfiscperYr2.
      l_t_range-high = prevfiscperYr1.
    *  modify l_t_range index l_idx from l_t_range.
    l_t_range-sign   = 'I'.
    l_t_range-option = 'BT'.
    modify l_t_range index l_idx.

Maybe you are looking for

  • Editing a Pre-Made template

    I bought a premade flash template, however as of now it is created in non-flash format. I would love to have my top piece as the flash that it was meant to be. My site is currently http://www.georgiavideoproductions.com and the way that it should loo

  • Can Bridge label images in Finder?

    I want the images I've selected in Bridge  - sorted by Rating -  to have a color label when I view them in a folder in Finder. Currently I just manually label each one in Finder with the Bridge window open. is there a better way?

  • Msg no F5598(Posting keys for acnt determ for transac. ERS do not exist

    A. Posting keys for acnt determ for transac. ERS do not exist B. Error in acnt determination(:table T030K key INT1 MWS Msg No FF709) C. How to carru out TOR?

  • Display picture problem since 4 days

    I have problem in my display picture. My old picture doesn't change from 4 days , I tried to do everything I can but no good result so what I have to do?  Please advise me.

  • HP Deskjet 3915 inop on iMac OS 10.9.4 laptop

    I have download the latest driver v4.04 I believe. If I try to print a document, the printer will run the sheet thru like it is printing but actually does not print anything on the page. If I go to printer utilities and click on head cleaning, the he