Retriving unread data!!

hello experts,
        I have problem in retrieving data from select option . Actually pass the value to select option and retrieve the data.
if i pass equi-sernr   . those which is available show available and which is not available show not available.
eg..
given select option : 1 to 10
if 1 is find in table it show available and 2 is not in table show unavailable.
sernr                                        status
1                                         available
2                            unavailable.
3.....
4.....
waiting 4 reply
kamal kishore
Moderator Message: These forums are NOT a subsitute for proper classroom training. Read the Rules of this forum to avoid getting your user ID deleted.
Edited by: kishan P on Dec 27, 2010 1:19 PM

Hi,
     First get all entries from the table using select option.
     select * from equi into table it_equi where sernr in s_sernr .
     now write the below to fill in the missed entries.
     while s_sernr-low < s_sernr-high.
       read table it_equi with key sernr = s_sernr-low.
       if sy-subrc <> 0.
         it_equi-sernr = s_sernr-low.
         it_equi-status = 'Unavailable'.
         append it_equi.
       else.
           it_equi-status = 'Available'.
           modify it_equi index sy-tabix.
       endif.
       s_sernr-low = s_sernr-low + 1.
     endwhile.
       read table it_equi with key sernr = s_sernr-high.
       if sy-subrc <> 0.
         it_equi-sernr = s_sernr-high.
         it_equi-status = 'Unavailable'.
         append it_equi.
       else.
           it_equi-status = 'Available'.
           modify it_equi index sy-tabix.
       endif.
    sort it_equi by sernr.
Regards,
Srini.
Moderator Message: You are being warned a second time today against answering basic questions. Points unassigned
Edited by: kishan P on Dec 27, 2010 1:21 PM

