OLAP variable creation

Hello All,
I want to create an OLAP variable for a master data infoSource to do selections for a specific infoObject. I am in the data selection tab but forgot how to start. Please advise.
Thank you and kind regards,
Keith

hi Keith,
take a look threads
how to write OLAP Variable which used in infopackage
Infopackage selection: OLAP variable
OLAP variable for data selection
hope this helps.

Similar Messages

  • 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.

  • Creation of an OLAP variable

    Hai All,
               I need to create an OLAP variable in an infopackage for an object for picking up data from last two months. I mean to say that the object has to pickup all the data pertaining to the last two moths only from the system date without any manual intervention. I see that there is an option in info package where I can select 7-OLAP variable and another option ABAP program. Which one of these is a good way and how to doit? any advise or also any reference to documentationwill be appreciated.
    Thank you very much.
    Message was edited by: vasu vasu

    Hi Vasu,
    > I already created a
    > variable giving an offset but its not showingup in
    > the list of OLAP variable showed in the info package.
    > Is there any other place where I need to do this?
    I experienced the same problem. My solution was to edit the variable and deselect the 'ready for input' option. Also the variable has to be a SAP- or customer-exit variable so that it can run as a background job.
    Best regards,
    Christian Frier

  • 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

  • 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

  • Authorization with OLAP Variable

    Dear all,
    we have the following scenario: we need to built a report where we show e.g. a value per employee.
    In order to establish that user A can only see his own data and not data from user B we did the followoing:
    - Creation of a table ZUSER which contains User-ID (logon) and employee number, e.g. smith / 12345
    - Creation of an authorization variable with type customer exit (Y_SU202) and assign it to InfoObject employee
    - In the customer exit for OLAP variable the coding reads from ZUSER
    So if user A executes the report the system reads the table and fills the variable with the corresponding entry.
    It works fine.
    But I have to assign in the PFCG Role for the corresponding authorization object * (all values); if I enter the name of the OLAP value it doesnt't work. But I need to do that due to the fact that otherwise the user can select via filtering in the report all values as the auth. variable just works for the exection but not for the filtering (when a * is assigned) in the authorization object.
    I tried to enter Y_SU202 and $Y_SU202 in the authorization object; both ways doesn't work.
    Thanks for your support
    Marc
    P.S.: I'm not sure if I should have post this topci to the security forum.

    yes, RSSM setting is fine; i have there two InfoObjects (employee number and costcenter).
    i changed in the role the value to * for both fields for testing. (after $Y_SU202 did not work for the employee).
    It seems that this has something to do with the i_step = 0; if I change it to i_step = 2; the initial execution works.
    But if I filter afterwards in teh query on the employee (select filter value) I see all values which is wrong.
    If i change the coding to i_step = 0 and the variable to input ready I do see all values, too.
    it seems that the auth. check does not work

  • OLAP Variable for Filter Selections in DTP

    Hi
      In BI 7.0 DTP i am using a ZZ OLAP Variable for a Filter on Location.
      How/Where i can check the values defined for that OLAP Variable and if i want to update that selection with few new values
    Thanks

    Hi,
    Please check the threads below:
    Re: Infopackage - ABAP routine or OLAP variable
    Re: How to create OLAP Variable in DEV
    Re: Infopackage - ABAP routine or OLAP variable
    Re: creation of OLAP  Variable
    -Vikram

  • 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

  • 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

  • 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

  • Unable to Create "Not Equal to" condition in Variable creation

    Hi ,
    I am getting an error while creating variable at report level,
    Well, my condition at variable creation is ----> sum(A) where [country] <> " x" ...(It is showing the results when the country is equal to x) and the converse for the same ... If I use [country] = "x" .. It is taking as country not equal to x ..
    Please suggest me on this..
    Thanks in advance ....

    Hi ,
    I am getting an error while creating variable at report level,
    Well, my condition at variable creation is ----> sum(A) where [country] <> " x" ...(It is showing the results when the country is equal to x) and the converse for the same ... If I use [country] = "x" .. It is taking as country not equal to x ..
    Please suggest me on this..
    Thanks in advance ....

  • 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.

  • OLAP variable in ABAP Routine.

    In data selection of Infopackage, I have used a OLAP variable. Is it possible to access the routine for OLAP variable in a ABAP routine?? How to proceed for the same???

    Hi,
    There are function modules for SAP variables.
    -     RSVAREXIT_variablename
    -     RREX_VARIABLE_EXIT (for variables to be processed see include LRREXTOP).
    Customized variables with exit can be accessed by FM EXIT_SAPLRRS0_001.
    If you are able to transfer mandatory parameters, just implement call of required FM
    Into report. If not, you have to copy and adopt coding desired from the FMs.
    Hope this helps
    Joe

  • ABAP code for custom OLAP variables

    Hi experts,
    We have a custom variant set as customer exit that I have just added to an infopackge for the data selection of 0FISCYEAR infoobject via 7-OLAP Variant. When I click on the magnifying glass under the "details for Type" column, the "Use Variable of OLAP Processor" window appears showing the OLAP Variable and the fiscal year variant. When you hit F6 (check) it should process the variant and return data for the ranges. With this variant we are using there is not data being returned (using the SAP exit variants data is returned).
    I have gone through the forums and have seen people citing the function module EXIT_SAPLRRS0_001 as this is the user exit which houses such abap code. I have seen the variant inside this module and the code itself, but why is it in the infopackage when I click on check (F6) no data is returned? I am getting the feeling this abap code is only executed for reporting. In this case I want the infopackage to select certain data from R/3 (via the use of OLAP variable with custom code) during the load to the ODS.

    Hi Mark,
    If you created the custom fiscal year variant as a customer exit type, I doubt that it'll work.
    Variant is an auxiliary time characteristic. You cannot create it. You can only add new char values:
    BW Customizing Implementation Guide (SPRO tcode) -> Business Information Warehouse -> General BW Settings -> Maintain fiscal year variant.
    Though, maybe I misunderstood your requirements.
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • Infopackage Selections Tab-OLAP Variable/ABAP Routine

    Hi Experts
    In my Infopackage Selections Tab i had Cal Mon/Year field....
    As per my requirment i have to write a selection condion that when we execute info package (it is a monthly data load)  it will extract data only for the months greater than or equal to current month
    Please update me on how can i achieve this either by using OLAP Variable or ABAP Routine in infopackage...will be great if can provide the required ABAP Code
    Thanks in Advance

    here's an example that fills the fiscal year from last month (bold is customer code... the rest is standard):
      data: l_idx like sy-tabix.
      read table l_t_range with key
           fieldname = 'PARAM_P_GJAHR'.
      l_idx = sy-tabix.
      data:
      v_caldy type /BI0/OICALDAY,
      v_calmn type /BI0/OICALMONTH,
      v_calyr type /BI0/OICALYEAR.
      v_caldy = sy-datum.
    determine first day*
      v_caldy+6(2) = '01'.
    determine last month*
      subtract 1 from v_caldy.
      v_calyr = v_caldy(4).
      l_t_range-sign   = 'I'.
      l_t_range-option = 'EQ'.
      l_t_range-low    = v_calyr.
      modify l_t_range index l_idx.
      p_subrc = 0.

Maybe you are looking for

  • How do I make one large MP3 of whole

    Hi I want to concatenate all 0 tracks of my audio CD and create a single MP3 file with ID3v tags. I can do this easily with iTunes, except for that it produces only ID3v2 tags. I have had a look on the Creative software (Media Creator?) but that does

  • Can't import raw images

    I want to import RAW images. Have always been able to import JPEG's to iPhoto. Reformatted memory card. Took picture. Picture appears visible on playback. When I import, iPhoto says the image is unreadable. What to do?

  • How i can install the products  that i have in my contract on my laptop?

    how i can install the products  that i have in my contract on my laptop?

  • Help: I cannot open a tiff in ACR - CS6/Mac v8.6

    I am not able to open a tif in ACR anymore. The option is dimmed in Bridge file File>Open in Camera Raw.  The option is not available when I right click on image. Thanks in advance for your help! bill

  • Monitor configuration not set with xorg.conf

    Hey, I have a Lenovo Thinkpad x230 with Intel HD4000 Graphics in a Mini Dock Series 3 usb 3.0. Connected to the Dock are both a 23' Workstation Monitor and a 32' TV. So with the internal Laptop Monitor there are 3 Screens available. The HD4000 is unf