DTP  filter routine is not working

Dear gurus
I am working with BI 7  and I have created following filter'routine in the DTP.
But the routine is not filtering.
The statement :  read table l_t_range with key
                           fieldname = 'CLEAR_DATE'.
is not working. sy-tabix = 0
Fieldname is really CLEAR_DATE
Please can you tell me what is wrong in the routine
data: l_idx       like sy-tabix,
        w_date      like sy-datum,
        w_date_low  like sy-datum,
        w_date_high like sy-datum.
  read table l_t_range with key
       fieldname = 'CLEAR_DATE'.
  l_idx = sy-tabix.
w_date = '20090705'.*
  w_date = sy-datum.
    w_date+6(2) = '01'.
    w_date_high = w_date - 1.
    w_date_low  = w_date_high.
    w_date_low+6(2) = '01'.
    l_t_range-low  = w_date_low.
    l_t_range-high = w_date_high.
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    modify l_t_range index l_idx.
  p_subrc = 0.
Edited by: Firmin Kouassi on Nov 3, 2009 12:04 PM
Edited by: Firmin Kouassi on Nov 3, 2009 12:05 PM

Try adding the following:
l_t_range-fieldname = 'CLEAR_DATE'.
to your code:
l_t_range-low = w_date_low.
l_t_range-high = w_date_high.
l_t_range-sign = 'I'.
l_t_range-option = 'BT'.
And at the end append/modify like this:
if l_idx NE 0.
    modify l_t_range index l_idx.
  else.
    append l_t_range.
  endif.
  p_subrc = 0.