Similar Messages

  • How to retrive relational data from an XMLType column in Oracle 10g R2

    Hi
    I want how to retrive the data which is in XML document in an XMLColumn in a Table(or an XMLTable which has the XML Document). This XML Document has to be Queried with XQuery as a Relational data(not an XML Document).
    If any body has some ideas please share it across ASAP.
    please share an example for this because i am new to this XQuery.
    Thanks in Expectation,
    Selva.

    Got it working now. I used the 'extract' function in my select statement, but had to add the .getStringValue() fuction. The extract function, just by itself, returns an XMLDocument type. The call for the column in the SQL statement looked like this.
    extract(XML_CONTENT, '/ROOTOBJECT').getStringVal() xml_content
    Thanks so much for your help. Problem solved!

  • How to retrive the data from a sqlite file(.db3) in windows phone 8.1(runtime)

    hey guys
    i installed the sqlite and sqlite-net as requested in other answers i found, changed to x86, and add the .db3 file in my project.
    but the problem is how to retrive the data that already in the file( i am not creating any table or data in the app, just read)
    all the answer i found is to create a table first and then read the table, i tried to skip the step of creating a table, and read from the table directly, but failed with " no such table", by the way, i set the property of the .db3 file as "content",
    "copy if newer"
    can anyone please help? i appreciate that !

    Hello,
    From your description, you want to read data from available sqlite file. When you add the sqlite file into your project, you need to change the sqlite file build action to content. After deploying to device, the sqlite file is located in installation folder,
    you need to copy that file into storage folder before reading data. Please try the following code snippets.
    private async void Button_Click_9(object sender, RoutedEventArgs e)
    //check if file exists in storage folder, and then copy to local storage
    bool flag = await FileExistsAsync("Data.db3");
    if (!flag)
    var folder = await Package.Current.InstalledLocation.GetFileAsync("Data.db3");
    await folder.CopyAsync(Windows.Storage.ApplicationData.Current.LocalFolder);
    // open sqlite and read data
    public async Task<bool> FileExistsAsync(string fileName)
    try
    await Windows.Storage.ApplicationData.Current.LocalFolder.GetFileAsync(fileName);
    return true;
    catch (FileNotFoundException)
    return false;
    Regards,
    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.

  • A SWF Tag of type 75 contains 10 bytes of unread data at the end of the tag at byte offset 1762

    When building with Flash builder 4.7 I get two warnings I can't seem to track down.
    Those are
    "A SWF Tag of type 75 contains 10 bytes of unread data at the end of the tag at byte offset 1762" The other
    "A SWF Tag of type 75 contains 5464 bytes of unread data at the end of the tag at byte offset 797163"
    No file is pointed out or anything else to help.
    Any ideas what to look for, why this is a warning, possible implications & what to do?

    This is one output after running a variation of the script, but I get this   <!-- unknown tag=63 length=16 --> on all of the libraries
    Here is a link to the swc for further inspection https://dl.dropbox.com/u/154782/GoCoUtil.swc
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Parsing swf file:/Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.345990/AIRSDK/bin/GoCoUtil.swc.swf -->
    <swf xmlns="http://macromedia/2003/swfx" version="14" framerate="24.0" size="10000x7500" compressed="true" >
      <!-- framecount=1 length=12927 -->
      <FileAttributes useDirectBlit="false" useGPU="false" hasMetadata="true" actionScript3="true" suppressCrossDomainCaching="false" swfRelativeUrls="false" useNetwork="true"/>
      <Metadata>
            <![CDATA[<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns:dc='http://purl.org/dc/elements/1.1'><dc:format>application/x-shockwave-flash</dc:format><dc:title>Adobe Flex 4 Application</dc:title><dc:description>http://www.adobe.com/products/flex</dc:description><dc:publisher>unknown</dc:publisher><dc:creator>unknown</dc:creator><dc:l anguage>EN</dc:language><dc:date>Sep 20, 2012</dc:date></rdf:Description></rdf:RDF>
    ]]>
      </Metadata>
      <EnableDebugger2 password="NO-PASSWORD" reserved="0x1975"/>
      <!-- unknown tag=63 length=16 -->
      <ScriptLimits scriptRecursionLimit="1000" scriptTimeLimit="60"/>
      <SetBackgroundColor color="#FFFFFF"/>
      <ProductInfo product="FLEX" edition="NONE" version="4.6" build="23201" compileDate="9/20/12 12:41 PM"/>
      <DoABC name="com/gogogic/common/util/interfaces/IParsableList"/>
      <DoABC name="_5655ee2c6f5749799717c751ad05c55879a42026a02d38e5e206aab452dbcc6f_flash_display_Spr ite"/>
      <DoABC name="com/gogogic/common/util/ShallowCloner"/>
      <DoABC name="com/gogogic/common/util/GoCoDataUtil"/>
      <DoABC name="com/gogogic/common/util/PropertyParseError"/>
      <DoABC name="com/gogogic/common/util/interfaces/IDataChange"/>
      <DoABC name="com/gogogic/common/util/vo/DataChangeVO"/>
      <DoABC name="com/gogogic/common/util/GoCoUtilVersion"/>
      <DoABC name="com/gogogic/common/util/event/DataChangeEvent"/>
      <DoABC name="com/gogogic/common/util/PropertyParser"/>
      <SymbolClass>
        <Symbol idref="0" className="_5655ee2c6f5749799717c751ad05c55879a42026a02d38e5e206aab452dbcc6f_flash_displa y_Sprite" />
      </SymbolClass>
      <ShowFrame/>
    </swf>

  • Retriving of data from different tables

    retriving of data from different tables depening of the primary key  this key field is there in all tables   if it is there in one v table it should continue to other tables otherwise it should get exit from that it should display information message or otherwise success  message if it is there in all tables .

    Im writing the concept, just check it.
    SELECT * from kna1 into lt_kna1.
    if sy-subrc eq 0.
       selest * from lfa1 into lt_lfa1
    for all entries in lt_kna1.
    endif.

  • Retriving the data

    Hi
    Can we retrive  the data from multibple cubes to list cube
    Thanks

    hi,
    as=nullwhat's the variable as ?
    your code seems to be correct.
    Plz, post the hole error message

  • Can we retrive the data from Maintainence view

    Hi Guys,
    Can we retrive the data from Maintainence view...
    Thanks,
    Gourisankar.

    Hi,
    Data can be retrived only from following type of views:
    Projection view
    Database View

  • Root disk craches how to retrive the data from ZFS file systems.

    Hi Friends,
    The solaris 10 OS (root disk) is crached.i have configered execpt root disk to all disks for ZFS file systems.We using to application.Now any possble to retrive the data.
    Server model - V880
    Pls help me.
    Advance thanks.

    If the OS wasn't on ZFS, then just rebuild the server, hook up the drives and run 'zpool import'. It should find the pool on the disks and offer it up to be imported.
    Darren

  • Unreadable Date (pics) iPhoto 08 Vers. 7.1.3

    Tried to import pics into iphoto 08 from harddrive.
    Several pics could not be imported "unreadable data!"
    There is no other reasen shown...
    Thank you for any help!!!

    Welcome to the Apple Discussions. See if you can open those photos with Preview. If so, then do a Save As so you create a new file. Then try importing that file into iPhoto.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • SQ01:- Error in retriving the data from more than 1 additional fields

    hi Frnds,
    i have added three addidtional fields in the infotype through the transaction SQ02. when i am try to create a new new query using the transaction SQ01 then if i select all three new fields individually data is retrived properly but if i selects more thn one field thn it is throughing an error.
    can any one please help me in that?
    Thanks in advance.
    Regards,
    Khushy

    Hi,
    and if you try it with an add. strucure (which inludes your 3 fields) ?
    A.

  • Help! How to retrive the date and time from MySQL 'datetime' type

    In my MySQL database, I have stored a data type 'DATETIME' as 20070412093012 which is interpreted as 2007-04-12 09:30:12, How to using Java method to retrive it from data base???
    like resultSet.getDate('datetime')????or what is the method?

    Have a look at the API documentation for ResultSet. Which of the methods documented there do you think might be what you need? If you can't tell which is the right one, then post your candidates here and ask a question about them.

  • Retriving xml data

    i have xml structure.
    <?xml version="1.0" encoding="utf-8"?>
    <ul>
        <li><a href="http://www.google.com">Google</a></li>
        <li><a href="http://www.hotmail.com">Hotmail</a></li>
        <li><a href="http://www.nepalNews.com">Nepal News</a></li>
    </ul>
    I have to retive data of "<a href="http://www.google.com">Google</a>" only . how could i retrive it. I have tried with this code
    trace(myXML.li[0]); But it show value only. I need whole "<a href="http://www.google.com">Google</a>". How can I we retrive this types of data from xml

    i know.  but you need to use cdata nodes to store data in that format in xml:
    <?xml version="1.0" encoding="utf-8"?>
    <ul>
        <li><![CDATA[<a href="http://www.google.com">Google</a>]]></li>
        <li><![CDATA[<a href="http://www.hotmail.com">Hotmail</a>]]></li>
        <li><![CDATA[<a href="http://www.nepalNews.com">Nepal News</a>]]></li>
    </ul>
    now parse this xml.

  • Retriving of data

    how to retrive data lost while updation the i phone Please help special contacts

    If the phone has been used as designed, contacts would be synced to a supported application on the comptuer or a cloud service.  Simply sync them back.

  • Unreadable data

    Hi,
    My application connects through JDBC to a MySql.
    The problem is that althgough mysql can store data that contains cyrillic characters (the cp1251 charset is set for the DB columns), when I try to get these values from database, i get only unreadable characters.... I set the charsetEncoding to cp1251 in the connection string, but it didn't help. I also tried with CharsetDecoder, but it did't help also ... I use JBuilder. The ResultSet getString("COLUMN_NAME") method returns unreadable characters "????????" ......
    10x in advance.
    Peter

    hi all
    i have the same problem and cant find the solution
    im working in arabic application and i need your help
    my problem is :
    when i storing data into access database its appers like "&#1605;&#1581;&#1605;&#1583; &#1580;&#1605;&#1575;"
    im using <%@page pageEncoding="windows-1256"%> encoding
    and when i priview what i store its appear ????????
    what can i do to store arabic data as it in database
    thanks alot

  • How to retrive table data in form

    Hi all,
    I want to retrive whole table data in forms , just by passing table name.either through a prcedure or function. is it possible to do this?
    Thanks in advance

    Hello,
    Pls give us the information about the version of database and forms you are using.
    it is possible to do so,provided you are aware of maximum no of columns(i.e no of tables which you use) and there datatypes before hand and also you have to use visible property extensively to show and hide the columns
    Regards
    Mohan Partha

Maybe you are looking for

  • Moving an iTunes Music folder that's outside of iTunes (Library) folder

    My music is stored on my external hard-drive, but the iTunes folder (with the library and .xml file) is in my user "Music" folder on the main HD. I want to store more things on the external to make room on my HD, but I want to make some folders to ke

  • How do i use classloaders to create singletons

    I have some code that correctly creates a singleton because the code runs within a clients vm , and there should only be instance of the class per user. But for testing purposes I would like to mimic two users, to do this they each require their own

  • How to make auto recovery from error while doing project in Adobe Photoshop cc?

    i got error from from Photoshop CC while doing work unable recover,back if it open again

  • Can't open Word or Excell attachments

    Hi,    I am suddenly unable to open any Word or exell attachments!   PDF's are all ok. I am using the latest Chrome brower   Windows 7  Offfice 10  64bit processor.  I have a bt.com email. The docs open ok in my iphone. when I try to open a Word atta

  • Setting and process required for using COGI

    Hi Gurus, At present we are using scenario,if  child parts are not available system will not allow production confirmation.But it leads customer line stoppage.Now I want to use scenario that we can confirm production in absence of child part and we a