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.

Similar Messages

  • How to set a filter in DTP?

    Dear Gurus,
    I'm trying to load some selective data based on the Sales Order Number from DSrc to a DSO.  I'm trying to set a filter in the DTP.  Can someone please guide me how to set a filter in DTP?
    Thanks & Regards,
    Ashmeel.

    Hi,
    Double Click the DTP. Open the extraction Tab. On this tab you can see Filter Icon click on that. Put the filter as desired in the sales order number. Save and Activate.
    In case the field on which you want to apply the filter is not visible, open the DTP in edit mode click on the FIlter button, now click on change selection button. Here in you can drag the required fields to LHS for them to be visible in filter option.
    Apply required filter value Save & Activate the DTP
    Revert in case of doubt
    Regards
    Raj

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

  • Using Spry Data Set Variable in Recordset

    I have a page that contains a spry data set and a recordset. The recordset uses one of the variables from the spry data set to filter its results. how do I apply the spry data set variable to the recordset?

    I believe passing this the variable through the URL requires you to update the page, right?
    Yes
    Is there anyway to grab the spry data set variable direct and apply it to your recordset filter?
    The SpryDataSet variable can only be used on the clientside (JavaScript) so you will have to get your recordset using JS.
    A page refresh can be set in motion if you add {useCache: false, loadInterval: 500} to your dataset to then set an observer to your dataset to invoke the page refreash function.
    Gramps

  • Set Variable column in the Column page?

    Hi,
    I try to do this exercise but I facing some understanding problem, please guide me.
    This is BIEE example to do Oracle BI publisher and Dashboard.
    1. Create a dashboard prompt for the region and state to filter the BI publisher report results on the dashboard.
    a. In Answers, open Region and State Prompt.
    b. In the Set Variable column, select None from the drop-down list
    c. Save the prompt in the My Sales folder as Region and state Prompt – No Variable.
    My question from step a and b, I did not see any “Region and State Prompt” in Answers. Then clik Subject Areas – SupplierSales, then assign Region, and State. Then I try to make Set Variable column None. But I did not see where is Set Variable column in the Column page. May be I am doing wrong.
    Please guide me to complete this.
    Thanks,
    Jo.

    BindingContext bindingctx = BindingContext.getCurrent();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer)bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("prv_supvo1Iterator");
    ViewObject vo = dciter.getViewObject();
    vo.setNamedWhereClauseParam("BDIVN", divn);
    vo.executeQuery();
    where BDIVN is our bind variable.

  • Setting a Filter on a dynamically created Table

    Hi All,
    I am currently working on a Database to automatize some process. Quick explanation:
    The User can import a CSV (Text) File via a DialogBox, which gets imported into a Table. After this, the content has to be filtered, setting conditions on 4 different rows. The new Table gets exported into a new CSV (It has to be CSV, since it later gets imported
    into SAP)
    I am having some trouble with filters though:
    How can I set a Filter on a dynamically created Table (using VBA)?
    Best case would be to save the filter into my Import spec, but Access doesn't seem to have this option (?)
    Can somebody help?
    Thanks in advance
    Regards
    Alex

    Thanks for the fast reply! Sorry, I am not really proficient at Access. How do I do a query on a dynamically created Table? Do I have to save the Table into a Variable. Or what's the way to import it?
    Hi Alex,
    I never use the Import functionality, nor DoCmd.TransferText.
    To import data from a csv-file I made my own Import functionality. In fact it is just reading an external file, line by line, and each line field by field using the field separator. In my opinion that is far more versatile than the standard functionality.
    But you can use the standard functionality of Access to import a csv-file into a table.
    Having the data in a table, you can generate the appropriate query for the output in a VBA procedure:
            sql_string = "SELECT Field1, Field2, ... FROM MyTable WHERE Field1 = ... AND Field2 = ... ORDER BY Field3"
    and make a recordset of it:
            Set cur_set = CurrentDb(sql_string)
    The output csv-file is then filled by opening a file for Write, loop through all the records, concatenate for each record all the wanted fields using the field separator, and write the result line to the csv-file.
    Most important is to understand this process. After that it should be possible to build it. And if you have further questions, just ask.
    Imb.

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

  • Set/remove filter

    Hi Colleagues,
    In BPS I have created a user exit variable which sets or removes a filter for the last 3 months. I could also create a buttom in the layout in bps_wb. With this buttom I can set or remove the filter.
    My point is the name of the buttom. Currently it is set/remove filter. I want to have it like "set filter" or "remove filter" based user status of the exit variable. If it is active the buttom should be "remove" in the opposite case "set".
    Do you have any idea? I have been searching in se80 in BPS-Application but could not find anything.
    Thanks a lot in advance.
    Best Regards,
    Laszlo

    Hi.
    Unfortunately I think that it is impossible in 3.5 (BW/BPS).
    In WAD 7 it could be achieved easly using standard functionality
    Regards.

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

  • Need to Programmatically Set IRR Filter on Date Field Due to APEX 4.1 Bug

    There may be another work around but, here is the problem that we are encountering...
    We have a huge table that is partitioned on a DATE field and an IRR that reports on this table. By default, we want to show the most recent 3 days of data. There is a built-in filter for "is in the last 3 Days." Sounds Great! Unfortunately APEX generates the code using TIMESTAMP rather than DATE functions. As a result of this, the query does not perform partition pruning and, as a consequence, it is doing a full table scan which takes forever. Note the use of the "LOCALTIMESTAMP" function in the query that is generated by APEX for this filter:
    SELECT   "BUSINESS_DATE",
             COUNT ( * ) OVER () AS apxws_row_cnt
      FROM   (SELECT   *
                FROM   (SELECT   *
                          FROM   position_delta_his p) r
               WHERE   ("BUSINESS_DATE" BETWEEN *LOCALTIMESTAMP*
                                                - NUMTOYMINTERVAL (:APXWS_EXPR_1,
                                                                   'year')
                                            AND  *LOCALTIMESTAMP*)) r
    WHERE   ROWNUM <= TO_NUMBER (:APXWS_MAX_ROW_CNT)If, instead, APEX used the SYSDATE function, as the underlying column is a DATE, this returns instantly, after partition pruning.
    SELECT   "BUSINESS_DATE",
             COUNT ( * ) OVER () AS apxws_row_cnt
      FROM   (SELECT   *
                FROM   (SELECT   *
                          FROM   position_delta_his p) r
               WHERE   ("BUSINESS_DATE" BETWEEN *SYSDATE*
                                                - NUMTOYMINTERVAL (:APXWS_EXPR_1,
                                                                   'year')
                                            AND  *SYSDATE*)) r
    WHERE   ROWNUM <= TO_NUMBER (:APXWS_MAX_ROW_CNT)
    The bug is that APEX should base the underlying function on the data type of the filtered column.
    As a work around, if we create a filter where BUSINESS_DATE >= '4/13/2012' (three business days ago), again, this returns instantaneously. The issue is that we can only set this filter by using the APEX GUI. We need to be able to:
    1. Determine the date for 3 business days ago
    2. Set this as the default filter.
    I tried creating a BEFORE HEADER PL/SQL page process but, it does not appear to be having any effect. Here is that code:
    DECLARE
        ldt_Filter DATE;
        CURSOR lcsr_GetMaxBusinessDate IS
            SELECT Max(BUSINESS_DATE)
            FROM POSITION_DELTA_HIS;
        DAYS_AGO CONSTANT NUMBER := 3;       
    BEGIN
        APEX_UTIL.IR_CLEAR( :APP_PAGE_ID );
        OPEN lcsr_GetMaxBusinessDate;
        FETCH lcsr_GetMaxBusinessDate INTO ldt_Filter;
        CLOSE lcsr_GetMaxBusinessDate;
        ldt_Filter := ( Trunc( ldt_Filter ) - 3 );
        APEX_UTIL.IR_FILTER( p_page_id       => :APP_PAGE_ID,
                             p_report_column => 'BUSINESS_DATE',
                             p_operator_abbr =>'GTE',
                             p_filter_value  => TO_CHAR( ldt_Filter, 'YYYYMMDDHH24MISS' ) );
    END;Can anyone tell me:
    1. How to set this filter programmatically (also needs to be displayed on the page so the user can see the current filter...as if it were created via the GUI) ***OR***
    2. Some other work around for this issue..
    Thanks,
    -Joe

    Actually, now that I look further, I don't think it is going to work to simply set the filter programmatically. The end user can still click the column heading where they are only given the choice of the LOCALTIMESTAMP based filters. If they pick one, the page is going to be out to lunch for them.
    We really need some other fix. We really need a way to actually address the underlying issue.
    -Joe

  • OBIEE 10g - Can I use logical SQL to set variable?

    I am trying to set value of a session variable in the Advanced tab Prefix box of a request.
    Assigment of absolute value like this is working good:
    SET VARIABLE MYVAR=1;
    Can I set the variable using logical SQL? Something like:
    SET VARIABLE MYVAR = (SELECT table1.col1 from catname where table1.col2=1)
    Thanks in advance.

    Hi,
    You can create a session variable or dynamic variable in the RPD and try using it in here at the Advanced Tab prefix.
    But still check yourself if you need multiple values returning in the SQL statement.
    Hope this is helpful/ useful.
    Regards
    MuRam

  • Need help with Different approaches to setting variables in a Flash movie in Adobe Flash CS3 Professional Version

    Hi,
    I'm using Adobe Flash CS3 Professional version of Flash
    software,
    I need help and guidance on
    Different approaches to setting variables in a Flash movie,
    what I should do in the fla file, and in the html file.
    Thanks, Gil

    Hi petro_jemes,
    Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
    I hope this helps.

  • ODI-SET VARIABLE IN PACKAGE

    HI.
    I am using odi11g.
    i set variable "STARTTIME" To sysdate .
    And "END_DATE" to a default value-- '20-JUNE-1981'.
    Now in package i dropped the variable "end_date",and put the TYPE to "SET VARIABLE" and the value as below:
    #VARIABLES_STARTTIME.[ The projects name is VARIABLES]
    But the value of "end-date" isnt getting reset to STARTTIME.
    should there be a different syntax.

    HI,
    Refresing the variable is working thanks.BUT i was trying to use the variable in a loop.
    Where when the package is run fo rthe 1'st time the variable 'LAST_UPDATE' value should be '20-JUNE-1981' and then it should get set to the value present in 'STARTTIME" for the next time the package is run.
    So, in this case, i need to set the value of the variable in the package itself.
    #VARIABLES.STARTTIME isnt getting set.
    i tried the package as per the below link:[ i use odi1g though]
    http://blogs.oracle.com/dataintegration/entry/using_variables_in_odi_the_tim

  • How to set variables values via VBA.

    Anybody please help.
    How to set variables values via VBA in workbook. SAP Netweaver 2004s.

    Pass variable values with VBA and BI 7.0 funtions to Query
    At first a remark u2013 Iu2019ve read a lot of threads saying that passing values to a query can be done by using VBA code only. Iu2019ve tested it but Iu2019m not sufficient with the new BEX 7.0 API and therefore I use a mixture of BEX 7.0 funtionality and VBA. I create a BEX 7.0 design item button passing the values to a query u2013 I hide this button somewhere on the sheet or on a hidden sheet and I then raise the event to click the button from VBA code. Works fine and the maintenance is easier if something changes in the API in the future again.
    How to start:
    Switch to design mode in BEX Analyzer:
    Implement a BEX 7.0 design item u201Cbuttonu201D
    Click on the button to implement the properties
    Make the input for the commands
    data_provider = dataprovider_1
    cmd = process_variables
    subcmd = var_submit
    No comes the part with the variables u2013 Letu2019s assume a query has 4 variables but you only want to change 1 with the button u2013 an organizational unit for instance.
    Make a range somewhere in the excel with the following structure:
    Name    Index   Value
    VAR_NAME_1      1       Variablename
    VAR_VALUE_EXT_1 1       variablevalue
    Value should contain the name of your variable of course and u201Cvalueu201D the value of your variable
    Set a name for this range with EXCEL functionality but without the header:
    Back to the properties of the button: Insert the name of the range with the variables in the field Command Range:
    If you have more variables to process you can of course enhance your Filterrange!
    In the left upper Corner you have a name for your button:
    Now you can raise the button-click in vba like this:
    Application.Run "'" & ThisWorkbook.Name & "'!Sheet2.BUTTON_35_Click"
    regards, Lars

  • How to set OR filter by using whereClause

    Hi all
    I want to set OR filter on whereClause
    I have to values value1 and value2
    now I want to show all records related to value1 and value2

    whereClause = whereClause + "And(vac.Name like '"+vacancy+"' or vac.Name in (";>for(int i =0; i < temp.length ; i++)
    >{
    > //pageContext.putDialogMessage(new >OAException("delimeters "+temp));
    > if(i == temp.length-1)
    > whereClause = whereClause +"'"+ temp[i] +"')";
    > else
    > whereClause = whereClause +"'"+ temp[i] +"',";
    >}
    >whereClause = whereClause + ")AND lower(vac.STATUS) like 'approved' "+
    > "AND vac.CREATION_DATE between to_date('"+ StartD >+"','dd-mon-rrrr') AND to_date('"+ EndD + "','dd-mon-rrrr')";
    > pageContext.putDialogMessage(new OAException(whereClause));
    //vo.setWhereClause(" (FndVacancyName in ("+temp+") OR >FndvacancyName like "+vacancy+") AND ((lower(vac.STATUS) like 'approved') AND (Vac.CREATION_DATE between to_date(" + StartD + ",'dd-mon-rr') AND to_date(" + EndD + ",'dd-mon-rr')) )");
    vo.setWhereClause(whereClause);> vo.executeQuery();
    but it doesnt work for two or more values

