Parameter QUERY ON/OFF in *START_BADI

Hello,
I would like to know how the data selection happens for a BADI for both QUERY parameter settings. (ON/OFF)
Thx a lot
Dieter

Hello Dieter,
If you have QUERY = ON in START_BADI then input parameter CT_DATA is populated with data from Application retrieved using XDIM and DM Package restriction.
If QUERY = OFF then CT_DATA is empty.
Regards,
Gersh

Similar Messages

  • Parameter Query for True or False values

    I have what seems like a painfully simple task and it has me stopped dead.  I reviewed a similar thread, and the answers there don't seem to apply. Working in Crystal 11.5 with an MS SQL database.
    I am pulling data from vwCommmittees.  There is a field in this view called IsActive.  I want to create a committee list report that will allow the user to select only the active committees or all committees.
    A SQL select statement that says where dbo.IsActive = '1' will return only the active committees.
    In Crystal reports, if I place the IsActive field on the report, it returns with "True" or "False."
    When I create a parameter for this field, I find that 1) I can't see the parameter in the report expert -- my only choices are Is any value, Is true, Is false or Formula.
    I've made several attempts to create a formula and nothing is working. It's not clear to me wheter I should be creating a static or a dynamic parameter.  When I choose boolean as the type, that doesn't seem to help.  I tried a dynamic parameter which gave me true and false values, but don't seem to work.
    Any pointers on dealing with this kind of parameter query would be greatly appreciated.
    Sincerely,
    Ridge (in New Joisey)

    Hi..
    Create a static parameter and give the default values like
    0 and 1
    In Record Selection check like..dbo.IsActive = {?parameter}
    If the above is not working for you, then create a formula
    like..
    If dbo.IsActive = '1' then
    "Active"
    Else "In Active"
    Place this formula on your report and create a static parameter with default values Active and In Active.
    In record selection filter the above.
    Thanks,
    Sastry

  • 3 range parameter query to Oracle data base from Excel 2000

    A user bas been trying to setup parameter queries into an Oracle
    DB. He normally used MS query and written VBA code to
    modify the query for daily or adhoc updates.
    With Excel 2000, he wanted to take advantage of parameter
    queries linked directly to cells in a spreadsheet.
    He was able to get single or two level parameter queries
    directly linked to the spreadsheet to run, however every time he
    went to a
    three level parameter query it crashed while returning the data
    to Excel.
    The error windows read: Microsoft Excel [Oracle][ODBC] with no
    other details.
    Is there a limit on the number of "levels" for parameter
    queries.
    The user was able to build and see the results of a three level
    query in MS Query, but every time he tried to return the data to
    Excel, it crashed.
    Jeff

    This is an Microsoft Access problem. When you initally connect
    to an ODBC source database Access caches the connection and does
    not ask for connection information on subsequent linked table
    accesses. This causes a problem if you request information from
    tables belonging to different users during the same Access
    session. The way to avoid this error happening is to create a
    user with access privileges to both users being used by the
    Access front end. When you connect to Oracle use the new user
    and you should be able to connect to all the linked tables. It
    may also be worth copying the Access databases to one single
    database and trying the migration that way.
    Regards
    Daniel

  • Oracle date parameter query not working?

    http://stackoverflow.com/questions/14539489/oracle-date-parameter-query-not-working
    Trying to run the below query, but always fails even though the parameter values matches. I'm thinking there is a precision issue for :xRowVersion_prev parameter. I want too keep as much precision as possible.
    Delete
    from CONCURRENCYTESTITEMS
    where ITEMID = :xItemId
    and ROWVERSION = :xRowVersion_prev
    The Oracle Rowversion is a TimestampLTZ and so is the oracle parameter type.
    The same code & query works in Sql Server, but not Oracle.
    Public Function CreateConnection() As IDbConnection
    Dim sl As New SettingsLoader
    Dim cs As String = sl.ObtainConnectionString
    Dim cn As OracleConnection = New OracleConnection(cs)
    cn.Open()
    Return cn
    End Function
    Public Function CreateCommand(connection As IDbConnection) As IDbCommand
    Dim cmd As OracleCommand = DirectCast(connection.CreateCommand, OracleCommand)
    cmd.BindByName = True
    Return cmd
    End Function
    <TestMethod()>
    <TestCategory("Oracle")> _
    Public Sub Test_POC_Delete()
    Dim connection As IDbConnection = CreateConnection()
    Dim rowver As DateTime = DateTime.Now
    Dim id As Decimal
    Using cmd As IDbCommand = CreateCommand(connection)
    cmd.CommandText = "insert into CONCURRENCYTESTITEMS values(SEQ_CONCURRENCYTESTITEMS.nextval,'bla bla bla',:xRowVersion) returning ITEMID into :myOutputParameter"
    Dim p As OracleParameter = New OracleParameter
    p.Direction = ParameterDirection.ReturnValue
    p.DbType = DbType.Decimal
    p.ParameterName = "myOutputParameter"
    cmd.Parameters.Add(p)
    Dim v As OracleParameter = New OracleParameter
    v.Direction = ParameterDirection.Input
    v.OracleDbType = OracleDbType.TimeStampLTZ
    v.ParameterName = "xRowVersion"
    v.Value = rowver
    cmd.Parameters.Add(v)
    cmd.ExecuteNonQuery()
    id = CType(p.Value, Decimal)
    End Using
    Using cmd As IDbCommand = m_DBTypesFactory.CreateCommand(connection)
    cmd.CommandText = " Delete from CONCURRENCYTESTITEMS where ITEMID = :xItemId and ROWVERSION = :xRowVersion_prev"
    Dim p As OracleParameter = New OracleParameter
    p.Direction = ParameterDirection.Input
    p.DbType = DbType.Decimal
    p.ParameterName = "xItemId"
    p.Value = id
    cmd.Parameters.Add(p)
    Dim v As OracleParameter = New OracleParameter
    v.Direction = ParameterDirection.Input
    v.OracleDbType = OracleDbType.TimeStampLTZ
    v.ParameterName = "xRowVersion_prev"
    v.Value = rowver
    v.Precision = 6 '????
    cmd.Parameters.Add(v)
    Dim cnt As Integer = cmd.ExecuteNonQuery()
    If cnt = 0 Then Assert.Fail() 'should delete
    End Using
    connection.Close()
    End Sub
    Schema:
    -- ****** Object: Table SYSTEM.CONCURRENCYTESTITEMS Script Date: 1/26/2013 11:56:50 AM ******
    CREATE TABLE "CONCURRENCYTESTITEMS" (
    "ITEMID" NUMBER(19,0) NOT NULL,
    "NOTES" NCHAR(200) NOT NULL,
    "ROWVERSION" TIMESTAMP(6) WITH LOCAL TIME ZONE NOT NULL)
    STORAGE (
    NEXT 1048576 )
    Sequence:
    -- ****** Object: Sequence SYSTEM.SEQ_CONCURRENCYTESTITEMS Script Date: 1/26/2013 12:12:48 PM ******
    CREATE SEQUENCE "SEQ_CONCURRENCYTESTITEMS"
    START WITH 1
    CACHE 20
    MAXVALUE 9999999999999999999999999999

    still not comming...
    i have one table each entry is having only one fromdata and one todate only
    i am running below in sql it is showing two rows. ok.
      select t1.U_frmdate,t1.U_todate  ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID  AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf 
       from  [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
       on t0.DocEntry = t1.DocEntry
       inner join ohem t2
       on t2.empID = t0.U_empid  where  t0.U_empid between  '830' and  '850'  and t1.U_frmdate ='20160801'  and  t1.u_todate='20160830'
    in commond promt
      select t1.U_frmdate,t1.U_todate  ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID  AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf 
       from  [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
       on t0.DocEntry = t1.DocEntry
       inner join ohem t2
       on t2.empID = t0.U_empid  where  t0.U_empid between  {?FromEmid} and  {?ToEmid} and t1.U_frmdate ={?FDate} and  t1.u_todate={?TDate}
    still not showing any results..

  • Adhoc query for Off cycle Payments(infotype 0267)

    Dear All,
    I have a rquirement to create a query for off cycle payments infotype(0267).
    It should show the payment done for each wage type.
    Can we pick the data from PC_payresult from table RT - Results Table.
    If yes, please let me know the process and if not, is there any other way to get the splits of offcycle payment.
    Regards,
    Prasad.

    Hi All,
    Do any one know how to create this query?
    Do we have any standard reports regarding the splits of offcycle payment infotype(0267)..
    Regards,
    Prasad.

  • Parameter Query

    How to create a Parameter Query which ask the user to key in data and search the result from keyed data.
    I have managed to create Parameter Query in MS Database but i am struggling in SQL+ (oracle)

    use the & (ampersand) and subsitution variables if using SQLPLUS
    e.g
    SELECT field1,
    field2
    FROM table1
    WHERE field3 = '&field3' (for strings)
    or WHERE field3 = &field3 (for numbers)
    Check Oracle - the Complete Reference for further info on this;
    If programming in PL/SQL used parameterised Cursors (See a good pl/sql text book)
    Hope this helps.

  • Parameter query or cascading combo boxes

    In my Access 2013 web app, I have a form for entering a specific type of  activity.  I am using a related item control to add contacts to each activity.  The main table is Activity, the related Item Control is based on (join table) Assignment.
     So far so good.
    Now on the popup view I need to be able to assign contacts to the activity and I need to filter the choice of contacts based on location and group, so for example, when I open the contact combo box, I see only my volunteers from office 1, or only my staff
    from office 2, etc.  Is this best accomplished by cascading combo boxes? Or should I somehow use a parameter query? I have tried the cascading combo boxes but so far have not been able to get them to work. 
    FYI: In the contacts table, every contact has a location and group. Also, I have one table for location and one for group, so that I can use those in look ups. 
    My join table is: Activity ID (look up to activity table) / Contact (look up to Contact Table) 

    Hi,
    >>
    I need to filter the choice of contacts based on location and group
    Is this best accomplished by cascading combo boxes?
    I have tried the cascading combo boxes but so far have not been able to get them to work.
    <<
    In this case, I will suggest you using the Combo Box control which has the build-in support on cascading feature.
    And what do you mean by “not been able to get them work”? I did a quick test and it worked as expected.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Access Parameter Query by form, returns a form for each returned value

    I have a form set up with a parameter query. It returns data from multiple tables. My problem is it returns the data for say 7 records, but then it repeats the entire form 7 times, the forms are identical with all the data included. I want it to return
    the data on one form. It must be a setting, or statement that is lacking but I can't seem to find it.

    Hans,
    Thank You for the response. I first changed the setting in the SubForm Query, same result. Then I changed it in the Report, still no difference. After reading some information in other forums it may be because I am pulling the data from the Tables using
    the InvoiceNum field from one table, on both the Report and the SubForm, and I have the Report and Subform linked by this field. The InvoiceNum field is the Foreign key created to pull the desired data, if I don't use it I get all the data in the tables, not
    just the data I need.

  • LRM-00112: multiple values not allowed for parameter 'query'

    Hello,
    I am getting below error while trying to execute below query...please help:
    exp username/password file=query.dmp log=query.log tables=schema_name.tablename query=\"where PRODUCT_KEY IN\'4541450,4541455,4541475,4541504,
    4541505,4674142,4674201,4674202,4673982,4674000,4674114,4674118,4654432,4715806,4715807,4716122,4716133,4870247,5321008'/"
    LRM-00112: multiple values not allowed for parameter 'query'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully

    yeah i have tried using paranthesis as well...it has given below error then:
    exp schema/password file=query.dmp log=query.log tables=schema_name.table_name query="where PRODUCT_KEY IN (4541450,4541455,4541475,4541504,4
    541505,4674142,4674201,4674202,4673982,4674000,4674114,4674118,4654432,4715806,4715807,4716122,4716133,4870247,5321008)"
    ./export.ksh: syntax error at line 1 : `(' unexpected

  • Access Parameter Query

    Does anyone know how to call an Access parameter query with a
    Dreamweaver
    recordset (ASP/VBScript)?
    For instance, if I have an Access query like the one below.
    PARAMETERS varUser Text ( 255 );
    SELECT Users.FirstName, Users.LastName, Users.Login
    FROM Users
    WHERE (((Users.Login)=[varUser]));
    Above is just an example. I know I could easily place the
    where clause in
    the SQL for the recordset on the page if that was all I
    wanted. I need to
    use an Access parameter query though.

    Hans,
    Thank You for the response. I first changed the setting in the SubForm Query, same result. Then I changed it in the Report, still no difference. After reading some information in other forums it may be because I am pulling the data from the Tables using
    the InvoiceNum field from one table, on both the Report and the SubForm, and I have the Report and Subform linked by this field. The InvoiceNum field is the Foreign key created to pull the desired data, if I don't use it I get all the data in the tables, not
    just the data I need.

  • Problem in parameter query.

    Post Author: eaglesoft
    CA Forum: Data Connectivity and SQL
    I'm using Crystal reports xi. I have problem on parameter fields.    field name-EmployeeCode, datatype-String.In report,I kept the following query in selection expert,(EmployeeTable.EmployeeCode) like "" +{?employeeCode}  employeeCode-String Parameter,(while selecting Single option,it'll display in report that particular employeecode only), like "" (while selecting All option  in Jsp page,it'll display All employeecodes from database).Now, I have changed my EmployeeCode datatype as integerfield name-EmployeeCode, datatype-String.In Slection Expert, I'm facing problem on previous query "String required" ,though I kept employeeCode as number.(It should fit for Single and All Option)Pls help me on Previous query with integer datatype.

    Post Author: jlspublic
    CA Forum: Data Connectivity and SQL
    It appears that your problem comes from using "+" as the concatenation operator.  From the documentation for this operator:If you want to include a value from a numeric field (for example, an account
    balance), you must first convert that value to a text string using the ToText function:
    "Your account balance is " + ToText({file.BALANCE}) + "."
    Instead of casting, you could also switch to the "&" concatenation operator which gives the added benefit of avoiding subtle bugs when attempting to concatenate strings of numbers.

  • CUCM AXL Query Phone Off-hook Status

    Hi
    For SOAP/AXL query purposes, does anyone know the table(s) and field(s) within CUCM v7.0 to query a phones' off-hook status? I've had a look through the database dictionary, but could not see anything obviously relating to 'off-hook' or busy. I'm looking to put together a query to find out which users are currently busy taking calls.
    In addition, some of our phones are configured with extension mobility, so not sure whether the query should be focussed on the device profile or line appearance rather than physical handset.
    Any help appreciated!
    Thanks
    Yves

    Hello John,
    You may try to use BLF.
    This is not supported with CCA.
    HTH,
    Alex
    *Please rate helpful posts

  • Using IN Operator in Query Parameter querying an Oracle dataset

    I have created a main data set querying from Oracle in which I have two query parameters that are multi-valued lists.  I created a data set for each of those multi-valued lists.  These two parameters are configured to be multi-valued and selected
    from the query.  On the main data set, the parameters are set to an expression: = Join(Parameter.Field.Value, ",").  If I sent just one value as a default in each of those parameters, works great.  If I select "Select All"
    in my drop down and rerun the report then I get "Query execution failed for dataset" and "rsErrorExecutingCommand".  I am using Report Builder 3.0.  I have seen some older posts saying you have to use a stored procedure to generate
    a string from the selects to be passed to the parameter?  I don't get this.  Obviously I want to stick with using a query parameter for the performance gain.  Is there an easy way to make this work?
    Grateful for any help!  Laurie

    Laurie, you are right that the execution time is too long.  Your instinct is correct to put the burden on the database to return the correct resultset, rather than filtering it in the report.  
    I think I wasn't clear about my explanation and you may have made this more complicated than it needs to be.  The functionality that you want is already in ReportBuilder.  Please check out this example from MS:
    http://technet.microsoft.com/en-us/library/aa337396(v=sql.105).aspx
    This is the correct syntax:
    AND soh.SalesPersonID IN (@BusinessPersonID)
     Is this how you have your query configured? If not, could you supply an example.
    Hope that helps,
    Mark

  • 3061 Error related to an parameter query

    Hi,
    I see I am not the only one encountering the 3061 error, but I would not be surprised I could be the only one not understanding how to solve it..
    J
    I am using the below function in a module XX (this is curtesy of Mr DbGuy) .
    In query X , field B I have the following parameter referring to form C. [Forms]![FRUITS_FORM]![FRUIT_COMBO]
    I do not understand how to apply previous suggestion in the below context. All this process is to be triggered from Button XX in Form XX.
    Public Function SimpleCSV(strSQL As String, _
                Optional strDelim As String = " OR ") As String
    'Returns a comma delimited string of all the records in the SELECT SQL statement
    'Source: http://accessmvp.com/thedbguy
    'v1.0 - 8/20/2013
    Dim db As DAO.Database
    Dim rs As DAO.Recordset
    Dim strCSV As String
    Set db = CurrentDb()
    Set rs = db.OpenRecordset(strSQL, dbOpenSnapshot)
    'Concatenate the first (and should be the only one) field from the SQL statement
    With rs
        Do While Not .EOF
            strCSV = strCSV & strDelim & .Fields(0)
            .MoveNext
        Loop
        .Close
    End With
    'Remove the leading delimiter and return the result
    SimpleCSV = Mid$(strCSV, Len(strDelim) + 1)
    Set rs = Nothing
    Set db = Nothing
    End Function

    If the SQL statement being passed into the function as a string expression references a query with parameters you won't be able to do that with this function as it stands.  Where it is necessary to establish a recordset object on the basis of a query
    with parameters then you must firstly evaluate the parameters by looping though the querydef object's Parameters collection, and then call the OpenRecordset method of the querydef object.  Here's code snippet which illustrates this:
        Dim dbs As DAO.Database
        Dim rst As DAO.Recordset
        Dim qdf As DAO.QueryDef
        Dim prm As DAO.Parameter
        Set dbs = CurrentDb
        Set qdf = dbs.QueryDefs(strQuery)
        For Each prm In qdf.Parameters
            prm = Eval(prm.Name)
        Next prm
        Set rst = qdf.OpenRecordset
    However, you have no reference to a querydef object in the code, so you'd need to amend the function to create a temporary querydef object on the basis of the SQL statement, whose parameters you can evaluate as above, and then call its OpenRecordset method.
    Ken Sheridan, Stafford, England

  • BEx query logging off

    Hello All,
    I am trying to execute a query in BEX. It does execute but after 10-15 minutes, I get automatically logged off.
    The SAP GUI 710 and patch level is 16. What might be the problem?
    And what role does the .dll file play in these query executions?
    Kindly help.
    Regards,
    NIKEKAB

    Hi NIKEKAB & PRASHANTHK
    Sorry to jump into your conversation, but i was wondering is this really a missing .dll issue?? or there is problem with query itself.
    NIKEKAB are you able to run any other query or you can't run any query at all??
    if you can run other query, then go to RSRT and then try to run this query with execute & debug with option "do not supress messages" there you can what exactly the problem is.
    there could be possibility that if any the query changed, or some of the query elements not available then BEx will disconnect. but as u said it runs for 10-15 min then i doubt this could be the reason.
    another possibility is there could be some objects which you dont have authorizations to use, but even in this case it wont run for 10-15min, you can see this in RSRT as well.
    If you can give us more info that will be helpful to figure out what exactly the reason is.
    Best Regards
    Robyn.

Maybe you are looking for

  • Excel output (with graphics)

    Hello, I am using Oracle reports 10g 1.2.0 version. We need to generate oracle reports in Excel format ("real" Excel, not delimited text) with tabular data and also graphics. I used desformat=spreasheet. But is is giving only one worksheet. I've foun

  • How to re-install Snow Leopard on Macbook Pro i7?

    When using a retail copy of Snow Leopard DVD I get "Unknown CPU" error. I tried to install it by moving the HDD onto another (older) macbook. But then when I move the HDD back, I get the "Unknown CPU" error again. I do not have the original DVD that

  • App Tabs do not open automatically

    I set GMail and RTM as "App Tabs" but when I open Firefox again they do not open automatically - it simply opens to my normal home page.

  • Table width not displaying correctly in IE - Works in Mozilla / Chrome

    I am working tirelessly trying to optimize my site for SEO purposes and I have been able to strip out over a hundred lines of extra code while maintaining my sites look. The problem is in doing so I messed something up - well at least Internet Explor

  • FB contacts in my Iphone contact list

    I just updated my O/S and all my facebook contacts are now in my Iphone contacts liste. Cannot delete them ? what can I do ? I don't want all my FB contacts in my phone