Olap variable in infopackage

SDN,
My question is the OLAP variable used at infopackage levl.
Is that variable got entry when queri runs or from where it gets value?
I didn't understand this I'm just confused in this regards.
why olap variable(BEX varialbe ) at ip level
pls could anybody clarifies this to me?
thx
r

Hi,
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).
http://help.sap.com/saphelp_nw04/helpdata/en/e1/b7463c32a3fe13e10000000a114084/frameset.htm

Similar Messages

  • Creating OLAP variables for infopackages

    Hello Gurus,
    I am interested in creating an "z" OLAP variable and then use in the DATA SELECTION in the infopackage,
    Where can I create the same?
    Thanks in advance.

    Hi,
    The following links will be very helpful for you.
    Step by step OLAP variable for Infopackage
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a05ac9fa-f44c-2c10-dbb8-ef54c102707c?quicklink=index&overridelayout=true
    Regards,
    Kush Kashyap

  • 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

  • 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

  • OLAP Variable in InfoPackage / DTP

    Hi Experts,
    I created an ETL process in our Dev instance, and in my InfoPackage and DTP was able to use an OLAP variable when filtering on 0FISCPER (eg 0I_CUFYE or 0FYTCFP).
    When I tried it in Prod, the loads failed because it couldn't find these variables.  I am looking to find these types of objects so I can either transport them (ideally)  or activate them directly in Prd (if I have too!), but cannot find out where they exist.  Help!
    Thanks,
    Darryl

    Found it finally!
    Transport connection - Query elements - variable (ELEM.VAR)
    Cheers,
    Darryl

  • 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

  • Loop OLAP Variable in InfoPackage from Table entries

    Hi SDN Community
    Is it possible to have a Routine in an INfopackage that reads a table with a number of entries in that table.
    The infopackage then executes with the selection that is retrieved, then reexecutes with the next entry in that table.
    Otherwise, i imagine if we place this infopackage into a Process Chain.
    We are trying to do the following
    Loop n times
        Execute InfoPackage restricted by Parameter a
    Next n
    where n = number of entries in table
    where a = attribute field within table
    a = Saraji for n = 1, a = Blackwater for n= 2, etc...
    Thank you.
    Simon

    Thank you for your respose Yogesh
    I thought of a way that might work, tell me what you think
    A process chain is set up.  The first step is to write an X to the first entry in the table.
    The infopackage has ABAP Code to read the table, and restrict on site where field = X
    The infopackage executes.
    Then in the process chain, the second entry has an X placed against it, and the first entry deleted
    And so on...
    Assumptions:
    - Is it possible to write to table fields in an infoObject from the Process chain
    - Do the parameters that are executed in the infopackage via this method, allow 'Overlapping requests' functionality to work
    - Can we dynamically create InfoPackages via BADI ABAP code as an alternative in the above methodology
    Thank you for your assistance
    Simon

  • OLAP VARIABLES

    Hello
    How to use OLAP variables in Infopackage.
    I want to create a package in which i want to give the period from value as last month and period to value as current month.
    how to achieve this using OLAP variables or other variables.
    thansk for your answer.
    Meps

    Hi,
    in the Query-Designer.
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/frameset.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/a3/4f8f3b294a7f2de10000000a11402f/frameset.htm
    Also there could be already existing BC variables which you could use.
    0CMLMON
    0CMONTH
    could be interesting for you.
    Heike

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

  • OLAP Variable with user exit for Infopackage Selection 0fiscper

    Hi Frds/ Guru's ,
                    I have a requirement to use a OLAP Variable for Fiscal year period 0fiscper(Characteristic ) in the Infopackage Selection. . I need to extract the data for Previous Year and Current Year , that is to be automatically selected with a OLAP Variable . The standard one's provided by SAP are not satisfying my requirement,as they are getting populated with SAP Exit and I am not getting the ranges .I am planning to create a variable and use the processing type as Customer Exit and Populate it with ABAP code in respective Enhancement RSR00001.
    Even Can I create a ABAP Routine ? Please suggest me which is better to do in respect to performance of dataload  , will be really glad if anyone can provide some code for doing this as u might have faced the situation sometime .
    I have checked with all the threads available , could get some idea but will be really thankful if u gimme some hints in writing the code , at Exit level and routine level .
    Thanks,
    Krish

    thnx

  • 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

  • OLAP variable in the Infopackage

    Hi folks,
    I would like to use OLAP variable in the infopackage so I selected Type 7 in the infopackage and selected OLAP variable '0DAT' since I need the current date. By default, the current date is selected as 'From' in the infopackage selection. How can I change this so that
    1) the infopackage uses this OLAP variable for the 'To Value' field and not 'From Value'  and keeps the 'From Value' blank. 
    2) the infopackage uses this OLAP variable for the 'To Value' field and manually a date can be entered for the 'From Value'.
    Thanks for your help.

    Probably not possible via type 7 but possible via type 6
    use the code below
    data: l_idx like sy-tabix.
    data: lower_limit LIKE SY-DATUM.
    data: upper_limit LIKE SY-DATUM.
    upper_limit = sy-datum .
    lower_limit = sy-datum - 1000000.  This should set lower limit to a least possible value
    read table l_t_range with key
         fieldname = 'BUDAT'.
    l_idx = sy-tabix.
    l_t_range-low = lower_limit.
    l_t_range-high = upper_limit.
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    modify l_t_range index l_idx.
    p_subrc = 0.
    Whenever you need to change your lower limit you have to enter inside the code and change it.
    Regards
    Anindya

  • InfoPackage OLAP variables used in the ZXRSRU01 INCLUDE - I_STEP value ?

    Dear All, as I am aware OLAP variables used in InfoPackage Data Selection are processed in the standard user exit (EXIT_SAPLRRS0_001) - INCLUDE ZXRSRU01 where the customer created global reporting variables are also processed when queries are run and are processed according to the value of I_STEP being 1, 2 or 3.
    When processing the variables according to the running of InfoPackages the value of I_STEP in this case seems to be 0. Is this always the case for the value of I_STEP = 0 when processing according to InfoPackage?
    I have meticulously searched documentation and can only find the I_STEP = 0 value when applied to Authorisation processing.
    We are creating separate Includes depending on the value of I_STEP instead of having one great block of code in the ZXRSRU01 Include.
    We obviously want the InfoPackage code to run only when the InfoPackage runs instead of it being checked every time a query is run.
    Also is there an easier way to see where a customer variable is used:
    1) rather than creating a dummy query that uses the variable to restrict a characteristic and using the right click mouse funstion to see where the varaible is used in queries? and
    2) also when the variable is used in InfoPackage selection is there a transaction or feature somewhere to see where this variable is used in these selections as opposed to looking at the table RSLDPSEL via SE16 selecting on variable name
    i.e is there a nice "where used" feature that shows comprehensively where a customer user exit variable is used across the board.
    Thanks
    Mark

    Hi Sarah,
    You don't need any FM for your issue.
    Please try thie sample code :
    DATA: VAR_INPIUT LIKE RRRANGEEXIT.
    CASE I_VNAM.
      WHEN 'ZVAR2'.
       CLEAR L_S_RANGE.
       IF I_STEP = 2."PROCESSED AFTER VARIABLE INPUT
    *Reading value of ZVAR1
        LOOP AT I_T_VAR_RANGE INTO VAR_INPIUT
          WHERE VNAM = 'ZVAR1'.
          CASE VAR_INPIUT-LOW.
    *FILLING ZVAR2
           WHEN 0.
              L_S_RANGE-LOW     = 10.
           WHEN 1.
              L_S_RANGE-LOW     = 20.
          ENDCASE.
          L_S_RANGE-SIGN     = 'I'.
          L_S_RANGE-OPT      = 'EQ'.
          APPEND L_S_RANGE TO E_T_RANGE.
          EXIT.
        ENDLOOP.
      ENDIF.
    ENDCASE.
    Hope this helps
    Joe

  • 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

