Entering mulitple values for a single user parameter

Hello,
Can anyone explain to me how to allow multiple values for a single parameter?
For example, say I want to allow the report to display a list of employees based on their employee id. I want to allow the user to enter mulitple
employee id's into a single field to get their report. SO the user would enter "241, 459, 832" to return the list of those 3 employees. I have the SQL set up below, but obviously I need to set up something different to break it out into 3 separate values. Any help would be greatly appreciated!
SELECT * FROM EMPLOYEE
WHERE EMPLOYEE_ID IN (:P_EMP_ID)

Hi,
Another way to do this is to use the lexical parameter, but then you have to create the parameter form in Forms. Your SQL would look like this for example:
select * from emp where empno is not null &empno
where &empno is a lexical parameter.
Then on your parameter form you would have a text field F_empid, say 200 character long, allowing the user to enter multiple values separated by a ",".
Then in the trigger that calls the report you would create a parameter list, and a variable that holds the values read from the form, this variable is where you define the value to be passed to the report's lexical parameter. For example:
declare
v_empid varchar2(200); (consistent with the length of the lexical parameter in the report).
begin
v_empid:='and empno in ('||F_empid||')';
then you pass v_empid to &empno in the call to the report.
This method works well. Good luck.

Similar Messages

  • Force a user to enter a value for a parameter.

    Hi,
    I have a report with a bunch of parameters and I want to force the user to enter values for two parameters amongst all of them. Like for example when the user doesn't select values for those 2 parameters he should get a dialog box saying "please enter value for xyz parameter" or something like that, which will force the user to enter a value for the parameters before he can see the report.
    Please let me know if BI Publisher can do this.
    Thanks,
    DY

    Thanks for your replies BIPUser. I have recently started working on BI Publisher without a lot of help around.
    The information in the link is what I was thinking of, if there is no such feature I'll have a default value for those 2 parameters.
    Thanks,
    DY

  • Any way to pass Multiple Values for a single Label in the Parameter?

    I have a Report that Contains 2 Parameters, @Customer & @Area. When trying to set up the Available Values for @Area, I'm having issues using multiple values for one Label, i.e. = "4006" Or "4610"
    One of the Filters in the Report is an Operation number, which is the [OPERATION] field, which is setup as a filter on the Tablix referencing the @Area parameter. 
    PROBLEM: I cannot retrieve any data when trying to use the ‘Or’ Operator here. If I simply put “4006” or “4610” I retrieve data, but when trying to combine it returns no data.
    Example, I need to allow a user to select ‘Chassis Incoming’, which would include data from Operations 4006 & 4610.
    QUESTION:
    Any way to pass Multiple Values for a single Label in the Parameter?
    I realize the typical solution may be to use ‘Multi-Value’ selection, but in this case we want the User to select the Area and the multiple values for Filtering will be automatically determined for them. Otherwise, they are subject to not getting
    it correct.
    I have tried several different ways, such as =”4006” Or “4610”, =(“4006”, “4610”), = In(“4006”, “4610”), etc….
    Note: We are using Report Builder 3.0

    Based on my experience, there's no way to 'intercept' the query that gets passed back to SQL Server, so a Split wouldn't work.
    Try creating either a function or stored procedure using the code below (compliments to
    http://www.dotnetspider.com/resources/4680-Parse-comma-separated-string-SQL.aspx) to parse the string: 
    CREATE FUNCTION dbo.Parse(@Array VARCHAR(1000), @Separator VARCHAR(10))
    RETURNS @ResultTable TABLE (ParseValue VARCHAR(100))AS
    BEGIN
    DECLARE @SeparatorPosition INT
    DECLARE @ArrayValue VARCHAR(1000)
    SET @Array = @Array + @Separator
    WHILE PATINDEX('%' + @Separator + '%' , @Array) <> 0
    BEGIN
    SELECT @SeparatorPosition = PATINDEX('%' + @Separator + '%', @Array)
    SELECT @ArrayValue = LEFT(@Array, @SeparatorPosition - 1)
    INSERT @ResultTable VALUES (CAST(@ArrayValue AS VARCHAR))
    SELECT @Array = STUFF(@Array, 1, @SeparatorPosition, '')
    END
    RETURN
    END
    Once created you can do things like this:
    SELECT * FROM Parse('John,Bill,David,Thomas', ',')
    SELECT * FROM (SELECT 'John' AS TestName union select 'David' AS TestName) AS Main
    WHERE TestName IN (SELECT ParseValue FROM dbo.Parse('John,Bill,David,Thomas', ','))
    This is what your SQL query would probably look like:
    SELECT OperationID, OperationName FROM dbo.Operations
    WHERE AreaID IN (SELECT ParseValue FROM dbo.Parse(@Area, ','))
    You may need to fiddle around with the Separator depending on whether SQL Server inserts a space between the comma and next value.

  • Passing multiple values for a single field in URL to call sap Transaction

    Hi All,
    I need to pass multiple values for a single field to SAP transaction .
    means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
    Let me know pls.
    Regards,
    Sirisha.R.S.

    Hi Satyajit,
    I need to call a transaction with multiple values which gives me the report based on those values.
    So I need to pass multiple values for a single parameter.
    I hope u got it.
    Regards,
    Sirisha.R.S.

  • LightDM greeter for a single-user system

    I'm interested in using lightDM as my display manager. However, there seem to be a lot of greeters that are focused on a good experience for multi-user systems. All I'm have is a single-user system, so I'm looking for your guy's opinions on what the "best" lightDM greeter is for a single-user system. I want it to:
    * Be pretty, even if it must be a bit more heavyweight. I consider "pretty" to mean modern/flat
    * Be customizeable, hopefully with at LEAST customizeable colors, and preferably background images
    * Have either a very modern/flat icon set, if there are icons at all, or customizeable icons
    * Not force me to select my account every time I login, it should automatically "select" my account so all I have to do is enter the password. I *might* budge on this one if the design is *really* good
    I'm ok if it has support for multiple users (I'm pretty sure every greeter out there will have that), but I don't want it to reserve too much space on the screen for multiple users, and I want it to still be good with one user. For example, I don't want it to be like crowd greeter, where it's nearly useless without many user accounts

    Why not just test a number of greeters and evaluate which one most suits your use case?  That's the common approach with most things.
    You could also try other DMs like LXDM for example, in order to see how they compare.

  • Step by step to disable Folder Redirection for a single user - Windows 7 and SBS 2011 Essentials

    OK...I got chewed (by someone I have a lot of respect for) for pounding on an old thread, so I'm starting a new one. I've got the Windows 7 Value Pack Plugin for SBS 2011 Essentials and Folder Redirection is working for everybody. What I'm looking for is
    exactly how to go into Group Policy and disable the FD for a single user. I'm not looking for quick, incomplete answers. If you don't have time to give me the 'For Dummies' version, don't bother. Sorry, but I've done all the Googling I can stand for one day
    and I'm over it! (and a little grumpy)
    Thanks in advance!
    Wayne S. CompTIA A+ CompTIA Network+ Microsoft MCP

    ... I've got the Windows 7 Value Pack Plugin for SBS 2011 Essentials and Folder Redirection is working for everybody. What I'm looking for is exactly how to go into Group Policy and disable the FD for a single user. I'm not looking for quick, incomplete
    answers....
    Hi Wayne,
    Here's what I'd do. 
    1) create a Security Group in your AD environment. Call it 'Folder Redirection Members' or something like that. Put all the user accounts in your AD environment who you want to have their folders continue to be redirected to the server, do not include the
    one user who you wish to exclude.  in other words, you're going to use a specific security group to target the Folder Redirection policy (right now, it's Domain Users, which is everyone).
    2) Edit the Group Policy that the W7PP created in your AD environment. It's likely called "W7PVP Folder Redirection".  Start with verification under the Settings tab, expand Folder Redirection beneath User Configuration states that
    Policy Removal Behaviouris set to Restore Contents.  Then proceed using the Editor, to make adjustments under the Scope tab; verify membership in Security Filtering.  Remove Domain Users,
    add in Folder Redirection Members (or whatever you named your group in step 1).
    3) on your workstation that your user you are applying the change to disable folder redirection, Log on to the domain account while connected to your network, elevate a command prompt, and perform a 'gpupdate /force' command and then reboot your computer. 
    Folder redirection configuration should be removed from the system and redirected contents should be restored back to your local path. Verify with inspection of the My Documents or other folders.
    Hope this helps. Keep in mind, no warranty implied or expressed in this advice.
    Try not to be so darn grumpy. :-/
    Jason Miller B.Comm (Hons), MCSA:Win7, MCITP, Microsoft MVP

  • Enter a password for the ADMIN user,Error in installing Oracle Apex,

    hi, everybody,
    Greetings,
    Iam trying to install oracle Apex, By coming this step it shows this error, Could you Please help me to solve this error.
    SQL> @apxchpwd.sql
    Enter a value below for the password for the Application Express ADMIN user.
    Enter a password for the ADMIN user []
    Session altered.
    ...changing password for ADMIN
    l_error_lines wwv_flow_global.vc_arr2;
    ERROR at line 3:
    ORA-06550: line 3, column 28:
    PLS-00201: identifier 'WWV_FLOW_GLOBAL.VC_ARR2' must be declared
    ORA-06550: line 3, column 28:
    PL/SQL: Item ignored
    ORA-06550: line 5, column 5:
    PLS-00201: identifier 'WWV_FLOW_SECURITY.G_SECURITY_GROUP_ID' must be declared
    ORA-06550: line 5, column 5:
    PL/SQL: Statement ignored
    ORA-06550: line 6, column 5:
    PLS-00201: identifier 'WWV_FLOW_SECURITY.G_USER' must be declared
    ORA-06550: line 6, column 5:
    PL/SQL: Statement ignored
    ORA-06550: line 7, column 5:
    PLS-00201: identifier 'WWV_FLOW_SECURITY.G_IMPORT_IN_PROGRESS' must be declared
    ORA-06550: line 7, column 5:
    PL/SQL: Statement ignored
    ORA-06550: line 15, column 31:
    PLS-00201: identifier 'WWV_FLOW_SECURITY.STRONG_PASSWORD_VALIDATION' must be
    declared
    ORA-06550: line 15, column 5:
    PL/SQL: Statement ignored
    ORA-06550: line 22, column 35:
    PLS-00201: identifier 'WWV_FLOW_UTILITIES.STRIPHTML' must be declared
    ORA-06550: line 22, column 9:
    PL/SQL: Statement ignored
    ORA-06550: line 25, column 9:
    PLS-00320: the declaration of the type o

    suresh.m2015,
    It's going to be impossible for anyone in this forum to help with your issue if you don't provide any more detail about your environment and Apex installation. However, from your post it looks like the Apex database objects are missing or invalid.
    Did you follow the Apex installation guide step by step? For example, did you run apexins.sql?
    It's important to follow the documentation. The script you are running to change the admin user password should not be run until after the Apex installation is complete.
    --Keith Malay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Please enter valid  value for characteristics

    Hi,
    One of our user got this error when opening a query Please enter valid  value for characteristics.
    How do I fix this since I couldn't see any errors in SU53 and authourization logs.
    thanks

    Hi Bhat,
    Check SAP notes : 1077144
    Thanks,
    Vijay.

  • How to block a single table for a single user

    Hi all.
    I want to block a single Z table for a single user. How to do this?  If he/she tries to display data using SE16 or SE11 Tcode he/she should get an error message.
    Regards,
    Prajwal K.

    Hi Prajwal,
    We can use the function modules ENQUEUE_E_TABLE for locking tables and the function module DEQUEUE_E_TABLE for unlocking tables. With this method, we don't need to lock objects in order to lock the tables. In other words, any table can be locked/unlocked using these function modules.
    Check this sample code:
    *Locking Table*
    data:
    varkey like rstable-varkey.
    varkey = sy-mandt.
    locking the tables............................
    call function 'ENQUEUE_E_TABLE'
    exporting
    MODE_RSTABLE = 'E'
    tabname = 'MARA'
    varkey = varkey
    X_TABNAME = ' '
    X_VARKEY = ' '
    _SCOPE = '2'
    _WAIT = ' '
    _COLLECT = 'X'
    exceptions
    foreign_lock = 1
    system_failure = 2
    others = 3.
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • NAC Guest Server, How to change the password for a single user?

    We have a NAC Guest Server which creates a complex password for all new users created.
    We would like to have normal/simple password for a single user. How can I get this done on a NAC Guest Server.
    Thanks in advance.

    Hi,
    You can setup 3 different flavours of passwords:
    http://www.cisco.com/en/US/docs/security/nac/guestserver/configuration_guide/20/g_guestpol.html#wp1063249.
    a. Username Policy 1 - Email address as username
    Use the guest's email address as the username. If an overlapping account with the same email address exists, a random number is added to the end of the email address to make the username unique. Overlapping accounts are accounts that have the same email address and are valid for an overlapping period of time.
    b. Username Policy 2 - Create username based on first and last names
    Create a username based on combining the first name and last name of the guest. You can set a Minimum username length for this username from 1 to 20 characters (default is 10). User names shorter than the minimum length are padded up to the minimum specified length with a random number.
    c. Username Policy 3 - Create random username
    Create a username based upon a random mixture of Alphabetic, Numeric or Other characters. Type the characters to include to generate the random characters and the number to use from each set of characters.
    Note: The total length of the username is determined by the total number of characters included.
    HTH,
    Tiago
    If  this helps you and/or answers your question please mark the question as  "answered" and/or rate it, so other users can easily find it.

  • Purchase Orders form in Query Only mode for a single user

    Hi All,
    I want to make the Purchase Orders form as query only for a single user. I tried by giving 'Query_only=Yes' in the parameters section. I am getting 'FRM-04151: You cannot query records here' message more than 10 time. I know we get this message and this is applicable to all the users. But this message is comming more than 10 times.
    Is there anyway that I can restrict the Query only mode to a single user and please suggest about the message also.
    Thanks in Advance,
    Naresh

    Please post this question here: OA Framework
    There are so many special conditions and restrictions for E-Biz Suite that this forum is not the right place to ask these questions. The Apps forum at this location is the right place.

  • 500 internal server error for only single user

    Hi Experts,
    Pls help me that
    I am getting the problem of 500 Internal server error for a single user .
    Except that user remaining users are not getting this error, They are working fine
    i.e it is ESS & MSS  Package all other application working fine , this iview came from  Webdynpro .
    Regards
    Krishna

    Hi Arun,
    where can i check with that whether in DEV/PROD system...?
    I don't have access to PROD system and SU01 system too.
    Can you please guide me with the steps to get it done.
    Please check the below log which is getting displayed for the User, when he is logging in.
    Error summary
    While processing the current request, an exception occurred which could not be handled by the application or the framework.
    If the information contained on this page doesnu2019t help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this
    Root Cause
    The initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: ComponentUsage(FPMConfigurationUsage): Active component must exist when getting  interface controller
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.ensureActiveComponent(ComponentUsage.java:773)
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceControllerInternal(ComponentUSage.java:348)
    at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceController(ComponentUsage.java:335)
    at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdGetFPMConfigurationUsageInterface(InternalFPMComponent.java.245)
    at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.changeToExceptionPerspective(FPMComponent.java:862)
    u2026 59 more
    Please provide me any help.
    Thanks in advance.
    Regards,
    Ponneswari A.

  • Error  Enter a value for field BP_GUID

    I am using MDG  7.0
    When I create a  Request for "Create ERP Customer",
    I then enter data including the sales Area Data and Company Code data
    Then Submit
    at the following approval step , Sales Area data and CC data is missing.
    I get ERROR message  "Enter a value for Field BP_GUID"
    Please advise what Table or T-code am I missing values for .
    Thanks for your assistance,

    hi,
    See the attached screen shot.
    Regards,
    Tushar

  • In ID object Communication Channel - Enter a value for Service Number?

    Hi,
    I have completed all the steps of this link upto 4.5 > 11,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce
    but when i activate my messge interfarence from senario tab list or change object tab list, <b>it is showing error that :
    Check Result for Object Communication Channel(GeneratedReceiverChannel_XI )  Enter a value for Service Number</b>
    address type: URL Adress
    target host: my bi server aibid
    Service Number: ?????????
    Path: /sap/xi/engine?type=entry
    What is the Service NO.
    Best Regards,
    Dushyant.

    Hi,
    >>>>The serice number is ur port number. In your XI system URL http://host:port/rep/start/index.jsp
    this is the j2ee port and he should put http port
    as his path is: /sap/xi/engine?type=entry
    on WAS ABAP I guess..
    Regards,
    michal

  • Enter multiple values for a field in dialog programming

    I need to enter multiple values for some of the fields in screen , which screen element do i use for this or is there any other way of doing it?

    That would be a table control. In this you can enter multiple values for multiple fields.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5e35c111d1829f0000e829fbfe/content.htm
    Thanks,
    SKJ

