Security filter with variable does not work correctly

Helo,
I have one table with this columns (called BI_USERS):
USERBI | REGIONS
XXXX 10,5 -> In this case the user XXX can access the region 10 and 5
AAA 9,7
I use this table to apply the security filters. Fisrt I did a initialization block with the select: SELECT USERBI, REGIONS FROM BI_USERS WHERE USER = :USER
This select populate two variables: variable USER (system variable) and UserRegion (Non-system variable)
After I use the UserRegion variable in the securty filter of the one group of users. For exemple:
Name | Status | Business Model Filter
"Claro"."Historico Saldo Pre-Pago" Enabled "Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" In(VALUEOF(NQ_SESSION.*UserRegional)* )
But the issue is that the query is not working, because the query created for BIServer no use the IN operator. Seems the IN operator is changed for equal (=).
And the query returs error because the value 10,5 (for example) is not a numeric value.
Anybody could help me, please? I am using the version 10.1.3
Mauricio

|||\/||| wrote:
Helo,
I have one table with this columns (called BI_USERS):
USERBI | REGIONS
XXXX 10,5 -> In this case the user XXX can access the region 10 and 5
AAA 9,7
I use this table to apply the security filters. Fisrt I did a initialization block with the select: SELECT USERBI, REGIONS FROM BI_USERS WHERE USER = :USER
This select populate two variables: variable USER (system variable) and UserRegion (Non-system variable)
After I use the UserRegion variable in the securty filter of the one group of users. For exemple:
Name | Status | Business Model Filter
"Claro"."Historico Saldo Pre-Pago" Enabled "Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" In(VALUEOF(NQ_SESSION.*UserRegional)* )
But the issue is that the query is not working, because the query created for BIServer no use the IN operator. Seems the IN operator is changed for equal (=).
And the query returs error because the value 10,5 (for example) is not a numeric value.
Anybody could help me, please? I am using the version 10.1.3
MauricioHi Mauricio,
First of all you have some syntax errors with your init block:
select USERBI, REGIONS from BI_USERS WHERE upper(USER)=upper(':USER');
Couple things to consider here:
1) Why are you selecting Userbi column from the table? Is USER system session variable not getting populated through other souces like LDAP or default security?
Ans: If your user session variable is getting populated from a different init block, then you dont need to select that column. Then your init block would look something like this:
select 'USERREGIONAL', REGIONS from BI_USERS WHERE upper(USER)=upper(':USER'); - Data Source
Row Wise Initialization - Data Target
Initblock that is populating the user session variable as the order of precedence.
2) If you dont have USER session variable populating from any other source, then your init block would look something like below:
select 'USER', USERBI, "USERREGIONAL', REGIONS from BI_USERS; - Data source
Row Wise Initialization - Data target
After following one of the above two steps, you need to apply the filters on the table.
"Claro"."Historico Saldo Pre-Pago"."DW_UN_NEG" IN(VALUEOF(NQ_SESSION.USERREGIONAL))
Note: Make sure you understand that variables are case sensitive.
Please award points as this is correct answer.
Thanks,
-Amith.
Edited by: Amith on May 10, 2011 3:18 PM

