Select is not working with date range .

In my program doing a simple select from cdhdr table based on date range i have created but it fails .
here is the code I am using.
SELECT SINGLE *   FROM tvarv  INTO  wa_tvarv WHERE name EQ 'Z_SERVICE_CHANGE_DATE' .
move wa_tvarv-low to v_date .
move wa_tvarv-high to v_time .
fill the date range
*write v_date to ra_date-low  .
    move  v_date TO ra_date-low  .
*write sy-datum to v_dateh .
    ra_date-high = sy-datum  .
    ra_date-sign = 'I' .
    ra_date-option = 'BT' .
    APPEND ra_date .
fill the time range
    move v_time  TO  ra_time-low .
*write sy-uzeit to v_timeh .
    ra_time-high = sy-uzeit  .
    ra_time-sign = 'I' .
    ra_time-option = 'BT' .
    APPEND ra_time .
*Get all the records from cdhdr table for contract i.e VERKBELEG .
    *SELECT objectclas objectid FROM cdhdr INTO CORRESPONDING FIELDS OF TABLE it_cdhdr*
                               *WHERE objectclas = 'VERKBELEG'*
                               *AND  udate IN ra_date*
                               *and  UTIME in ra_time .*
above select is creating Problem .
Help will be Appreciated .

I wonder if you have a conflict between your date and time.  If you want all records between 3PM and 3AM the next day, that will cause a conflict.  That's because the first date should be "before" the second date, wthin a given day.
To troubleshoot, why don't you try taking the time part out of the SQL?