Maybe you are looking for

  • How do I get rid of the Facebook blue box on my Firefox pages???

    How do I get rid of - and why is - the little blue box with Facebook asking me to go through Facebook instead of directly to where I want to go??? I do not wish to allow Facebook into my life any more than it is now. Thank you

  • Fails to connect MBP 2008 to Sony Bravia with HDMI Cabel

    Trying to connect our MacBook Pro from year 2008 to our 2013 SONY Bravia by means of "Mini DisplayPort to HDMI Cable", the SONY Bravia will only show the background picture (Milky Way) of our MBP, but NOT the application that we have opened on the MB

  • Insert Buy Button Into Web App

    Hello, I've followed Mario's instructions here ( http://forums.adobe.com/message/5210303 ) and inserted a buy button into a web app detail view.  Unfortunately, the button doesn't seem to do anything: http://screencast.com/t/b46qgbPNYyN The cart/chec

  • N96 firmware 20.050 - Photo Menu Blank

    I've just updated to the latest firmware and now my photo menu is completely blank and I can't access any photos. They are all still there, I just can't view them at all - when I select one it just says "Processing...." I've tried a soft and hard res

  • Downloading OSX Lion & OSX Mountain Lion from the Mac AppStore.

    If I ever download one software on my macbook pro, will I have to buy it twice for my macbook air or will it download as an app via iCloud?