Similar Messages

  • Filter option is not working in Reuse alv grid

    Hi all,
    Filter option is not working in alv grid properly.
    if i choose one particular field for filter option .it is working .but another field it is not working though it contains different values.please give the answer.whether i have to pass filter option throuogh reuse_alv _grid or not.thanks in advance
    raj

    Hi raja,
    1. The search/filter is
       CASE SENSITIVE
    2. U can give *
       to search for pattern.
      (IN THAT CASE, it is NOT Case Sensitive)
    regards,
    amit m.

  • Routine is not working properly?

    Expert's please tell me is there any problem with this routine?
    Because this routine is not working properly.It is not populating to all the fields the RESULT value.
    if
      COMM_STRUCTURE-/BIC/ZVEN_NAME = 'VENDOR1' or
    COMM_STRUCTURE-/BIC/ZVEN_NAME = 'VENDOR2'.
    result value of the routine
    RESULT = 'YEPSILON'.
    ELSE.
    RESULT = COMM_STRUCTURE-/BIC/ZVEN_NAME.
      ENDIF.
    Thanks in advance.
    vasu.

    Vasu,
    Here is the sample code which i have tried out in my system: its working properly, please find the same.
    $$ begin of routine - insert your code only below this line        -
    fill the internal table "MONITOR", to make monitor entries
    IF
    COMM_STRUCTURE-/BIC/YSLSTDP3 = '08.2007' or
    COMM_STRUCTURE-/BIC/YSLSTDP3 = '09.2007'.
    result value of the routine
      RESULT = 200000.
      ELSE.
      RESULT = COMM_STRUCTURE-/BIC/YSLSTDP3.
      ENDIF.
    if the returncode is not equal zero, the result will not be updated
      RETURNCODE = 0.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    *****Assign Points*****
    Thanks,
    Gattu

  • End Routine Code not Working after Support Pack Upgrade

    Hi BI Community,
    We have recently upgraded to SPS17 (BW SP19) for our production system and the code deriving the values of several attributes in the end routine of the transformation for one InfoObject (as info provider) does not work anymore. We have been trying to identify the root cause but the fact is that we did not change anything to the InfoObject and its transformation and this used to work fine. The strange thing is that when we debugged the code we could see the value of the aforementioned attributes was derived correctly but the value is just not updated to the InfoObject where we still see the old values for these attributes.
    We have a similar InfoObject with the same end routine code in the transformation and it is working fine. We are out of idea what could have caused this during the SP upgrade.
    Thanks in advance for your feedback.
    Regards,
    Peter

    Cannot say what might have caused it but one check you can perform.
    Open your transformation in change mode and you can see a button next to create end routine button, titled ' Update Behavior of End Routine Change', click on that and say all fields.
    Hope it helps...
    Regards,
    Ashish

  • Filter and navigation not working properly

    Hi Gurus,
    I have two reports - report1(source) and report2(target) report.
    In report1, it shows two columns - Market_ID, Amount_sold
    In report2, it shows two columns - Market_ID, Reasons(where Market_ID is made prompted)
    In report1, I have made the Value Interaction as 'Navigate' and the target as 'path of report2' in Column properties ->Column Format
    But, when I click on Market_ID(report1), it is NOT showing the details of that particulat Market_ID(report2).
    It is showing the details of whole Market_ID in report2. That means, the filter is not working properly.
    Is there any method in which the report2 shows the details of particular Market_ID which is selected from report1(market_ID)?
    Best Regards,
    J

    yes you can,
    in your source add a master_name column and in that make the navigation.
    in the master_id column go to column format and style options and check the Use Custom CSS style option and type,
    display: none
    now in your source the master_id column will get hidden. in your target make the master_id prompted.
    now click on the master_name in your source, your target will get filtered by the corresponding msater_id
    thanks,
    Karthick
    Edited by: kart on Jun 7, 2010 11:52 AM

  • OBIEE - Filter SQL Expression Not Working At All - Shows SQL But Not Result

    Im at my wits end for this
    I have a report where I am using a filter with a simple SQL expression
    cast ( timestampadd(SQL_TSI_YEAR, -1, Cast(Cast(DATE '@{pv_as_of_date}{2013-04-01}' AS CHAR) AS TIMESTAMP) ) as DATE)So an end user may input a date and this is passed into the filter via a variable
    pv_as_of_date
    This is defaulted to 2013-04-01
    I want to subtract 1 year to make the end result
    2012-04-01
    When I run the report I am seeing two issues
    1) When displaying the filter at the bottom, I see the full SQL code. Shouldnt this show the date returned? In this case shouldnt the filter show 2012-04-01?
    2) The filter does not even work which is my bigger problem
    I tested the above code in a column and I KNOW that the date is being returned as expected
    But when I use the same SQL code in the filter then it doesnt work
    Am I missing some special button some where to enable SQL expressions?
    Any help immensely appreciated

    Ok
    So I was able to find an option "Protect Filter" that seemed to make a bit of difference and I got the date part working after using the above corrected code (thanks)
    But now I want to add in the rest of my filter conditions and it does not seem to be liking it
    Im trying to use this filter
    'Acad ' || cast ( cast (substring ('@{pv_acad_year_desc}{Acad 2013/14}' , 6, 4) as integer) - 1 as char(4)) || '/' || cast ( cast (substring ('@{pv_acad_year_desc}{Acad 2013/14}' , 11, 2) as integer) - 1 as char(2))Im expecting the output to be in this case
    Acad 2012/2013
    When I test the above code in a column it works just fine, its just again in the filter that it isnt working

  • Delta download of material with filter on "ZFIELD" not working :-(

    Hi
    We have made a new field in basicdata of the material master (table MARA). We would like our EBP material filter to react on the value of this field. But it's not working
    In table SMOFFILFLD we have added the new field: Objekt MATERIAL table MARA field ZOVEBP. Now the field is available for the filter setup in R3AC1. I then setup the filter for the field
    TABLE     FIELD            OP                                 LOW       HIGH    Incl./Excl
    MARA      ZOVEBP       CP Contains Pattern         X                        I Inclusive defined set/array
    If I try making the filter on a standard MARA field ie. MATNR it working just fine...
    What to do?
    Thanks,
    Jacob Stisen

    Hey
    I have a way to find out why? ( I see no reply on this thread! let me give a try)
    open the function module CRS_FIRST_DOWNLOAD_TRIGGER and load the data and debug the steps with as minimum material as possible; you can change the filter at R3AC1 to different product category which has less materials and do the debugging during this initial load.
    Let us know what was the error!
    Also you may like to refer
    Note
    309734 - CRM/EBP server: General analysis of initial load
    443900 - Error analysis in the adapter framework
    337753 - CRM/EBP server: General analysis in upload
    337703 - CRM/EBP server: General analysis in delta download
    156102 - R/3 plug-in installation for CRM
    Please reward if this info is of any help.
    Thanks
    Kasee Palaniappan

  • Smart collection has "source color profile" as filter option, does not work on camera profiles

    In Lightroom 5 i tried to use the "source color profile" filter option in smart collection, however it only seems to work on rgb files (jpg, tiff) that have a profile embedded. It does not work on values like "Adobe Standard" which is a "source" profile of a RAW file, or any of the camera profiles i can choose fo given Raw file. What am i doing wrong?
    The Help does not give any clue on this, nor does the coverage by any of the Lightroom guru's like Juleanne Kost.

    In my opinion the filter is acting correctly.
    The Adobe Standard profile is not a profile defined in the source file, it is a profile assigned to the file in the raw converter and used with raw files that do not have a source color profile, already, so to me the filter is acting correctly because “source” means where the profile comes from, rather than what profile a master photo has had assigned to it. 
    The source-color-profile option is useful to determine the size of the color gamut in a file’s color numbers which indicates its suitability for various purposes:  An sRGB file can be safely uploaded to the web, an AdobeRGB file is going to look right on a wide-gamut monitor and printablebut shouldn’t be uploaded to the web, while a ProPhotoRGB file has a large color space and can be safely edited in a way that adjusts the colors significantly, especially if it is 16-bit, without color-banding or posterization, but a ProPhotoRGB file will probably not look good if directly uploaded to the web or sent to a print-shop that doesn’t do their own color profile conversions.
    I would agree that being able to filter raw files based on the assigned color profile would also be useful, but this is a different thing, to me at least, than filtering by the source-color-profile.

  • Filter in RSPLSE not working.

    Hi,
    I have made the Lock setting for one of the IP query in RSPLSE EXPERT mode. It is working fine in Dev environment. But I have transported settings to Test and it is not working there. Please elt me know what I could be missing out.
    Thanks in advance.
    Prakash C

    When you are zoomed out, many pixels are averaged into a single display pixel. For performance reasons, the sharpening is previewed on that downsampeld version of the image.  When you apply the filter, it applies to the full resolution version of the image, which then gets downsampled again for your zoomed out preview.
    So, let's say you had a grid of black and white pixels.  Zoomed out, it looks like gray.  Sharpening would appear to have an effect depending on the zoom level, but would never have any effect on the base level.
    And no, there is no way to keep performance reasonable and give you an accurate preview of applying the filter to the full resolution image.

  • LOV filter - Auto Submit not working after the value is made to VS.filter

    JDeveloper 11.1.1.4.0
    I have cascading LOV filters for a table with fields id, deptid, projectName. The filters are for deptid and projectName. When I select a deptid, the projectNames belonging to that deptid should be populated. I have set Auto submit for deptid filter and partial trigger for project Name. So if I select a deptid and when I navigate to Project Name filter I get the list of project Names in the Project LOV filter.This worked fine as long as I didnt change the value for LOV to Vs.filtercriteria.deptid. Once I changed it the LOV filter for Project Names only got refreshed once I hit ENTER key after changing the value of Deptid. But I have to keep the value for LOV to Vs.filtercriteria.deptid. Other wise the records in the table after applying the filter values didnt function properly. I dont know whether the AutoSubmit does not work when the value is changed to Vs.filtercriteria.deptid

    duplicate post.
    Frank

  • Sharepoint 2010 "Choice filter" webpart is not working on Ipad.

    choice filter web part is not working on IPad. whenever we click on filter Icon it shows only loading.
    please refer below screenshot for better troubleshooting.
    Thanks & Regards,
    Rajiv Kumar
    Rajiv Kumar

    Hi,
    Could you provide more details about how the search service doesn’t work?
    Are the search service unable to be started in CA -> Application Management -> Manage services on server? Or did you find it not working when you did searching? If that is the case, could you provide the error about
    it?
    It would be helpful to solve this issue if you provide more details about the issue.
    Best Regards,
    Dean Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Smart sharpen filter in CS5 not working

    Hi,
    My smart sharpen filter is no longer working It seems to be doing it's job when I have a preview dialog box open, but as soon as I ok the changes the original image appears as if nothing happend. I've tried different files and it the same story: nicely sharpened image in the preview box and than nothing changes. And it used to work very well in the past. Can anyone help me with this? Thanks.

    When you are zoomed out, many pixels are averaged into a single display pixel. For performance reasons, the sharpening is previewed on that downsampeld version of the image.  When you apply the filter, it applies to the full resolution version of the image, which then gets downsampled again for your zoomed out preview.
    So, let's say you had a grid of black and white pixels.  Zoomed out, it looks like gray.  Sharpening would appear to have an effect depending on the zoom level, but would never have any effect on the base level.
    And no, there is no way to keep performance reasonable and give you an accurate preview of applying the filter to the full resolution image.

  • Query filter by date not working

    We recently migrated to SAP BO 9.0. We have a query that brings up all the job orders (pending or not). The user then filters the query to pick the appropiate data. We have several problems with this approach with 9.0 as a) when you bring up the filter, we can not enter a random date in the appropiate column and b) The drop down list of dates does not bring all the dates available (translation: it bring dates up to 2012 but we have 2014 dates available and that show up in the query)
    Any pointers?
    Regards

    Hi,
    1. select " In range" under rule column
    2.  In value column, choose "space" from drop down list and enter required date
    3.  Same to way enter date for "To value" column.
    4. Choose filter
    Query will be filtered as per selected date from "Value" and "to value" dates.
    Thanks & Regards,
    Nagarajan

  • Spot Removal, Radial Filter, Graduated Filter, Healing Brush Not Working

    The tools only work in some areas of the picture, not in most.  How can I correct this?  And, sometimes when they work, the dhanges cannot be removed.

    Generally, it is the bottom half of the picture where the tools do not work.  Also, the ratings squares on the bottom do not work.  Did I click on something by mistake?!

  • Row Level Security - Data filter - Roles Variable Not working in OBIEE 11.1.1.7.1

    Hi all,
    Previously, we were using OBIEE 11.1.1.5.0 and we were able to assign users to application roles by using the initialization block to assign the ROLES session variables.
    1. My USER_SECURITY table in Oracle database:
    USER_NAME | USER_ID | ROL
    user1       | 1723    | GobalDataRole
    user2       | 1739    | GobalDataRole
    user3      | 1743    | GobalDataRole
    2. The SQL query in my session initialization block:
    select USER_NAME, USER_ID, ROL
    from USER_SECURITY
    where USERNAME = ':USER'
    3. The row-wise initialization option is not checked.
    4. In the Oracle Enterprise Manager Fusion Middleware Control, we created new application role: GobalDataRole and sync with rpd.
    5. The GobalDataRole is used in the RPD to filter the data under permissions --> data filter. GobalDataRole only has access to Country A data.
    6. Result: under my account, also in rpd Manage --> Sessions, user variable details
    User_name , user_id & Rol variable is working fine as expected,
    When we log in as user1, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    When we log in as user2, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    When we log in as user3, we can see in My Account, user assigned to: BI Consumers; Authenticated Role; GobalDataRole
    User1, User2, and User3 are able to see the data correctly according the their data access setup.
    Now, we using OBIEE 11.1.1.7.1 and using the same method, but we not able to assign users to application roles by using the initialization block to assign the ROLES session variables anymore.
    Result:
    User_name & user_id variable is working fine as expected, but the ROl variaible is not capturing the DB value,
    When we log in as user1, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    When we log in as user2, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    When we log in as user3, we can see in My Account, user assigned to: BI Consumers; Authenticated Role
    User1, User2, and User3 can see all data (which is wrong) because they are not assigned to the correct application role that sets the data restriction/filter.
    Has anyone encountered the same issue? Any advice on how to solve this?
    Thanks in advance!
    Satheeshkumar P

    Thanks user10615659     ,
    - Yes the variable ROLES available in OBIEE 11.1.1.7.1
    - Tested the init block and variables in offline rpd its working as expected.
    - In online rpd, except ROLES and GROUP variable remaining variables working fine.
    - Verified log file in both online and offline init block testing - the init block execution is successful.
    Thanks

Maybe you are looking for

  • Delete all record in a table, the insert speed is not change.

    I have an empty table, and i insert a record need 100ms, when this table has 40,0000 record, i insert a record need 1s, this is ok, because i need do a compare based an index before insert a record, so more record, need more time. The problem is when

  • Base Value minus taxes

    Dear All I calculate a amount e.g base value - taxes base value of a condition 70 taxe                               5 Base value - taxes       70-5 =65 where i found that taxes are adding in base value instead substracting i want to use any general

  • IPhone 3G: How do I change the name of my iPhone?

    change the iphones name

  • Keep getting VOD_140 Error when trying to watch a VOD purchased movie

    These forums suck.  As a former Verizon employee who worked on the very first VOD system for Bell Atlantic Video/TELE-TV/Verizon FiOS, I can't believe how difficult it to navigate through all of the flotsam and jetsom that Verizon calls "Customer Sup

  • Morlet wavelet definition

    I'm performing wavelet anaylsis of a 2D signal, using the continuos wavelet transform. I need Morlet complex wavelet, so I'm using the AWT.vi. The vi uses a wavelet definition with a central frequency \omega_0=3\pi/2, moreover it contains a \sigma va