Variable filter in InfoPackage

Hi Experts
We are considering using a full load datasource.
I remember to have read something about the possibility of making a variable filter on infopackage.
For instance the last three months.
Can anyone please give me a hint, or a detailed explanation on how to implement this ?
I'm in the 7.0 version.
Best regards
Ingrid

Hi Grid,
Just try to create a new IP, so that Type can be activated and there U can write the code.
data: l_idx like sy-tabix.
data: vdate1 like sy-datum.
read table l_t_range with key
     fieldname = 'FISCPER'.
l_idx = sy-tabix.
vdate1 = sy-datum - 3.
  l_t_range-iobjnm = '0FISCPER'.
  l_t_range-fieldname = 'FISCPER'.
  l_t_range-sign = 'I'.
  l_t_range-option = 'BT'.
  l_t_range-low =  vdate1.
  l_t_range-high = sy-datum.
  if l_idx <> 0.
    modify l_t_range index l_idx.
  else.
    append l_t_range.
  endif.
  p_subrc = 0.

Similar Messages

  • Variables available for InfoPackage

    Hello Gurus;
    Currently in one infopackage, as option to filter the Fiscal Year I use the standard variable 0FYEAR that is defined as SAP Exit.
    This works fine.
    However, I now want to add the previous fiscal year.
    I add from the Business Content the variables 0P_FYRL and 0I_FYRL. They are available in reporting, but not a option to select in OLAP variable in the InfoPackage.
    Does anyone know how to add them in the infopackage?
    Thanks in advance,
    Regards;
    Ricardo

    Hi,
    Please check the thread below:
    olap variable
    -Vikram

  • Set variable filter for query from dashboard in IR 9.3

    I have a dashboard that I want to set up to a process a query that has a variable filter. Can I set the variable filter in Javascript so the user does not see the variable filter/limit dialog? I'm using IR 9.3.

    OK, never mind. I figured out how to do it right after I posted this:
    mylimit = ActiveDocument.Sections["Query: New Users"].Limits[1]
    mylimit.CustomValues.Add("TAA")
    mylimit.SelectedValues.RemoveAll()
    mylimit.SelectedValues.Add("TAA")
    ActiveDocument.Sections["Query: New Users"].Process()
    var MySection = ActiveDocument.Sections["Report"]
    MySection.Visible = true
    MySection.Activate()

  • 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

  • How to remove Dublicate values in Variable Filter screen?

    Hi All,
    I have Master data Object, ABC, XYZ and XYZ Description, and below i have given the data for the same
    Ex  ABC    XYZ      Description
           A        1           Abc
           A        2           Bbc
           A        3           Ccd
           B       1            Abc
           B       2            Bbc
           B       3            Ccd
           C       1            Abc
           C       2            Bbc
           C       3            Ccd
    While executing the Query, we want to do Drill Down on XYZ, In Variable Filter screen we are able to see the Dublicate values, which is making confusion to endusers as which is realed to ABC i.e A or B or C?
    Regards,
    Kiran

    Hi Surendra,
    Say we have executed query using WAD, in Query when we do drill down on B, we are getting all dulicate values like Abc, Abc.
    So client is not able to find which is what.?
    Regards,
    Kiran

  • Filter situation / variable filter

    I've the following situation in Filter I give to extract data out of source.
    I've 3 filter conditions out of which 2 are constants and one varies every time.
    So I gave the first 2 as filters in Source which are working just fine. For the 3rd one I created filter table and joined it with the source to make the join condition as my filter. But whats happening is ODI first extracts data from Source(all data) and while writting in Working temp table its using the join condition. The reason its doing this way because Source is DB2 table and my filter table is Oracle. (I guess DB2 didnt like heterogenous joint condition)
    So instead of pulling 300 records from source its pulling almost 2 million records and then doing the join at working temp table.
    So instead of 30 seconds the whole process now takes more than 2 hours. How can I pass a variable filter to a source.
    Can I use a parameter file kind of thing(like in Informatica)
    -app
    Edited by: user6401072 on May 15, 2009 7:35 AM

    Only one problem, I duplicated an ash file to downloads (and modified part of it to differentiate the copies) to test it, but the script doesn't seem to be setting it as "theNewFiles", with the variable returning {}. Any ideas? Or am I doing something wrong?
    I really don't know. The script seems to work flawlessly in all my tests. Did you choose the right folder, the one called “New Location”, when asked by the script to choose a folder? Did the script work with some other files?
    I'd also like to be able to run the script without intervention (possibly even as a folder action script)
    Then the “choose folder” statement should be replaced with something like “set newLocation to POSIX file "/Users/curtisblack/Documents/New Location"” for example. The new Folder Action script (which should be attached to the Downloads folder) might then look like follows:
    --BEGINNING OF SCRIPT
    on adding folder items to thisFolder after receiving theseItems
    set newLocation to POSIX file "/Users/curtisblack/Documents/New Location" -- or some other location
    tell application "Finder"
    set theNewFiles to files of thisFolder whose name extension is in {"txt", "ash"}
    repeat with thisFile in theNewFiles
    set thisName to name of thisFile
    set theOldFiles to (files of the entire contents of folder newLocation whose name is thisName)
    if theOldFiles is not {} then
    move thisFile to container of item 1 of theOldFiles with replacing
    end if
    end repeat
    end tell
    end adding folder items to
    --END OF SCRIPT
    Message was edited by: Pierre L.

  • How to call a Query from widget which has mandatory variables/filter values

    Dear Gurus,
        I want to show data from BI query (BEX) in Wedget, which has variable/ Filter as input parameter.     Please tell me how add these parameters while calling query throgh web service.
    Regards,
    Aslam Khan

    Hi Aslam,
    Kindly refer to Page Number 49 u2013 23rd Point and Page 50 and 51 in the SAPEnterpriseWidgetDevelopmentGuide.pdf u2013 Which explains how to pass the Import / input Parameters.
    You can also refer these links u2013 [How to pass more than one value in RfcRequest ?;
    [how to bind an input field with an rfc input;
    Hope it helpsu2026
    Regards,
    Shilpa B.V

  • Why can I not use variable filter on 0FISCPER at InfoPackage data selection

    Hi,
    I have several InfoPackages that have to be filtered with the same 0FISCPER range (for example with 0CO_OM_OPA_1 data source).
    In data section tab of my InfoPackage, column Type is not applicable for InfoObject 0FISCPER.
    Can I change this behavior?
    Thanks an regards,
    Wolfgang
    Edited by: Wolfgang Taag on Mar 5, 2008 1:53 PM

    Hi Wolfgang,
    well it is ok in my system. May be you have some fixed values entered in the columns 'From' - 'TO' Value. Delete those values and the column will be ready for input. After entering a type e.g. a abap routine, the fields 'From' and 'TO' Value will be greyed out.
    regards
    Siggi

  • Applying variable filter while executing a process chain

    Hi,
    I have a  client requirement discussed below:
    I have a process chain containing multiple DTPs. The user wants to have a filter variable for fiscal year period while executing the process chain(i.e fiscal period selection screen should come for him to enter fiscal period). And the entire process chain should run for that selected fiscal period.
    Please help me with solutions of this dynamic process chain triggering.
    Points will be assigned if helpful.
    Regards,
    Sourabh

    Hi,
    You can craete a variant with some set of value and through ABAP code you
    can run the process chain according to your requirement.
    Thanks,
    Saveen Kumar

  • Variable filter selection in Web Template

    Hello we have 0VENDOR as BEx setting for Query Def. Filter Value Selection as 'D only values in InfoProvider', i've a mandator variable on 0Vendor for a query and when i run in Bex it works fine like the selection of variable brings up only the values in the InfoProvider.
    I've the same query attached to a Webtemplate, and when i run the Web Template and in Value selection of the Variable brings up all the values from Master Data instead of the Infoprovider.
    Any idea how to make it work in Web. btw we're in BI 7.
    thanks
    Mayil

    Mayil
    I don't think you can on the variables screen, however if it was feasible you could use a drop down box and have it look at posted values only. However this will only be available after the initial view of the query comes up.
    Regards
    Gill

  • OLAP variable selection in Infopackage

    Hi,
    I have a Requirement to load data for the last 14 days everyday,i.e Truncate laod,for that i have crated a userexit variable in Quey designer,that variable picks the data for last 14 days default.it is working fine in query on calday restriction,but that variable i used in Infopackage level for calday selection parameter,but its not working, my cube getting load for all days.Can any one help on this.
    Thanks
    Naveen.

    Hi..
    I am not sure if it helps or not.. but in PC there is option wekly and fortnightly...can you try this...
    REg
    Ram

  • Variable selection in Infopackage

    Hi,
    can anybody explain where we can see the InfoPackage selection variable? i mean which table contains this selection variable.
    i have checked RSZGLOBV in this table. i have not found that variable.
    this is the variable name GET_YESTERDAY.
    Regards,
    Madhu

    Hi ,
    In the infopackge >>> Data selection tab ..>>> there for your field some abap routine will be written by debugging that abap routine .. you can find the variable .
    check the table RSSELDONE
    Regards,
    shikha

  • Variable Filter in Xcelsius

    Hello,
    I´ve been looking for a way to filter the data from BW before getting in the Xcelsius.
    I have a Query in BW with some variables and i´d like to use this variables in the Xcelsius for the Users choose what data want to see
    Is there a way to do that using Universe? And how about the connection between Xcelsius and BW ?
    Thanks.

    I have not worked on BW anytime.. but, i can answer your questio keeping another back end in place of BW. I hope the following explanation answers your questions.
    - Build a universe against BW.
    - Create an Qaaws query and aply filters that you are looking for.. (Ex: Year)
    - Add a connection in Xcelsius to retrieve the data using the web service creted with help of Qaaws.
    - Lets say for example the prompt to choose the data for year 2001. In excel file, list all the possible values for year and crate an drop down list. If you end up choosing 2001, pass that value as an input to the webservice and it retrieves the data accordingly.
    Thanks,
    Praneeth

  • Set Variable Filter on DTP

    Hi,
    I have created a variable with Customer Exit on Bex and i have set this variable as filter also in the DTP for loading data.
    The customer exit should read in a custom table a value for the calmonth of analysis and assign it to the variable. When i set the variable as filter, the system is not able to find the proper value for the variable.
    Below you can find the code i added in the include of ZXRSRU01. i tested the function module i was able to see the correct value,
    I have one doubt: which is the I_STEP to use in this situation? What is wrong?
    Thanks,
    Veronica
    >Code
    DATA: l_s_range TYPE rsr_s_rangesid.
    DATA: loc_var_range LIKE rrrangeexit.
    CASE i_vnam.
       DATA: V_CALMONTH(6) TYPE N.
       WHEN 'ZLVVRCEMSI01'.
         CASE i_step.
             WHEN '1'.
         SELECT SINGLE ZMESEANNO INTO V_CALMONTH
         FROM ZMESE.
         l_s_range-LOW = V_CALMONTH.
         l_s_range-SIGN = 'I'.
                    l_s_range-OPT = 'EQ'.
                    APPEND l_s_range TO E_T_RANGE.
      ENDCASE.
    ENDCASE.

    I solved the problem.
    The I_STEP to use in this situation is I_STEP=0.

  • Variable filter from the same Object (WAD)

    Hello Experts,
    I am new to WAD and currently have a requirement where I have 2 different variables, contained within a single object in a query. Both these variables are in use as one of them is a mandatory (single value) field and the other not (single and multiple values). Actually I am trying to show a comparision between these two inputs (in percentage) in a chart.
    The query is designed in such a way that In the selection screen when I do not give any input in the non-mandatory field, it results an average of the available data, and when I select an input then it gives out the result of this particular input (either single or an average for multiple selection).
    So I wanted to implement a filter pane in the WAD, so that I can have a multiple selection. How can I differentiate the variable input as I need the filter on the non-mandatory variable. Can anyone suggest me on this.
    Thanks in advance
    Santosh

    You need to look into using a javascript function that takes the desired selection and sets the variable value of the non-mandatory variable rather than apply it as a filter on the query. So you would need another data-provider that is not tied to any web item but can be used to allow the user to select the filter values and then use Set Variable value command on the dataprovider for charts.
    Definitely not a complete solution but more of an idea that's worth trying.

Maybe you are looking for