Similar Messages

  • Flex Time with variable tempo not working correctly.

    Hey,
    Has anyone else noticed that Flex Time doesn't work as intended if you have variable tempo?
    To clarify, I recorded a band playing their song and then figured out their various natural tempo changes and adjusted the Global Tempo Track accordingly.
    Then, the drummer recorded his part to a click on that track, obviously keeping with the natural tempo changes that the band played to.
    Quantization of MIDI works just fine, as in, it matches the increases and decreases in tempo.
    However, attempting to quantize an audio track using Flex Time does not work properly.
    I was just wondering if there is something that I'm doing wrong or if this is a known bug.
    Thanks,
    William

    Thank you for your answers!
    But there are several Problems using a dummy field in an IDOC structure. We have got a naming convension so that we can't create an IDOC-like structure named ORDRSP.ORDERS05.
    But perhaps I am thinking to complex and there is an easier way to add a dummy field to an IDOC structure.
    Could you perhaps also suggest a solution for that dummy field problem?
    Many thanks and kind regards,
    Steven

  • Default Data Deduplication Optimisation job with "StopWhenSystemBusy" does not work correctly

    I have configured Data Deduplication on Windows Server 2012 R2 and enabled on a volume.
    Data Deduplication creates a default Optimisation task called "BackgroundOptimization".
    I have placed files on my volume, and started the job manually.  It succeeds but does nothing.  InPolicyFiles still shows zero.
    If I edit this job in Task Scheduler and remove the /backoff switch (StopWhenSystemBusy), then start the job manually again, it succeeds, and also incrememnts the InPolicyFiles.
    At the same time, the CPU and RAM on the server is fairly idle, with no users on the system.
    Is there a problem with the StopWhenSystemBusy?  Should we not use this parameter, and simply run the task out of business hours instead?  Has anyone seen this before?
    This happens on two Windows Server 2012 R2 servers, so is reproducable here.
    David

    Hi David,
    Please also try -Priority and -Memory with-StopWhenSystemBusy - set Priority to High and set a proper memory value such as 50% to see the result.
    If you have any feedback on our support, please send to [email protected]

  • Foto Synchronisation with ipad does not work correctly

    New Photos after installing the Mavericks update doe not synch. with iPad.
    The fotos are visible on iPhoto on the Mac , but no transfer via iTunes are possible to the iPad.
    Any tip to resolve?

    Thanks. Any other option, if I dont like to put all my photos to the iCloud but still synch with the iPad as before?

  • Why can I not import pictures any more? Lightroom says "Your Lightroom 5 64-bit does not work correctly"

    Why can I not import pictures any more?
    Lightroom says "Your Lightroom 5 64-bit does not work correctly"
    Technical informations:
    PC with Windows 7 64-bit, Lightroom 5.7.1 64-bit installed.
    What I have done:
    I downloaded the newest LR 5.71 and installed it again - mode repair; without success
    I checked my PC with Norton 360: full scanning and optimizing registry
    I restarted the PC and than I installed the LR 5.7 again - repair
    Trouble 1:
    Two days ago I could work with my LR 5 and to import pictures from a SD was no problem. Now I can start LR 5 and I can watch/modify pictures, but as soon as I try to import new pictures LR 5 stops and gives the message "your LR 5 64-bit does not work correctly - searching for solution". I have not changed anything in my computer since lasttime LR 5 worked properly, only the registry was optimized by Norton 360.
    Trouble 2:
    I live in Switzerland and my language ist German. I dit not find a place where I can present my problem in German, e.g. a phone number oder email-address oder german-chat. My English is to week for a discussion for computer problems and do understand it.
    Help:
    I would very appreciate if anybody can help me, either to trouble 1 or to trouble 2. Thanks.

    Sehen Sie diesen Beitrag:
    Photoshop CS4 & Lightroom 2.6 X64 funktionieren nicht mehr
    Wacom Tablet-Treiber-Problem?

  • Satellite M645-S4050: built in camera does not work correctly

    My built in camera does not work correctly.
    It does not have any kind of effect on and it captures pictures and videos as if some kind of thermal camera was on.
    Also some videos I load up on youtube look like this.
    I have been researching for an answer but can't find it, please help me.

    All you can do is to test it with latest webcam driver.
    Remove preinstalled camera software and install latest version offered on Toshiba download page.
    If the same happen again visit nearest Toshiba service and show them how it looks like. Maybe the cam must be exchanged.
    In the past I have used several Toshiba laptops with built in cam but I have never saw something lke this.

  • Remote does not work correctly after update

    Hello,
    the subject explain it already:
    After upgrading to 2.3 the apple remote does not work correctly anymore:
    I need to push the buttons twice, and than atv is only reacting sometimes.
    Any ideas?
    BR
    Frank

    Same problem here. First, I thought it was the Apple remote's battery. I replaced that and the problem persisted. I then used my digital video camera to verify that the remote was actually transmitting infrared, it was. In frustration, I tapped the buttons rapidly while pointing at the Apple TV. The Apple TV responded. The next button press it failed to respond. I tapped rapidly again and it finally responded. After many many rapid presses, while pointing directly at the Apple TV, it finally began responding to all presses. Once I'd regained control (I thought) I unpaired and re-paired the remote. Everything continued to work. At that time I also saw that I could "learn" another remote. So, I set up my Samsung TV remote. Sweet. Until the Apple TV went into screensaver mode again and I had to go through the same rapid button press sequence... with either the Apple remote or my learned Samsung remote. Conclusion, since the Apple TV will become fully responsive after the rapid button press sequence, it is certainly a software related problem.

  • I have a manual that contains headings and index entries that contain less than and greater than characters, and . The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the C

    I have a manual that contains headings and index entries that contain less than and greater than characters, < and >. The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the Contents or the Index of the generated HTML. In the Contents the words are completely missing and in the index entries the '\' characters that are required in the markers remain in the entry but the leading less than symbol and the first character of the word is deleted; hence what should appear as <dataseries> appears as \ataseries\>. I believe this is a FMv12 bug. Has anyone else experienced this? Is the FM team aware and working on a fix. Any suggestions for a workaround?

    The Index issue is more complicated since in order to get the < and > into the index requires the entry itself to be escaped. So, in order to index '<x2settings>' you have to key '\<x2settings\>'. Looking at the generated index entry in the .js file we see '<key name=\"\\2settings\\&gt;\">. This is a bit of a mess and produces an index entry of '\2settings\>'. This ought to be '<key name=\"&amp;lt;x2settings&amp;gt;\" >'. I have tested this fix and it works - but the worst of it is that the first character of the index entry has been stripped out. Consequently I cannot fix this with a few global changes - and I have a lot of index entries of this type. I'm looking forward to a response to this since I cannot publish this document in its current state.  

  • How do I get a refund for an App that does not work correctly?

    How do I get a refund for a App (Express Newspapers)  that does not work correctly?

    How to report an issue with Your iTunes Store purchase

  • Focus under Win2k does not work correctly

    Hi,
    we've found out that the focus does not work correctly under Windows 2000 in
    Seamless Mode (App is a Windows Application running on Windows Terminal Server
    2003), the same application has no problems under Windows XP, Apple Macintosh
    and Linux.
    Example: The application has a button which pop's up a small calendar window
    giving that window focus. In Tarantella under Win2k however you just see the
    window popping up shortly and then going in the background. As the window is in
    the background and you can't get the window back and you also cannot work
    further in that application as the rest is inactive.
    Only way is to do a right-click on the application in the taskbar, which brings
    the window in the foreground again. What makes this problem even harder to
    analyze is, that it sometimes even works correctly (around 3 of 10 times).
    We've mostly recognized this with modal windows. The native client does not have
    this problem, however as far as I know it does not support seamless mode.
    2. The second problem we got is, that if you click with the mouse into the
    initializing Window while the application starts up after you have clicked on an
    application Link in SGD (I mean the Pre-Login window of Windows which shortly
    shows up just before the Login Process begins),
    the application is not started seamlessly but is started within that window and
    you have no chance but closing an restarting the application to get it in
    seamless mode. This is seen on all Client Operating Systems by us and not only
    Windows 2000.
    The Client runs:
    Windows 2000 SP4 all updates installed
    Java: 1.5.0-5
    Browser: IE6.0 and Firefox 1.0.7
    Server: Windows 2003 Terminal Server (all updates installed)
    Tarantella: 4.20.909
    I hope that someone has at least a workaround.
    Regards
    Carsten

    I have organized some testcases attached are 3 Test Programs which work
    nice natively but got these problems under Tarantella under every Windows
    Operating System (the error is not Windows 2000 as I previously mentioned but
    also occurs on Windows XP).
    The interesting thing is that the Test Program made with .NET does not show this
    problem.
    Could someone please test these and tell if this error is reproducible on your
    systems as well ?
    Run these Testprograms natively, they show no misbehavior.
    Execute this from a SGD Webtop Session in Seamless Mode, see that
    the Modal window is not modal but shifts into the background on every 2 -3 click.
    Regards
    Carsten
    [ModalTestPrgs.zip]

  • Since I upgraded to Yosemite, my CS5 does not work correctly.

    Since I upgraded to Yosemite in October, my photoshop CS5 does not work correctly. When right clicking to change a brush size, the adjuster when moving to the right or left, either sticks or moves radically. As I set the size of the brush and move my cursor back to the image, the adjuster moves with the cursor.
    Help!

    sharonfrombury wrote:
    Is there no contribution from Apple support community for this question yet?  I know there have been teething problems upgrading to Yosemite, but this loss of functionality is adding administrative workload that I can ill afford.  Come on Apple, some ray of light please.
    If you read the Terms of Use  you agreed to you would realize Apple does not read or participate in these user forums. All posts and responses are end users just like yourself. If you have feedback for Apple please  post it at www.apple.com/feedback. Please do not expect to hear back from Apple, they read the feedback but do not reply.
    Also, the feature the feature of combining multiple PDF's into one document using the Preview app works perfectly.

  • SB Titanium Fatal1ty Champ - Frontpanel does not work correctly

    ?SB Titanium Fatalty Champ - Frontpanel does not work correctly? good morning,
    i use the fatalty with the - champ - frontpanel. Unfortunately this panel does not work correctly. that means is have sound at the headphones and can use the mic but i cannot change the volume (HP and Mic)and cannot change?game mode, cmss-3d and crystalizer.
    i?tested this card on two operating systems (one of the totally new) but the frontpanel does not work.
    I try the driver from CD, the newest which will be found by creatives autoupdate driver search and i check youp pak but none of them will help.
    Internal Soundcard of my mainboard is deactivated.
    The hardware is not damaged - i try two different titanium cards with two frontpanels...
    here my system:
    [color="#0000ff" face="Book Antiqua">MSI DKA790GX Platinum , Cooler Master CM 690
    AMD Phenom X4 9950BE @ 3,2GHZ, Logitech Z-4e
    4GB Kingston HyperX DIMM 2 GB DDR2-800 Kit
    MSI N260GTX-T2D896-OC @707MHZ
    Xilence RedWing Gaming Edition Modular - 750 Watt
    Creative X-Fi Titanium Fatalty Champion Series
    Windows Vista Ultimate 32-Bit; Samsung T260
    so...what can i do now? i have no idea what to test now?
    brgds
    stefan

    So nobody actually has any idea what the problem is? I'm not the thread-bumping type, but this is a very annoying issue and if anyone has any useful information I would greatly apprecaite it.

  • Trust computer does not work correctly

    http://support.apple.com/kb/HT5868 - this is the thing that makes me NOT continue using Apple products anymore. The feature does not work correctly and I am SICK of reinstalling drivers, turning on/off apple mobile service to get access to my files. I ask for a premanent fix OR REMOVE THIS CRAPPY feature you have put in !!!! You care about your customer satisfaction, am I correct ? Then I do expect an answer ( read this as permanent solution ) to this issue.
    I have been connecting to the very same PC for months. And it asks me to trust it every time, which does not work at all.
    iOS 7.0.4

    Dan, they never responded to this. And now you are telling me this is still going on with iP6 on iOS8. God, Apple started to really suck in some aspects. I have the phone, have unlocked it and have access to all apps and settings on it, even those photo/video files from the device itself! And I still need to give permission to the computer from the phone, just so I can access them on it?!? Seriously what the **** is with that feature and why does it not work correctly for us? Still the same on my current iP5 , iOS 7.1.2

  • HT4235 iPod nano 6th generation, syncing with audiobooks does not work now, had been working.  Sync test says:  No iPod touch, iPhone, or iPad found.  Connectivity test OK, no physical problems, iTunes shows the iPod.  Any clues what to do?

    iPod nano 6th generation, syncing with audiobooks does not work now, had been working.  Sync test says:  No iPod touch, iPhone, or iPad found.  Connectivity test OK, no physical problems, iTunes shows the iPod.  Any clues what to do?

    Hmm.. Thank you for the response.
    Have you tried using the iPod with another user account or computer, to help narrow down whether the problem lies with the computer, account, or the iPod itself?
    Maybe try reformatting it, using the tools provided by Windows. Instructions on how to reformat your iPod can be found in this article.
    http://www.methodshop.com/gadgets/ipodsupport/erase/index.shtml
    B-rock

  • Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. Thanks.

    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. I am getting lots of spelling errors as the MacBook laptop screen is too small. Thank you so much! .

    Contentmom6 wrote:
    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work.
    Normally, you just connect the monitor to the MacBook using a VGA adaptor that you can buy from an Apple Store.  Now try System Preferences > Displays > Detect Displays.  You should now be able to select a display mode for the monitor.  If it still doesn't work, then I'd check that everything is properly connected.  I've had problems with colours disappearing due to a faulty connection in the VGA adaptor.
    Bob

Maybe you are looking for

  • Can't Install iTunes, get message Can't uninstall previous ver of QuickTime

    I'm the machine administrator, downloaded new iTunes for my new iPod Classic. iTunes installer attempts to uninstall old version of QuickTime but I get an error message that Can't Uninstall Old Version, Contact Support. Tried to uninstall from Contro

  • Ichat multiple login problems

    whenever i start my ichat, it logs in 4 or five times and then a window pops up saying something about how i logged in to many times in one period of time and to try again later. this happens every time i start it. can anybody help me?

  • Exporting to Quicktime seems to take a long time

    I am in the process of exporting a movie to Quicktime using expert settings. The size I selected was 640x480. The movie 19:35 long. It has processing now for about 1/2 hour. The process bar says it still has 123 minutes to go. Is this normal, or am I

  • Translations not appears

    Hello, I´ve installed Spanish Language in ERP 6.06, but some objects description aren't translated. Supplementary language is English but this translations are in German. What can I try or fix to recover to Spanish or English at least? Thanks a lot.

  • Status of ECC 6.0 enhacement 2

    ECC6.0 enhancement was supposed to be released in July 2007. I went to service.sap.com/swdc->Support Packages and Patches> SAP Application Components->SAP ERP-> SAP ERP ENHANCE PACKAGE and there is nothing there.... has this enhancement 2 been releas