Exclude records in a parameter selection

Post Author: bilbo
CA Forum: General
Hi,
Is it possible to exclude records from a parameter selection field? Part of my record selection is: "NOT ({TABLE1.FIELD1} IN {?Exclude})" but my Exclude parameter obviously returns every record. Users need this to exclude multiple selections. Can I limit what is returned by adding a WHERE clause like "NOT ({TABLE1.FIELD1} IN {?Exclude}) WHERE {TABLE1.FIELD2} = 'Car parts' Obviously not what I've just put as this don't work!?!
I don't really want to manually set the default selections as there is a huge number to contend with.
Any help or pointers greatly appreciated!
Bill

Post Author: SKodidine
CA Forum: General
Your NOT condition seems to be fine (at least in CR XI).  You said it is 'part' of the select.  Could it be that the rest of the selection criteria be causing issues?  Also, is your parameter set up to accept multiple values?

Similar Messages

  • How to set the parameter selection *optional* for each subreport?

    Hi,
    I am using Crystal Reprots 11.
    I create 10 subreports, and each subreport contains a Parameters Field.
    The 10 subreports are put in 10 footer sections in increasing order, i.e. subreport1, subreport2, subreport3, ..., subreport10.
    When I use "Print Preview" to take a look at the whole report, CR prompts a "Edit Values" window for selecting parameter values for all 10 subreports.
    For example, if I only select parameter values for subreport1 and click "OK", 9 error messages on the "Edit Values" window come out above the selection list box of every other subreports (i.e. subreport2 ~ subreport10) showing that: 'The value is not valid'.
    Sometimes, I just want to review some specific subreports but not all.
    How should I do to set the parameter selection optional (not mandatory) for each subreport?
    Thank you in adavance.
    Edited by: Holdup on Feb 17, 2012 3:44 PM

    Hi,
    Here's how you can make the prompts optional (Assuming you're using CR 2008 or higher):
    1) Go into each subreport
    2) You should see the parameter in the Field Explorer. Right-click the name and select Edit > Look for an option called 'Optional Prompt'. Set it to true
    3) If you have a record selection in the subreport, then you need to modify the selection formula to something like this:
    if not(hasvalue({?Parameter_Name})) then True else = {?Parameter_Name}
    Hope this helps!
    -Abhilash

  • Payment F110 - No data records found for these selection criteria, FZ208

    Hi all,
    I have done all configuration for payment medium for a customer in Norway. We use Telapay and program RFFONO_T. We have not activated the new general ledger but we have ECC 6.0 so I do not see why it should not work.
    The invoices got paid with payment order but when I should download the file in Environment > Payment medium > DME Administration I got the following error message:
    "No data records found for these selection criteria
    Message no. FZ208
    Diagnosis
    No data could be accessed for this selection.
    Possible causes are:
    No data exists for the activated selection.
    You have no authorization to display or edit data from this selection.
    Procedure
    First check whether your selection criteria are correct.  You may need to expand the criteria to include a larger search area to check whether data exists in the system.
    Make sure you have the proper authorizations for displaying and editing data.  Read the Release note for DME management for further information on the authorization objects.
    Proceed"
    I have tried with different variants but that doesn´t matter. When I look at the payment run log I can see following:
    "Additional parameter specifications 1400 SAPO02 are missing
    Message no. FR193
    Diagnosis
    Entry 1400 $V2& is missing from the additional company code parameter table.
    System Response
    Processing was terminated.
    Procedure
    Maintain the entry according to the instructions in the program documentation."
    I suppose that´s why I can´t get a file. Do any one of you know why I can´t get the file created. Please help.
    Best regards Lisa

    Hi Lisa,
    I have a similar problem with program RFFONO_T and Telepay format for a Norwegian customer. Payment medium is not created. In the payment run log is the following message: "Additional parameter specifications XXXX SAPO02 are missing
    Message no. FR193.Entry XXXX $V2& is missing from the additional company code parameter table."
    According the program documentation for RFFONO_T, a company number (11 digits) has to be maintained under company code global data, additional details. The legal org.number with 9 digits is already entered but I do not understand where to enter a 11 digits company number? A user number (10 digits) is also entered in trans OB94  but the problem remains.
    Did you find a solution to your problem?
    Regards,
    Agneta

  • How to exclude records from infopackage

    Hi All,
    I am trying to exclude records based on characteristic(ZSCSF) value.I have written ABAP routine in infopackage.
        l_t_range-sign      = 'E'.
        l_t_range-option    = 'EQ'.
        l_t_range-low       = '0-3 CASE CARB MV TRB CUP'.
    During scheduling of infopackage i am getting below error message.
    For sel. field '/BIC/ZSCSF', no selection with SIGN = 'E'; OPTION 'EQ' allowed
    i am getting error message for below code too.
        l_t_range-sign      = 'I'.
        l_t_range-option    = 'NE'.
        l_t_range-low       = '0-3 CASE CARB MV TRB CUP'.
    I am only able to execute below selection.
        l_t_range-sign      = 'I'.
        l_t_range-option    = 'EQ'.
        l_t_range-low       = '0-3 CASE CARB MV TRB CUP'.
    Please suugest me can we exclude records in infopackage using type 6(ABAP routine).If yes,coule you please provide code.it will be great for me..
    Thanks in advance,
    Bandana.

    One suggestion is, you select all the options for characteristic(ZSCSF) values(if they are not many) from the source DSO.
    Remove the one which you want from internal table.
    And append the rest in the l_t_range table.
    But the best way is, to delete the records in the start routine.
    Thanks.

  • Dynamic parameter selection from infoview not storing the sql password

    We are having the problem of dynamic parameter selection from infoview not storing the sql password as it does for the actual report. We are using Crystal Reports XI Release 2 version 11.5.3.438 (Not sure of SP level, asked in separate thread).
    To be more specific.
    We have created a report that dynamically populates the parameters of the report by pulling the records from the Informix sql database and allowing selection from there.
    In the Central Management Console for the report object we have set as follows:
    Process - Database:
    Use original database logon information from the report - the sql username and pw etc
    Use same database logon as when report is run
    Process - Parameters
    In selecting a default selection there is the option to put in the sql password, however, this does not stick and clears after update.
    As such the end result is that every time this report is run from infoview and a user chooses a parameter (there are 5), crystal goes through some timeout for about a minute or so and then requests the sql password, if a user then selects the next parameter, the same timeout and password dialog appears.
    We need the crystal report to handle to the sql password for fetching the parameters as well as for the database section of running the report, however, the parameters insists on the end user always putting the password in.
    This is 100% replicatable on our system.
    Any way that we can fix this?
    Will an update fix this issue? If so could you please advise which one?
    Thanks

    Hi,
    I am having the exact same problem. Any help?
    And what does "Use same database logon as when report is run" mean? For me that would be that no prompt is needed for getting values in a dynamic parameter...
    Regards
    Magnus

  • Exclude records using script logic.

    I have created a script logic to exclude records but it does only exclude few records.
    Example:-
    *SELECT(%SHARED%,"[ID]","ENTITY","CLUSTER<>'SHARED_SERVICES' AND CLUSTER <>'CENTRAL_MANAGEMENT'")
    *XDIM_MEMBERSET ENTITY = %SHARED%
    Please advice which other logic I can use to exclude records.
    Thanks.

    Thanks but when I change it to OR statement it still does not exclude them.
    Please check the example provided.
    ID     EVDESCRIPTION     PARENTH1     CLUSTER
    7901     TOTAL TRANSACTIONAL BNKG     7910     CORPORATE
    4243     CORP SHARED SERV & NIS     7910     CORPORATE
    7920     NEDBANK CAPITAL                          7800     CAPITAL
    3064     NEDBANK WEALTH                          7800     WEALTH
    8037     CENTRAL MANAGEMENT                          7800     CENTRAL_MANAGEMENT
    3113     BALANCE SHEET MANAGEMENT     8037     CENTRAL_MANAGEMENT
    4236     CAPITAL CENTRE                          3113     CENTRAL_MANAGEMENT
    7455     GROUP ALCO                          3113     CENTRAL_MANAGEMENT
    1119     TREASURY FUNDING UNIT NB     3113     CENTRAL_MANAGEMENT
    1999     CORPORATE FUNDING UNIT NB     3113     CENTRAL_MANAGEMENT
    3505     TOTAL NBG CAPITAL MANAGEMENT     3113     CENTRAL_MANAGEMENT
    7479     IMPERIAL INCL ALCO CHARGE     4237     CENTRAL_MANAGEMENT
    6050     NEDBANK LTD ELIMINATIONS     7800     ELIMINIATIONS
    7937     SHARED SERVICES                          7800     SHARED_SERVICES
    7940     GROUP TECHNOLOGY                          7937     SHARED_SERVICES
    3247     GT NEDBANK INCL EX IBL                          7940     SHARED_SERVICES
    4109     SWISSCARD                           7940     SHARED_SERVICES
    7513     GRP TECH INIT D9095 NB                           7940     SHARED_SERVICES
    7792     GROUP TECH AC133 F VAL NB     7940     SHARED_SERVICES
    3400     TOTAL FINANCE                          7937     SHARED_SERVICES
    8154     FINANCE - SHARED SERVICES     3400     SHARED_SERVICES

  • Can not see records after was given select on table

    Hello,
    I have a database 10gV2 and I 'grant select on table1 to user1'. When user1 logged on, he can not see any data from table1. He can desc table1 but when doing a select count(*) from user99.table1 , a zero record returned. Or select * from user99.table1, nothing is returned, no records. Why?

    possibly there is a vpd policy on the table which applies a where predicate allowing the user only to see rows relevent to his session.
    or rows inserted are not committed therefore only visible in the session where transaction is active.
    A

  • Which system field returns the number of records returned after a select?

    Which system field returns the number of records returned after a select?
    a) sy-index
    b) sy-recno
    c) sy-lncnt
    d) sy-dbcnt
    e) sy-tabix

    Hi,
       SY-DBCNT
    Regards,
    Prashant

  • How to setup Multiple report layouts based on parameter selection

    I'm trying to create a report that will be based on the parameter values a user select. There will be 3 different layouts for the report.
    Customer
    Salesperson
    Category
    If the user selects one of the three a different layout will be displayed.
    This is probably a simple solution but my Reports 6i skills are a little rusty.
    Your advise would be appreciated.

    Ok so you have a parameter form, and some parameters. In the data model, you can put your 3 queries. In the layout, as Ino said, put all 3 frames that you could possibly have.
    The way I would use to choose which query to use is below. Others may have other methods, but I like this.
    Ok lets say you have query A,B,C for simplicity. You have one parameter (P_PARAM1) on the form, and the user can choose A,B or C. Based on the parameter, you choose which query to use.
    In query A, you would add this line to the where statement:
    and :P_PARAM1 = 'A' You add the same lines to queries B and C, but change the letter obviously. So if the user enters A, it will only run query A because that was the parameter selected.
    Now for the layout, click on the frame that corresponds with group/query A. You would click F11 or launch the PL/SQL editor, and add the following format trigger (or something similar).
    function F_GRP_A return boolean is
    begin
      IF :P_PARAM1 = 'A' then
        return (TRUE);
      ELSE
        return (FALSE);
      END IF;
    end;Ok - then add that same logic to Frame B and C, and based on the parameter it will hide or show the frame.
    Hope that helps - thats a basic way to do what you're looking for!

  • SSRS 2008 - hide chart lines based on parameter selected

    How to control visibility of chart lines based on Params selected by user?
    By default, my report display last 3 years worth of data (including current) with Month on the x axis and Counts on the y axis. I have two Boolean parameters:
    TwoYrs? T/F
    ThreeYrs? T/F
    if False is selected for TwoYr and ThreeYr parameters then I want to hide chart lines corresponding to last year and the year before.
    What I've tried: Created 3 Series groups with filters. eg. YearSeries1 to return only current year data and applying an expression to display it if params TwoYrs and ThreeYrs = False. and so on for YearSeries2 to return current + last
    years data if param TwoYrs is True and ThreeYrs = False.  But I don't see where to add expression to control the display of the individual series groups.  I am open to any way of doing this, but this seemed most logical.

    Hi Ok-Hee,
    In your Source Query just need to filter the series data based on the Parameters.
    I have written sample query below:-
    select * from
    select 1 monthnumber , 'Jan' MonthName, 2013 year,100 amount
    union
    select 1 monthnumber , 'Jan' MonthName, 2014 year ,200 amount
    union
    select 1 monthnumber , 'Jan' MonthName, 2015 year , 300 amount
    union
    select 2 monthnumber , 'Feb' MonthName, 2013 year, 300 amount
    union
    select 2 monthnumber , 'Feb' MonthName, 2014 year, 350 amount
    union
    select 2 monthnumber , 'Feb' MonthName, 2015 year,200 amount
    union
    select 3 monthnumber , 'Mar' MonthName, 2013 year, 380 amount
    union
    select 3 monthnumber , 'Mar' MonthName, 2014 year, 100 amount
    union
    select 3 monthnumber , 'Mar' MonthName, 2015 year, 500 amount
    )t
    where year in (
    select distinct FilterYear from
    select case when @TwoYrs=1 then year(getdate())-1 else year(getdate()) end FilterYear
    union
    select case when @TwoYrs=1 and @ThreeYrs =1 then year(getdate())-2 else year(getdate()) end FilterYear
    union
    select year(getdate()) FilterYear
    ) t
    I have created one post in my blog , you can check the result.
    https://msbitips.wordpress.com/2015/03/12/ssrs-2008-hide-chart-lines-based-on-parameter-selected/
    Thanks
    Prasad

  • How to exclude records from one table that is contained in a second table

    I am trying to create a Crystal report that excludes records from one Table that is contained in a second table using the != link option and it is not working. I've tried all of the different enforce options, and it is still not excluding those records. Does anyone have any suggestions of what I'm doing wrong or any other suggestions how I can obtain the results I need?
    Thanks in advance!

    Have you tried by Command ?
    Thanks,
    Gordon

  • How to edit the records value fetched by select statement query in sqldever

    How to edit the records value fetched by select statement query in sqldever 2.1.1.
    EX-
    SELECT * FROM emp WHERE ename like 'Jaga%'
    Edited by: user9372056 on Aug 31, 2010 2:16 AM

    Hi,
    Although some forum members may be using that tool, there is still a dedicated forum for SQL Developer.
    SQL Developer
    Maybe your chances are better there.
    Regards
    Peter

  • Parameter Selection Dialog Prompt Issue

    When using the CR2008 and do a export in C#, the Parameter Selection Dialog Prompt is not prompted.
    How can I show the Parameter Prompt DIalog when in export in C#??

    HI,
    First of all, upgrade the reports to CR2008. For this open the reports in designer, re map/upgrade the fields/tables using set Datasource location option, preview the report(to make sure we are getting proper data) and then save them. Once the report works ok in development environment move them to the production machine.
    Through code you can use the ReportDocumentObject.SetParameterValues(name of parameter, value) and pass the parameter value to the report.
    Also please remember that we need to pass the parameter before exporting a report.
    CR9 is a very old product and CR2008 have got a lot of new features added in them, most of them were for users benefits. Please visit [this|Articles] for more information on different products.
    [Samples|https://www.sdn.sap.com/irj/boc/samples] may be helpful too.
    Regards,
    AG.

  • Exclude records with value 0 for calculated KF

    Hi, experts,
    How do I Exclude records with value 0 for calculated KF without using condition?  I'm using version 7
    Appreciate any help you can provide.
    Thank You!
    Alina

    Hi,
    We didn't understood ur requirement well.
    1) Lets say, you have 3 KF. and you are doing CKF1 and you don't want to show the records with Zero, In that case you can go with Zero Record Supression.
    2) If you want to try to delete only KF/CKF where there is zero, it won't work as others may have values in them and you may miss the whole record set in the report
    3) If the zero result is part of calculation, then please go ahead as explained above.
    Please explain clearly if this is what you have or is it different ?
    Regards,
    -S-

  • Lock in parameter/select-options field

    Hi,
    How can we block another user from executing report with the same value of parameter/select-option field entered on screen by user?
    for example:
    Report ZZZ, parameter field sales org = A, run by user 1.
    Another user, say B, attempts to run the report by entering the same sales org = A. In these second execution of the report, I need to display error message saying that user A is running the report then report cant be run by user B.
    Do i need to put lock object for these?
    thanks alots
    Alia

    No, there is no mechanism to restrict in that way.
      but you can create a Z-table with one column (vkorg)
    now make a little change in the report..
    1.check if any entry of vkorg is there in that z-table.
    if not proceed, else error msg.
    2.craete an entry of that vkog in that z-table.
    3.Normal processing of this report.
    4.at end delete that entry of vkorg from z-table.
    thus you can achieve mutual exclusion.
    cheers.
    Message was edited by: Anid

Maybe you are looking for

  • How do I get loops to keep the effect settings I hear when previewing?

    When I place loops into a new track, the effects settings go away and it is simply a dry signal. How can I move a loop from the browser into a new track and have it keep the effects settings that I hear when I preview the loop?

  • How make a normal call with ipad mini

    i want to call and send text message by normal way, do you know how can i do? or wich app i need to download??

  • HT1752 Flash player on PPC G4 Tiger 10.4.11  Can't update to latest because it's intel.  What do I do?

    I have lost the ability to play games needing flash player on PPC G4 Tiger 10.4.11  Can't update to latest because update is for intel, my PPC is not.  What do I do?  I've tried loading the archived ones but can't really figure out what the last upda

  • Problem installing extra RAM

    Hi, I recently decided to increase my RAM. I have an iMac G5 with iSight ( Power PC ). I bought a memory module from the online Apple Store here in the UK, by clicking on the model ( under Memory ) and selecting the 1 Gb module - 533 Mhz DDR2 SDRAM (

  • Update from 2.2.1 to 4.0

    My iPod touch (8G) has software version 2.2.1. I have been trying to download apps for several months and all of them say that software version 4.0 is required to install the apps. When I go to update, using the button in iTunes when the iPod is conn