Similar Messages

  • FMLA standard hours infotype 2001 not editable when working with date range

    Hi All,
    The issue described below arises at the Juncture between FMLA Workbench and Absence Infotype IT2001.
    When we try to tie a FMLA Request to Absences the process takes us to the Infotype PA2001 screen wherein we would like the Absence Hours Field to be Editable so that we could enter Hours (less than full day).
    The process works fine when the FMLA absence is for a single day, i.e. if an employee availed a FMLA leave on a day (whether full day or part of a day) the Absence Hours field (PA2001-STDAZ) is editable and the user can enter any number of hours of his choice.
    But the process faces a glitch when the FMLA absence spans over a period of time (i.e. an employee availed a FMLA leave for over a period wherein each day may or may not be a full day absence, in this scenario it would be best if the system allow the user to enter Absence Hours so that the User could enter the exact number of Absence hours correctly. But unfortunately, when an absence spans multiple days the Infotype 2001 screen dynamically turns the Absence Hours field (PA2001-STDAZ) uneditable (grayed out) and the system forcefully enters hours equal to the sum of the work schedule hours for each working day covered in the span of period for which we are trying to enter FMLA Absence Hours.
    I have used the USER EXIT and the BADI route and tried to change the Screen Table to editable, but with no luck.
    Wondering, if anyone of you could help me out of this glitch.
    Thanks in Advance.

    Hi,
       I don't think this is possible.
       You cannot make the Hours field editable for a date range.
       I don't think its feasible to enter absence hours on a day basis given a date range.
       Better think of creating a custom infotype to enter absence hours .
       (Design would be : based on the date range entered , say 01.01.2011 to 05.01.2011 , you should get five input enabled
         boxes(dynamically) for five days to enter the absence hours , this is not possible in standard infotype ..... )
    Regards,
    Srini.

  • Select statment not working with variables

    Hi experts,
    Iam trying to select some data using the follwoing code
    with radio buttons r6 & r7.
    If r6 selected,it takes from parameter and
    if r7 selected it takes from select options...
    data: l_datbi type a005-datbi,l_datab type a005-datab.
        if r6 = 'X'.
          l_datbi = pvalid.
          l_datab = pvalid.
        elseif r7 = 'X'.
          l_datab = svalid-low.
          l_datbi = svalid-high.
        endif.
    select vtweg matnr knumh datbi datab                      into corresponding fields of i_itab
                          from A004
                          where kappl eq 'V'
                          and kschl eq pkschl
                          and vkorg eq pvkorg
                          and vtweg in svtweg
                          and matnr in smatnr
                          and datab le l_datab    ####### 
                          and datbi ge l_databi.  #######
    This select statement is not working.
    It is taking only one value at a time.(r6 value or r7value)
    What might be the reason...?
    reward gurarenteed
    maggy

    Hi,
    You are trying to equate your low value with end date and high value with start date..
    The correct logic will be,
    data: l_datbi type a005-datbi,l_datab type a005-datab.
    if r6 = 'X'.
    l_datbi = pvalid.  "Start Date
    l_datab = pvalid.  "End Date
    elseif r7 = 'X'.
    <b>*l_datab = svalid-low. "Wrong</b>
    <b>l_datab = svalid-high. "Right</b>
    <b>*l_datbi = svalid-high.  "Wrong</b>
    <b>l_datbi = svalid-low.  "Right</b>
    endif.
    select vtweg matnr knumh datbi datab into corresponding fields of i_itab
    from A004
    where kappl eq 'V'
    and kschl eq pkschl
    and vkorg eq pvkorg
    and vtweg in svtweg
    and matnr in smatnr
    and datab le l_datab #######   "This also doesnt look
    and datbi ge l_databi. ####### "right to me, please check
    Hope this helps..
    Sri

  • C3 - Multiple Selection is not working with pencil...

    Hello Guys,
    Pencil key is not working for multiple selection while ctrl key is working.
    Can any1 guide me how to do muliple selection......

    There was an issue with messaging in the original software on the C3, so make sure that you are up-to-date. To check your software version try *#0000#
    Latest software release for Nokia C3-00 is 08.63
    Your service provider may not have the latest nokia version available, but make sure you have the most recent you can get.
    Menu > Settings > Phone> Phone Updates > Downl. phone software

  • Widows Search not working with Data Deduplication?

    Hi,
    I noticed that many files were missing when searching for them on my Server 2012 Fileserver.
    After some troubleshooting I noticed that the ones missing, had a Size on Disk of 4KB and the "SparseFile" and "ReparsePoint" (PL) Flags set.
    So it looks like they were processed by the enabled Data Deduplication.
    Am I missing something here or is it really the case that deduplicated files cannot be indexed by windows search?

    BTW! "... and mounted those file hierarcies below. 5 reparse points" so I my case I had consolidated the users Space into 5 overall concepts on 1 volume each. In that way I had already reduced my use of volumes.
    So for now I can add a drive letter to each for trying to make Windows Search work.
    But guess I am going to stumble into the same issue then with Windows Search not supporting resparse points again ....because some of the volumes are deduped.
    Great experience as ever working with file virtualization in the Windows client, i.e. Liberaries. Just wonder why the heck MS did not improove that experience ...
    Right now, with Server 2012, find myself "hacking" again this year 2013 ... to try and make Windows work on some basic issues. All the Flex is starting to go away now ... here comes reality ... NOT WORKING.
    NTFS resparse points, long file names, etc. Great Flex! However in theory only. For real when everything is pulled together and the system receives its more or less complete configuration ... unsupported in Windows. Go hack it.
    Please stop doing just components test ... and do complete flight tests also. More hollistic tests please across constraints! With a focus in each test ... from 0 to a fully configured system.
    How can no support in Windows Search for resparse points in NTFS be a miss during introduction of libraries (Windows 7/2008 R2) and now during introduction of data deduplication (Windows 8/2012) ... during just internal tests at MS? And we all have to use
    libraries (thus a remote Windows Search index on remote shares in a domain setup) ... and now Windows 8 WinRT is even more dependent on libraries? How can that be overlooked - or such a basic thing receive no priority - and just get skipped? How can that happen?

  • FireFox Select List not working with Spry XML Data set.

    I am having a problem with FireFox.  I have a set of related select lists that allows a user to pick a state and then a market.  The work in all browsers except FireFox.  I'm totally stumped.  Here is the link. Any assistance greatly appreciated!
    http://myxpertise.pointinspace.com/create.php
    Thanks,
    Joe

    <span spry:region="dsCities dsStates dsStates" id="citySelector">
         <select spry:repeatchildren="dsCities" id="citySelect" name="citySelect" tabindex="5" >
          <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{name}" selected="selected" tabindex="5" >{name}</option>
          <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{name}" tabindex="5" >{name}</option>
        </select>
    that should be a spry:detailregion, and you have a double dsStates
    And when you are using multiple datasets inside a region, it might wise to prefix you template tags with the correct dataset
    {ds_RowNumber} => {dsStates::ds_RowNumber}

  • Sql command not working with date time??

    I am using my own sql query to fetch data in the sql command.
    Due to the problem I found - here is the basic example:
    The sql is:
    select to_number(to_date('10/11/2011 10:23:00','dd/mm/yyyy hh24:mi:ss') - to_date('10/11/2011 10:20:00','dd/mm/yyyy hh24:mi:ss'))  minu  from dual
    But I am not getting anything in Crystal Report tool!!
    In any sql tool I get results.
    When I am not using time part (hh24:mi:ss) :
    select to_number(to_date('10/11/2011','dd/mm/yyyy') - to_date('09/11/2011','dd/mm/yyyy'))  minu
    from dual
    I am getting data!!!!
    What is the problem??
    Initially I had it with parameters of type 'Date Time'
    Please, any one knows what the problem is?

    Hi,
    Sorry for the delay and thanks for answering.
    It was partial solution
    Moving to oracle driver, not (OLE DB), this specific one worked fine:
    select to_number(to_date('10/11/2011 10:23:00','dd/mm/yyyy hh24:mi:ss') - to_date('10/11/2011 10:20:00','dd/mm/yyyy hh24:mi:ss'))*100 minu from dual
    BUT
    When I tried to change one of the hardcoded values to be parameter of type 'Date Time' I couldn't pass the validation step - mostly the errors:
    "ORA 00900 Invalid sql statment"   and
    "ORA - 00907: Missing right parnthesis"
    No matter which format I used.
    Last version is:  
    select to_date('{?tsStartReport}','yyyy-mm-dd hh24:mi:ss') from dual
    Any idea why 'Date Time; is so problematic? How can I workaround it?

  • Select query not working with like & and operator

    Hi,
    The below is the select query which is used to select only the failed rollup jobs from DB table ( background jobs ) the status 'A' which means only the failed roll up jobs.
    select jobname status from v_op into table zjob_rollup where jobname like '%ROLLUP%'
                                                             or jobname like  'BI_AGGR%'
                                                             and status like 'A'.
    Right now my internal tables is picking the job name other than status A also.
    Can you please help.
    Note: Ps consider the performance of select query also.
    Thanks,
    Siva

    Hi,
    select jobname status
         from v_op
         into table zjob_rollup
         where ( jobname like '%ROLLUP%'  or jobname like  'BI_AGGR%' )
                      and status = 'A'.

  • IPhone 5 not working with data or won't send text messages

    Is it possible to get my phone replaced by verizon, my phone is not usable right now and I need it in case of emergency. On my LCD screen you can also see thin blue lines throughout; it looks like it is getting worse, is there anything I can do about this??

        Wow! Have not heard of an issue like that before! Let's get this figured out! Is the touchscreen responding to your touch? When did the lines appear? Does the phone have any signs of physical or liquid damage? Use think link to determine if it does, there is also a way to view the Liquid Damage Indicator in the phone http://vz.to/1xbpcqs
    SandyS_VZW
    Follow us on Twitter @VZWSupport

  • Selection color not working with table that has DefaultTableModel

    hi folks,
    I noticed if a table has a AbstractTableModel, when you select a row, by default the highlight color is light blue. However, if a table has a DefaultTableModel, even if you invoke table.setSelectionBackgroun(color) and table.setSelectionForefround(color), the highlight color stays invisible. is this a bug? what's the cause of this problem?
    thanks!!

    Read this section from the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#renderer]Using Table Renderers. Here is a simple example to get you started
        class SimpleRenderer extends DefaultTableCellRenderer
            public Component getTableCellRendererComponent(
                JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
                super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
                if (hasFocus)
                    setBackground( Color.cyan );
                else if (isSelected)
                    setBackground( table.getSelectionBackground() );
                else
                    setBackground( table.getBackground() );
                return this;
        }

  • SELECT * CONNECTION not work

    Hi,
    It is found that SELECT * does not work with CONNECTION. For example, I use the following statement to retrieve data from another system and an error states that SQL error 207 when accessing table 'MARA'. 'Invalid column name  'ANIMAL_ORIGIN''. If columns are specified, data can then be retrieved. The SAP BASIS version is 7.31.
    SELECT SINGLE *
          INTO CORRESPONDING FIELDS OF ls_mara
        FROM MARA
                   CLIENT SPECIFIED
                   CONNECTION ('G01')
    WHERE MANDT = '100'.

    Hi TS,
    You gave the answer already, but look at the HELP:
    To allow the Open SQL command to be run for the secondary database connection, the table definitions in the connection must be the same as those in the standard database.
    Cheers,
    Custodio

  • "Next" and "Previous" functionality on UIX tables not working with 10g

    With new release of JDeveloper(10G), the "Next" and "Previous" navigation buttons/links on UIX tables are not working. I tried different approaches:
    1. It does not work with Data Controls built from Java Beans or from TopLink.
    2. I tried without using Data Controls and it still does not work.
    I shows "Next" and "Previous" buttons on the page. But it shows all records on the page rather then showing limited records. Say for example if the block size is 5 and total number of records are 15, it shows all 15 records in the table but the "next" and "Previouds" button would say "1-5 of 15".
    Did any of you observe the same behaviour?

    Hi Shital -
    Thanks for the additional info...
    When I said that the total number of records is 15, I
    meant that my tableData's DataObjectList contains 15
    entries. (In case of DataControls you don't even use
    DataObjectList, but for my non data control
    applications I used DataObjectList). You are saying
    that If I want to display only 5 records per page
    then I will need to provide a DataObjectList with
    five items. Then for next five records from 6-10 I
    will have to program in such a way that my method
    call returns 6-10 records.That's correct. In the case where you are explicitly providing data to the table via a DataObjectList, you need to feed the data to the table in page size blocks - and you also need to handle the table's goto event to scroll the table to the next/previous block of data.
    In previous version of
    UIX(2.1.7) I never had to program for next and
    previous buttons. UIX tables used to take care of
    that. That's why I am so surprised.It sounds like you must have been using the <bc4j:table> component. Is that the case?
    Getting back to your original issue...
    1. It does not work with Data Controls built
    from Java Beans or from TopLink.I believe that this is a bug in the preview release - and I'm fairly sure this will be addressed by production. In production, ADF should automatically handle wiring up table scrolling for you when binding your table to a data control - whether the data control is implemented via JavaBeans, Toplink, or BC4J. I believe that in the preview release, scrolling only working when binding to a BC4J data control.
    Andy

  • Data Services- The job server you selected is not working

    Long Text:
    After logging in to the Data Services designer,when try to run a job it shows error -The job server you selected is not working
    Latest Software version -BODS 4.0 SP2
    Reproduce Steps:
    1. Double click on the Project from repository, it will display the project in Project area.
    2. After that it will display all the jobs under the project.
    3.Right click on the job and try to execute, then it will display the "Execution Properties" windows.
    Here the we can the default Job Server has been selected.
    4. Try to click ok to execute the job and then we get the error-"The job server you selected is not working"

    Hi
    Please contact your Data services administrator to check on the server why the job server is not working.
    There might be several issues like connectivity with the repository, access details , mapping in the management console etc.
    And let us know the exact issue.
    Regards
    Puneet

  • GPS does not appear to work with data-roaming off and no wi-fi network

    I have been using an application called imarkmyspot to produce way-points for synchronising with my camera. When I am in my home country this works fine and a GPS location is found quickly.
    I've recently been abroad and had data-roaming turned off to avoid high expense. The point is that in this situation the GPS does not work (with imarkmyspot or Goggle Maps) unless I can access an open wi-fi network.
    So my question is, is this correct? Does GPS only work with either data access on or when within range of an open wi-fi network.
    If this is feature (bug) of the iPhone then this makes applications such as imarkmyspot rather useless when travelling. Alternatively it could be imarkmyspot that has this problem of course. But I'm quite sure Google Maps did not work either in this situation either.

    The iPhone's GPS does work without a data connection.
    Two weeks ago on a work-related trip I knew I'd be traveling a rural highway that would leave me without data/voice from any source for at least 45 minutes (no GSM service). Before leaving a city with data, I zoomed out using Google Maps far enough to show most of my route, then "nudged" the map so the application wouldn't try to get a data update for the map. I simply used the top power button to turn on and off the screen. The iPhone and GMaps tracked me through for the entire blacked-out section of my trip - I made sure the device had a decent view of the sky and it got a fix and nailed the location within a few seconds.
    Ironically, I'm returning that device in the next few hours for an exchange. The GPS hardware, it seems, has failed about a week ago - the device gets A-GPS fixes now (it shows the nearby 3G and EDGE towers), but won't lock in for more than a second or two. My iPhone's GPS worked, and now it doesn't - AppleCare told me my GPS hardware has failed - and you're may be exhibiting the same failure.
    Some A-GPS devices use their sources to get close by - like my TomTom GO and the ephemeris files it grabs from their servers to get updates on where satellite locations are - and then use the on-board chip to nail the device's position. From what I understand of the iPhone's assistance mechanism, the data tower's and Wi-Fi physical location needs to be correct and available in an accessible database somewhere - my iPhone was showing me near Houston TX (2200 mi/3500 km distant from my actual location) when using 3G data until the data source was updated.

  • I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data is not.) but

    I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data does not.)

    HI Dave,
    I'm surprised you get no message when you attempt opening the Excel document in Numbers.
    I'm assuming Numbers 3.1, since you are running Mavericks.
    Does the Numbers file that opens show any content?
    Does it contain a table?
    How large?
    Does it contain more than one tab (indicating more than one sheet)?
    Do those other tabs contain a table?
    Have you checked those tables for data content?
    There have been cases in the past of imported documents opening with white text on a white background, giving the appearance of containing nothing. Check for this by selecting a block of cells, then applying a Fill colour or a Text colour using the Format button (paintbrush).
    I'd also suggest attempting to open the Excel files using LibreOffice, which can be downloaded from the linked website.
    Regards,
    Barry