Maybe you are looking for

  • Can I use External Display on a Window 7 64bit 13" Macbook Pro Early 2010

    I have a 23" LED LG Monitor , It has VGA Cable , RCA Cable and HDMI Plug (but no wire). I am asking now if whether I should need a VGA Cable or a RCA Cable or a HDMI cable. I know there's the Apple Mini DVI to VGA Adapter. Should I get that? And does

  • Excise duty values not flowing from PO to MIGO

    All SAP Gurus, We have created a PO and used excisable tax code in it. Excise duties are calculated correctly in PO. When we go for Goods receipt against the PO, excise tab appears, but there are no values in excise fields (fiels are blank). System a

  • How to delete Infoset Query in R/3

    Hi  Gurus, I created a Infoset using SQ02 in R/3 and generated the query. Now I need to delete that Infoset query. Please advice me how to delete infoset query from the functional group in R/3. Thanks Liza

  • Adobe Media Encoder does not encode

    The only way I can get Media Encoder to work with Premiere is to export directly in Premiere first to a file, and then take that file into Media Encoder. When exporting from Premiere, Media Encoder acts like it is working, but never encodes anything.

  • Acrobat Toolbar in Lotus Notes 8.5

    Does anyone know how i can get the acrobat toolbar to show up in Lotus Notes 8.5. I know this has been an issue in the past and I have already tried the steps of manually adding the add-ons into the configuration files for Notes but that doesn't seem