I need to do a select query against a mysql db in my java project

Hey guys!
I hope you can help me! I have a column "date" in my table of my MySQL DataBase. Well, when I prepare my statement in my java program, I can't compare a date to get all the rows where the date is the one that I'm trying to compare.
I'm trying to do something like this:
ResultSet rs = statement.executeQuery("select * from table where datecolumn=' "+ new java.sql.date(mydate.getTime()) + ' ");
But I have not been succesful yet. Can anyone, please, help me? How do I write the select if I have a variable of the kind java.util.Date and I want to compare it with the one in my DB?
Cheers!!!!

If there are too many fields to have pre-generated SQL for every possible subset, build the query at runtime. Here's some code. The array dates holds null for date fields that shouldn't be used to filter the data.
import java.sql.*;
public class Example {
    String[] dateColumns = {
        "date1",
        "date2",
        "date3",
    void f(Connection c, Date[] dates) throws SQLException {
        StringBuilder b = new StringBuilder("SELECT * FROM tableX WHERE 0=0 ");
        for(int i=0; i<dates.length; ++i) {
            if (dates[i] != null) {
                b.append("AND ").append(dateColumns).append(" = ? ");
String SQL = b.toString();
System.out.println("SQL = " + SQL);
PreparedStatement ps = c.prepareStatement(SQL);
for(int i=0, offset=1; i<dates.length; ++i) {
if (dates[i] != null) {
ps.setDate(offset, dates[i]);
offset++;
//use ps
}There's nothing tricky going on, the code just generates the obvious SQL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Daily morning 8 o clock , we need to execute a select query

    Hi,
    daily morning 8 o clock , we need to execute a select query.
    How we can do this using dbms_scheduler? or any other ways?
    db version : 10g
    Thanks,
    Kumar.
    Message was edited by:
    user548258

    Use daily and byhour parameters as shown in below link.
    http://www.dba-oracle.com/t_dbms_scheduler_examples.htm

  • I need help with a SELECT query - help!

    Hello, I need help with a select statement.
    I have a table with 2 fields as shown below
    Name | Type
    John | 1
    John | 2
    John | 3
    Paul | 1
    Paul | 2
    Paul | 3
    Mark | 1
    Mark | 2
    I need a query that returns everything where the name has type 1 or 2 but not type 3. So in the example above the qery should bring back all the "Mark" records.
    Thanks,
    Ian

    Or, if the types are sequential from 1 upwards you could simply do:-
    SQL> create table t as
      2  select 'John' as name, 1 as type from dual union
      3  select 'John',2 from dual union
      4  select 'John',3 from dual union
      5  select 'Paul',1 from dual union
      6  select 'Paul',2 from dual union
      7  select 'Paul',3 from dual union
      8  select 'Paul',4 from dual union
      9  select 'Mark',1 from dual union
    10  select 'Mark',2 from dual;
    Table created.
    SQL> select name
      2  from t
      3  group by name
      4  having count(*) <= 2;
    NAME
    Mark
    SQL>Or another alternative if they aren't sequential:
    SQL> ed
    Wrote file afiedt.buf
      1  select name from (
      2    select name, max(type) t
      3    from t
      4    group by name
      5    )
      6* where t < 3
    SQL> /
    NAME
    Mark
    SQL>Message was edited by:
    blushadow

  • How to use : bind character in DB adapter Select Query SOA11g. Getting Error code :17003 .java.sql.SQLException: Invalid column index error

    Hi All,
    The Actual query to perform is below.
    SELECT name,number from emp  WHERE CASE WHEN :1='T' AND term_date IS Not NULL THEN 1 WHEN :1='A' AND term_date IS NULL THEN 1 WHEN :1='ALL' THEN 1 ELSE  1 END = 1;
    I have tried in DB adapter like below as a parameter for :1 as #vInputParam
    SELECT name,number from emp  WHERE CASE WHEN #vInputParam='T' AND term_date IS Not NULL THEN 1 WHEN #vInputParam='A' AND term_date IS NULL THEN 1 WHEN #vInputParam='ALL' THEN 1 ELSE  1 END = 1;
    Getting Error code :17003 .java.sql.SQLException: Invalid column index error.
    Please suggest me on using ':' bind character in DB adapter Select Query SOA11g.
    Can someone help me on this please?
    Thanks,
    Hari

    Hi,
    Could you please make sure your binding style(Oracle Positional,Oracle named..etc) of the Seeded VO and Custom Vo are same.
    This is the option you will get when you are extending your vo. So make sure that both are same.
    You can refer the below link too
    VO extension leads to "Invalid column index" exception
    Thanks
    Bharat

  • Need help for SQL SELECT query to fetch XML records from Oracle tables having CLOB field

    Hello,
    I have a scenario wherein i need to fetch records from several oracle tables having CLOB fields(which is holding XML) and then merge them logically to form a hierarchy XML. All these tables are related with PK-FK relationship. This XML hierarchy is having 'OP' as top-most root node and ‘DE’ as it’s bottom-most node with One-To-Many relationship. Hence, Each OP can have multiple GM, Each GM can have multiple DM and so on.
    Table structures are mentioned below:
    OP:
    Name                             Null                    Type        
    OP_NBR                    NOT NULL      NUMBER(4)    (Primary Key)
    OP_DESC                                        VARCHAR2(50)
    OP_PAYLOD_XML                           CLOB       
    GM:
    Name                          Null                   Type        
    GM_NBR                  NOT NULL       NUMBER(4)    (Primary Key)
    GM_DESC                                       VARCHAR2(40)
    OP_NBR               NOT NULL          NUMBER(4)    (Foreign Key)
    GM_PAYLOD_XML                          CLOB   
    DM:
    Name                          Null                    Type        
    DM_NBR                  NOT NULL         NUMBER(4)    (Primary Key)
    DM_DESC                                         VARCHAR2(40)
    GM_NBR                  NOT NULL         NUMBER(4)    (Foreign Key)
    DM_PAYLOD_XML                            CLOB       
    DE:
    Name                          Null                    Type        
    DE_NBR                     NOT NULL           NUMBER(4)    (Primary Key)
    DE_DESC                   NOT NULL           VARCHAR2(40)
    DM_NBR                    NOT NULL           NUMBER(4)    (Foreign Key)
    DE_PAYLOD_XML                                CLOB    
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    SELECT
    j.op_nbr||'||'||j.op_desc||'||'||j.op_paylod_xml AS op_paylod_xml,
    i.gm_nbr||'||'||i.gm_desc||'||'||i.gm_paylod_xml AS gm_paylod_xml,
    h.dm_nbr||'||'||h.dm_desc||'||'||h.dm_paylod_xml AS dm_paylod_xml,
    g.de_nbr||'||'||g.de_desc||'||'||g.de_paylod_xml AS de_paylod_xml,
    FROM
    DE g, DM h, GM i, OP j
    WHERE
    h.dm_nbr = g.dm_nbr(+) and
    i.gm_nbr = h.gm_nbr(+) and
    j.op_nbr = i.op_nbr(+)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    I am using above SQL select statement for fetching the XML records and this gives me all related xmls for each entity in a single record(OP, GM, DM. DE). Output of this SQL query is as below:
    Current O/P:
    <resultSet>
         <Record1>
              <OP_PAYLOD_XML1>
              <GM_PAYLOD_XML1>
              <DM_PAYLOD_XML1>
              <DE_PAYLOD_XML1>
         </Record1>
         <Record2>
              <OP_PAYLOD_XML2>
              <GM_PAYLOD_XML2>
              <DM_PAYLOD_XML2>
              <DE_PAYLOD_XML2>
         </Record2>
         <RecordN>
              <OP_PAYLOD_XMLN>
              <GM_PAYLOD_XMLN>
              <DM_PAYLOD_XMLN>
              <DE_PAYLOD_XMLN>
         </RecordN>
    </resultSet>
    Now i want to change my SQL query so that i get following output structure:
    <resultSet>
         <Record>
              <OP_PAYLOD_XML1>
              <GM_PAYLOD_XML1>
              <GM_PAYLOD_XML2> .......
              <GM_PAYLOD_XMLN>
              <DM_PAYLOD_XML1>
              <DM_PAYLOD_XML2> .......
              <DM_PAYLOD_XMLN>
              <DE_PAYLOD_XML1>
              <DE_PAYLOD_XML2> .......
              <DE_PAYLOD_XMLN>
         </Record>
         <Record>
              <OP_PAYLOD_XML2>
              <GM_PAYLOD_XML1'>
              <GM_PAYLOD_XML2'> .......
              <GM_PAYLOD_XMLN'>
              <DM_PAYLOD_XML1'>
              <DM_PAYLOD_XML2'> .......
              <DM_PAYLOD_XMLN'>
              <DE_PAYLOD_XML1'>
              <DE_PAYLOD_XML2'> .......
              <DE_PAYLOD_XMLN'>
         </Record>
    <resultSet>
    Appreciate your help in this regard!

    Hi,
    A few questions :
    How's your first query supposed to give you an XML output like you show ?
    Is there something you're not telling us?
    What's the content of, for example, <OP_PAYLOD_XML1> ?
    I don't think it's a good idea to embed the node level in the tag name, it would make much sense to expose that as an attribute.
    What's the db version BTW?

  • Running a Select query against multiple sql servers using SSIS script task.

    Hi Guys,
    I need to fetch data from multiple sql servers using  SSIS scirpt task inside a foreach container.
    is there anyway i can build dynamic sql connections using ssis variables inside SSIS script task in each loop
    Please guide me or refer any blogs so that i will try..
    Thanks in advance.

    Your only options is using .net code, then it will be no different than using a console app in a loop.
    using (SqlConnection connection = new SqlConnection(connectionString))
    connection.Open();
    Console.WriteLine("ServerVersion: {0}", connection.ServerVersion);
    Console.WriteLine("State: {0}", connection.State);
    and so forth for each connection string
    the connection string would come from the ForEach loop
    Arthur My Blog

  • What does it mean when the usecounts of Parse Tree for a view is incrementing when a select query is issued against the view?

    I'm using SQL Server 2008 R2 (10.50.4033) and I'm troubleshooting an issue that a select query against a specific view is taking more than 30 seconds consistently.   The issue just starts happening this week and there is no mass changes in data.  
    The problem only occur if the query is issued from an IIS application but not from SSMS.  One thing I noticed is that sys.dm_exec_cached_plans is returning 2 Parse Tree rows for the view -  one created when the select query is issued
    1st time from the IIS application and another one created when the same select query is issued 1st time from SSMS.   The usecounts of the Parse Tree row for the view (the IIS one) is increasing whenever the select query is issued.  The
    usecounts of the Parse Tree row for the view (the SSMS one) does not increase when the select query is issued again. 
    There seems to be a correlation between the slowness of the query and the increasing of the usecounts of the Parse Tree row for the view.  
    I don't know why there is 2 Parse Tree rows for the view.  There is also 2 Compiled Plan rows for the select query.  
    What does the Parse Tree row mean especially the usecounts column?

    >> The issue just starts happening this week and there is no mass changes in data.  
    There might be a mass changes in the execution plan for several reason without mass changes in data
    If you have the old version and a way to check the old execution plan, and compare to the new one, that this should be your starting point. In most cases you don't have this option and we need to monitor from scratch.
    >> The problem only occur if the query is issued from an IIS application but not from SSMS.
    This mean that we know exactly what is the different and you can compare both execution plan. once you do it, you will find that they are no the same. But this is very common issue and we can know that it is a result of different SETting while connecting
    from different application. SSMS is an external app like any app that you develop in Visual studio but the SSMS dose not use the Dot.Net default options.
    Please check this link, to find the full explanation and solutions:
    http://www.sommarskog.se/query-plan-mysteries.html
    Take a look at sys.dm_exec_sessions for your ASP.Net application and for your SSMS session.
    If you need more specific help, then we need more information and less stories :-)
    We need to see the DDL+DML+Query and both execution plans
    >> What does the Parse Tree row mean
    I am not sure what you mean but the parse tree represents the logical steps necessary to execute the query that has been requested. you can check this tutorial about the execution plan: https://www.simple-talk.com/sql/performance/execution-plan-basics/ or
    this one: http://www.developer.com/db/understanding-a-sql-server-query-execution-plan.html
    >> regarding the usecount column or any other column check this link:
    https://msdn.microsoft.com/en-us/library/ms187404.aspx?f=255&MSPPError=-2147217396.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Need help in writing a select query to pull required data from 3 tables.

    Hi,
    I have three tables EmpIDs,EmpRoles and LatestRoles. I need to write a select Query to get roles of all employees present in EmpIDs table by referring EmpRoles and LatestRoles.
    The condition is first look into table EmpRoles and if it has more than one entry for a particular Employee ID than only need to get the Role from LatestRoles other wise consider
    the role from EmpRoles .
    Sample Script:
    Create Table #EmpIDs
    (EmplID int )
    Create Table #EmpRoles
    (EMPID int,Designation varchar(50))
    Create Table #LatestRoles
    EmpID int,
    Designation varchar(50)
    Insert into #EmpIDs values (1),(2),(3)
    Insert into #EmpRoles values (1,'Role1'),(2,'Role1'),(2,'Role2'),(3,'Role1')
    Insert into #LatestRoles values (2,'Role2')
    Employee ID 2 is having two roles defined in EmpRoles so for EmpID 2 need to fetch Role from LatestRoles table and for
    remaining ID's need to fetch from EmpRoles .
    My Final Output of select query should be like below.
    EmpID Role
    1 Role1
    2 Role2
    3 Role1
    Please help.
    Mohan

    Mohan,
    Can you check if this answers your requirement:
    Create Table #EmpIDs
    (EmplID int )
    Create Table #EmpRoles
    (EMPID int,Designation varchar(50))
    Create Table #LatestRoles
    EmpID int,
    Designation varchar(50)
    Insert into #EmpIDs values (1)
    Insert into #EmpIDs values (2)
    Insert into #EmpIDs values (3)
    Insert into #EmpRoles values (1,'Role1')
    Insert into #EmpRoles values (2,'Role2')
    Insert into #EmpRoles values (2,'Role1')
    Insert into #EmpRoles values (3,'Role1')
    Insert into #LatestRoles values (2,'Role2')
    --Method 1
    select e.EmplID,MIN(ISNULL(l.Designation,r.Designation)) as Designation
    from #empids e
    left join #emproles r on e.emplID=r.EmpID
    left join #latestRoles l on e.emplID=l.EmpID
    group by e.EmplID
    --Method 2
    ;with cte
    as
    select distinct e.EmplID,r.Designation,count(*) over(partition by e.emplID) cnt
    from #empids e
    left join #emproles r on e.emplID=r.EmpID
    select emplID,Designation
    from cte
    where cnt=1
    UNION ALL
    select a.EmplID,l.Designation
    from
    (select distinct EmplID from cte where cnt>1) a
    join #Latestroles l on a.EmplID=l.EmpID
    order by emplID
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • Same the same query against all the schemas

    Hi all,I am a newbie to databases
    I have a requirement where in in need to run the same query against all the schema s in the database.what would be the best way to do it.other than logging into each user and running query.Its a complex query I can't do a direct select  from sys or other even for I will have to change a lot of things.Is there a easier way to do it ??
    Thanks in advance

    990051 wrote:
    Hi all,I am a newbie to databases
    I have a requirement where in in need to run the same query against all the schema s in the database.what would be the best way to do it.other than logging into each user and running query.Its a complex query I can't do a direct select  from sys or other even for I will have to change a lot of things.Is there a easier way to do it ??
    Thanks in advance
    you have a choice between logging into each user & running the SQL or you can log into each user & run the SQL.

  • How to select Subpartition name in a Select query?

    Hi,
    I have a table that is partitioned on date range and subpartitioned based on and ID list. Lets assume the table name is something like: MY_TABLE
    The partition name would look like: P_20110126160527
    The subpartition list is as follows: GB, IN, AU, US etc. The sub partition name for GB would look like
    P_20110126160527_GB
    I need to run a select query to fetch data from MY_TABLE along with Sub partition name. The result set needs to look like:
    Name|Location|SubPartition
    Sam|UK|P_20110126160527_GB
    Tom|UK|P_20110126160527_GB
    Dave|AU|P_20110126160527_AU
    The data available in ALL_TAB_SUBPARTITIONS and USER_TAB_SUBPARTITIONS can't be used just because the only join condition available is the TABLE Name but we would also have to join on SUBPARTITION KEY. I am not sure how to achieve this.
    Does anyone here have a clue?

    In a pinch, you could do something like this.
    select col1, col2, col3, 'PARTITION_1' from your_table where key_col in <values for partition_1>
    union all
    select col1, col2, col3, 'PARTITION_2' from your_table where key_col in <values for partition_2>
    union all
    select col1, col2, col3, 'PARTITION_3' from your_table where key_col in <values for partition_3>
    union all
    ...Or better yet:
    select col1, col2, col3, case when key_col = 'x' then 'PARTITION_1'
                                  when key_col = 'y' then 'PARTITION_2'
                                  when key_col = 'z' then 'PARTITION_3'
                             end
    from ...Of course, none of these would be "dynamic".

  • Dynamic Select Query including Dynamic Tables with For all Entries

    Hello everyone,
    I need to create a select query which involves using of Dynamic Tables.
    Suppose I have a dynamic table <d1> which consist of let say 10 records.
    Now i need to make a select query putting data into another dynamic table <d2>
    CONCATENATE keyfield '=' '<d1>' INTO g_condition SEPARATED BY space.
    CONCATENATE g_condition '-' keyfield INTO g_condition.
    SELECT * FROM (wa_all_tables-name) INTO CORRESPONDING FIELDS OF TABLE <d1>
            FOR ALL ENTRIES IN <d1>
    WHERE (g_condition).
    But it is giving dump.
    Please help me on this....

    Short text
        A condition specified at runtime has an unexpected format.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "ZNG_CUSTOMWRITE" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was
         not caught in
        procedure "WRITE_ARCHIVE_PROD" "(FORM)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        The current ABAP program has tried to execute an Open SQL statement
        which contains a WHERE, ON or HAVING condition with a dynamic part.
        The part of the WHERE, ON or HAVING condition specified at runtime in
        a field or an internal table, contains the invalid value "ZCOURIER-ZCOURIERID".
    CONCATENATE keyfield '=' g_header INTO g_condition SEPARATED BY space.
    CONCATENATE g_condition '-' keyfield INTO g_condition.
    SELECT * FROM (wa_all_tables-name) INTO CORRESPONDING FIELDS OF TABLE <dyn_table1>
    FOR ALL ENTRIES IN <dyn_table>
      WHERE (g_condition).

  • Select query as input in PARAMETERS.

    Hi Expert,
    We need to give input as Select query. Like below are examples.
    1) Select * from ekko into table it_data where bukrs = 3000. or
    2) select fld1 fld2 fld3 from tablename into it_data up to 10 rows where fld4 = XXXXX.
    We want to pass only such query as input and want result according to them. User can put any table name, can chose any table fields, also he can use inner join group by statements also.
    Remember we want to pass only select query by user in PARAMETERS as below.
    parameters: option type string.
    In Option we need to wright that select query.
    Please provide some coding samples.
    Thanks And Regards
    Ranjeet Singh

    I think you should stay in strong oposition to customer requirement like that. This is like dynamic SQL, which if not authenticated properly would give a user to insight very sensitive data (like salaries, payments etc). Actually in SAP there is some sophisticated tool like that, called SAP Query. The user who have proper authorization can create any query he likes with no ABAP knowledge at all. I would really stick to what SAP provides by standard.
    If your custmer, is however persistent in his decision (he pays, he decides), you should developed such tool with dynamic program generation, which as mentioned above can be achieved with [GENERATE SUBROUTINE POOL|http://help.sap.com/abapdocu_70/en/ABAPGENERATE_SHORTREF.htm]. RTTS will not help here as they can be used only for dynamic structure/tables generation, not queries themselves.
    Regards
    Marcin

  • Select Query after the Event "GET  node "

    Hi,
    My requirements is I am calling get object event in my report and preparing an internal table in the get event, after this i need to write a select query based on this internal table..
    i want to avoid select query inside get event, my problem is to end the GET event and write a select query..
    How can i do that..
    can i write it in the end-of-selection.( i don't think so)
    it looks like this.
    start-of-selection.
    get objec.
    " Internal table preparation
    ????????event name needed??????????
    select query.....
    please suggest.

    END-OF-SELECTION.
    Effect
    This statement defines an event block, whose event is raised by the ABAP-runtime environment during the calling of an executable program , if the logical database, with which the program is linked, has completely finished its work.
    Moderator message - Sandeep - if you have to cut and paste from the help, please note it as such.
    Edited by: Rob Burbank on Nov 26, 2009 12:42 PM

  • Question on Select query

    Hi,
    I need to prepare a select query which can fetch the below mentioned scenario:
    Ztable has fields zident, date, time, status. (zident, date, time are key fields)
    zident      date        time               status      
    10001    02/09/09    111111                s
    10001    02/08/09    222222                p
    10001    02/07/09     333333               s        from this set only one ident should come which              
    10001    02/01/09     333333               s        has latest status
    10001    02/02/09     333333               s
    10001    02/03/09     333333               s
    10002    02/09/09    111111                s
    10002    02/08/09    222222                p
    10002    02/07/09     333333               s      from this set only one ident should come which              
    10002    02/01/09     333333               s      has latest status
    10002    02/02/09     333333               s
    10002    02/03/09     333333               s
                  and so on.............
    from one set of ident one record should come in this way so many set of idents will be there.
    My question is how to form the select query

    Hello Chandra,
    Your solution lies in the concept of Control-Break Statements.
    AT NEW..
    AT END OF
    AT LAST, etc.
    DATA:
      BEGIN OF fs_table,
        zident TYPE char20,
        date   TYPE sy-datum,
        time  TYPE sy-uzeit,
        status TYPE C,
      END OF fs_table.
    DATA:
            t_table LIKE
    STANDARD TABLE
                  of   fs_table.
    " Populate the data in Internal Table.
    " While displaying data.
    LOOP AT t_table INTO fs_table.
      AT NEW status.
         WRITE:/ fs_table-status.
      ENDAT.
         WRITE:/ fs_table-zident,
                      fs_table-date,
                      fs_table-time.
      ENDLOOP.
    You can also use ON CHANGE OF fs_table-status, instead of AT NEW, if you get ***//* for date and time.
    With this, status will be displayed once and remaining will following under it.
    If you want everything to be displayed on change of each new field, apply that to every field,
    eg:
    AT NEW zident.
       WRITE:/ fs_table-zident.
      ENDAT.
    AT NEW date.
       WRITE: fs_table-date.
    ENDAT.
    .. so on and so forth.
    This is just a test-case, try using the control break statements.
    Hope it helps you.
    Thanks: Zahack

  • Wildcard in select query

    Hi,
    I am having one requirement,
    In my report i need to give cost centre in
    selection screen(select-options).
    Based on that i need to fetch WOGBTR from COEP table.
    eg : cost center i need to give like this
    imagine
    select-options : s_kostl for csks-kostl.
    now in s_kostl-low if i give value klnnn12345* and
           in s_kostl-high if i give value klnnn12350*
    now based on these input i need to write a select query in
    the program to fetch the records from COEP table.
    can any body please let me know how to code where condition
    in the select query in this case...
    Thanks  and regards,
    vasu

    Hi Vasu,
    you will reach information of the field WOGBTR in the table COEP over the criteria costcenter (KOSTL).
    The costcenter isn't an attribute of table COEP, but of table CSKS.
    The link between CSKS and COEP is the attribute KOKRS.
    So you have to do the following steps:
    1. Get the values of KOKRS from table CSKS over your select-options s_kostl (... where kostl in s_kostl)
    select * into table <itab_csks> from csks
    where kostl in s_skostl.
    2. Build a new rangetable  for KOKRS
    loop at <itab_csks> into ls_csks.
    lr_kokrs-sign = 'I'.
    lr_kokrs-option = 'EQ'.
    lr_kokrs-low = ls_csks-kokrs.
    collect lr_kokrs into lrt_kokrs.
    endloop.
    3. Start a new query for the table COEP with your new tangetable for KOKRS
    Select * into table <itab_coep> from coep
    where kokrs into lrt_kokrs.
    now you have the information you needed.
    Greetings
    Joerg

Maybe you are looking for

  • Buying songs to convert in Ringtones

    I bought some songs in the iTunes store that were marked as ringtone capable. I wanted to make a ringtone, but the ITunes (software) gave the following message: THIS SONG CANNOT BE MADE INTO A RINGTONE - the song - CAN NO LONGER BE MADE INTO A RINGTO

  • Windows 8 - No Flash Player Works

    Windows 8 doesn't allow Adobe Flash PLayer to work at all. Whats the deal?

  • Calculating YTD column in OBIEE 11g

    Hi , Here is my requirement : I have to create a report , which shows several measure values (revenue , gross mergin etc as rows of a pivot table) against a certain period (Months , i.e. Jan , Feb ....etc as columns of a pivot table ) . Taking period

  • Columns with same height in a repeating frame

    Hi!, In Report Builder I have a report with a repeating frame with three fields. Each field is a colum in frame. First field always have two lines and second and third only have one line. I want second and third fields have the same height as first,

  • "Unable to find PPoE server" - worked fine last night!

    *The set up:* Belkin ADSL modem (with ethernet jack) TC 500gb MacBook Air I have the Belkin ADSL modem (not a router) connected to the Time Capsule using an ethernet cable. When I set up the modem, I used a web based interface to enter the username/p