Maybe you are looking for

  • My Mac mini keeps crashing when i try to access the App Store

    I tried todelete som apps my mac mini keeps crashing and i need access to the app store it started january 1 2014 what do you thik is happening this is what i get. Process:         App Store [367] Path:            /Applications/App Store.app/Contents

  • Office Web Apps - Office Web Apps was unable to find the specified certificate

    Hello, Let me start by saying I did not see a forum listed for Office Web Apps and figured the SharePoint forum would be the second best place to post this.  With that said, here's my issue... I installed OWA 2013 on a Windows Server 2012 (not R2) VM

  • El-ignored / Tomcat 5.5.4

    By default, my Tomcat 5.5.4 does not evaluate EL expressions in JSPs. So I've put the following into my web.xml: <jsp-property-group>     <url-pattern>*.jsp</url-pattern>    <el-ignored>false</el-ignored> </jsp-property-group>But Tomcat still does no

  • How to restate the ytd after an update??

    I have a situation that I need to tackle to update b_id column and restate the YTD charge in a table. Can some one help me on how to use analytical function to update and restate the ytd in a table. Step 1: Update in Column b_id to replace C4000 with

  • Online material for tablespace and backup

    Hi All, As i am a beginner, can anyone please suggest me any online link for better understanding about tablespace and backup for a beginner. Thanks in advance Arun