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

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

  • 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

  • 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

  • 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

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

  • OLAP variant for InfoPackage usage

    Hi, experts
        new I need a new OLAP variant from current year period 1 to current year current period minus 2 ( for example, current period is 12, the varient should returen 2005001 - 2005010 )
        I find the SAP Exit "0FYTLFP" which can used in infopackage reture value from current year period 1 to current year current period minus 1 (2005001 - 2005011).
        then I write my customer user exit "ASP_PP_1" to derivated value from "0FYTLFP"
    CASE i_step.
      WHEN '0'.
          WHEN 'ASP_PP_1'.
            READ TABLE i_t_var_range WITH KEY vnam '0FYTLFP'
                   INTO i_var.
            l_s_range-low = i_var-low.
          "skip code for get value of current period minus 2
          "XXX is reture value
            l_s_range-high = XXX
            l_s_range-sign = 'I'.
            l_s_range-opt = 'BT'.
            APPEND l_s_range TO e_t_range.
         WHEN Others.
        ENDCASE.  "for i_vnam
      I debug user exit that I_Step = 0 if we select some OLAP variant in infopackage setting.
      the problem is, i_t_var_range table is alway blank when I debug the code. so I can not convert version from
    "0FYTLFP"
      how was solution about this problem ?  do you anyone met similiar problem as me?
    thanks in advance

    Hi Jie,
    the way you implemented the exit, variable ASP_PP_1 depends on variable 0fytlfp. When nobody enters values for 0fytlfp your variable will return an error (or no value). This of course counts for queries only.
    In InfoPackage, there is no way to enter any variables, so that's wy i_t_var_range is emtpy.
    Try to calculate your ranges based on sy-datum. Its the date of the clock of your server, so it should work
    regards
    Robert

  • 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

    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

  • OLAP variable for data selection

    hi all ,
    can any own explain how the OLAP variable is used for data selection in the info package. how the value is changing in the Variable.
    thanks in advance
    rajan

    Hi Rajan,
    You will not be entering any date value. As Dirk mentions, the value will be filled into the variable by way of an exit, i.e. automatic processing according to some code.
    Like your date variable can get you the first of the previous month from the exit processing.
    Hope this helps...

  • 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

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

  • 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

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

Maybe you are looking for