Maybe you are looking for

  • I have a 3G Iphone and can't get it to pair with the Uconnect phone in my car. Help?

    I have a 3G iphone with bluetooth.  I have been unable to get the iphone to pair with the Uconnect Phone in my car.  Any suggestions?

  • Need clarification on SATA and PC3200

    First of all thanks to all who replied to my first question, I robbed a 3.5 drive out of an old computer and will use it to load driver then remove it.  Or I may copy those drivers to cd and see what happens. Is it possible to do this and not have to

  • f:ajax render outside form problem

    Hello, I have a problem with Ajax partial rendering. My (simplified) situation is as follows: Code (in one xhtml page): <h:body> <h:form> <f:ajax render=":content" listener="#{myListener.update}"> <cu:menu value="#{customBackingBean.value}"/> </f:aja

  • Is it meant to take this long?

    Okay, I've had to leave my computer on for like 3 days now because I'm imported the entire Dragonball GT series which is 64 episodes each lasting around 20 mins each and before they can be synced onto my iPod they need to be converted and so its just

  • Why are drum pads not a valid MIDI input the screen controls pallet?

    I'm slowly getting around to creating a Concert that represents my controller setup and realized that the drum pads have a different behavior. When setting up my Korg nanoPAD as a drum sample controller, I have to map it to a keyboard and not a 2x6 d