How can i put below  table into internalt table

how can i put below  table into internalt table and want to add both internal table into 3rd internal table.
SELECT  * FROM J_1IEXCHDR  WHERE STATUS = 'P'.
WRITE: / J_1IEXCHDR-LIFNR,
          J_1IEXCHDR-DOCNO,
          J_1IEXCHDR-EXYEAR,
          J_1IEXCHDR-BUDAT.
SELECT * FROM J_1IEXCDTL  WHERE TRNTYP = J_1IEXCHDR-TRNTYP
                          AND DOCYR  = J_1IEXCHDR-DOCYR
                          AND DOCNO  = J_1IEXCHDR-DOCNO.
   WRITE: / J_1IEXCDTL-EXBAS,
            J_1IEXCDTL-EXBED,
            J_1IEXCDTL-RDOC1,
            J_1IEXCDTL-ECS.
ENDSELECT.
ENDSELECT.
please help
thanks in adavaced.

hi laxman,
use for all entries and get the required data.
SELECT * FROM J_1IEXCHDR into table itab1 WHERE STATUS = 'P'.
if not itab1[] is initial.
SELECT * FROM J_1IEXCDTL into table itab2 for all entries in itab1 WHERE TRNTYP = itab1-TRNTYP
AND DOCYR = itab1-DOCYR
AND DOCNO = itab1-DOCNO.
endif.
so itab2 will have the common records...This will solve ur problem..
also u can do other method declare an final internal table with the common fields of the two internal table.
then after getting data in itab1 and itab2.
loop at itab1.
move-corresponding itab1 to itab3.
read table itab2 with key <give the fields> = ......
if sy-subrc eq 0.
move-corresponding itab2 to itab3.
endif.
append itab3.
endloop.
Regards,
nagaraj

Similar Messages

  • How can i put one scene into JPanel of the swing?

    how can i put one scene into JPanel of the swing?

    980571 wrote:
    ty for the information but i have a problen with JFXpanel when i try to into a panel it doesnt display insideSorry to hear that. If you want assistance with the code, feel free to post the relevant parts of it. Make sure to use \ tags when you do.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can I put my bookmarks into the sequence I want, alphabetical or otherwise?

    How can I put my bookmarks into the sequence I want, alphabetical or otherwise?

    http://kb.mozillazine.org/Sorting_bookmarks_alphabetically <br />
    http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox

  • How do I put this output into a table ?

    I query a table and output using the following :
    <cfoutput query="qryAreas"
    group="state">#state#<br>
    <cfoutput
    group="city"> #site#<br><cfoutput>  #zipcode#<br></cfoutput><p>
    </cfoutput>
    </cfoutput>
    Since this is dynamic, the output gives me one column all the
    way down to the end of the page/screen.
    How do I dynamically output this into a table with two or
    three columns, displaying the same data as above ?
    I can probably do individual queries and put each one into a
    <td> but there has to be a better way to do this
    dynamically.

    My current output, without table, list the first state, then
    the first city under that state, then all zipcode for that city. It
    then list the second city for that state and all zipcodes for that
    city, When all the cities are exhausted for that state, it skips a
    line and then lists the next state, city, etc., and starts the
    process all over again. It gives me one column to the end of the
    screen.
    So for each td, I would like to have the state, the cities
    and zipcode, then the next td would have the next state, all cites
    and zipcodes, etc. I would not know how many states are in the
    table, so each td should contain a state.

  • How can I put my system into StandBy Mode?

    Hi
    I am not able to put my system into stanby mode.
    How can I do that?

    Hi
    As Ivan said you can use these two options.
    Furthermore I would recommend checking the settings in the Toshiba power saver (if is installed)
    Possibly you have to activate this option before using.

  • How can I put the signature into the data file.

    Hi all,
    I want to put the signature into the data file, mean the data file will be on the top and the signature will be at the buttom.how can i do that?
    Thanks.
    example:-
    dataFile.txt
    Name=...
    Address=...
    Signature=6A07C70E....123FEAB(Hex)

    Thanks for your reply.
    First, i have a keypair (public key and private key).
    I use the private key to initialize the Signature and
    use the Signature to sign a data file ( dataFile.txt) .
    So when i need to comfirm the data file not being modify
    I have to verify the data file with the Signature and the public key.
    I hardcoded the public key in my program so my client (receiver of data)
    need only the Signature file and the data file (2 files).
    So how can i combine the Signature file and the data file into 1 file?

  • How can i put a file into blob(using sun.jdbc.odbc.JdbcOdbcDriver)

    Hi
    i tried to put a file into blob , but got a problem.....
    My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
    a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
    //Statement stmt2=null;
    //Resultset rs2;
    //opa1 is the blob data
    void saveBlobTableToDisk(Connection con) {
    try {
    stmt2=con.createStatement();
    sqlStr2="SELECT * FROM emp3 where id=1004";
    rs2=stmt2.executeQuery(sqlStr2);
    while (rs2.next()) {
    Blob aBlob=rs2.getBlob("opa1");
    i got the exception :
    " null
    java.lang.UnsupportedOperationException
         at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
         at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
         at test3.Frame1.<init>(Frame1.java:26)
         at test3.Application1.<init>(Application1.java:5)
         at test3.Application1.main(Application1.java:8) "
    and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
    Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
    I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
    Or i must install oracle jdbc driver ?
    Thanks.

    My guess here is that Sun's JDBC-ODBC bridge doesn't handle the BLOB datatype. Most ODBC drivers don't support that datatype, so I wouldn't expect the bridge to.
    Is there a reason that you can't use the Oracle driver?
    Justin

  • How can i put a file into blob using jdbc !?

    Hi
    i tried to put a file into blob , but got a problem.....
    My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
    a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
    //Statement stmt2=null;
    //Resultset rs2;
    //opa1 is the blob data
    void saveBlobTableToDisk(Connection con) {
    try {
    stmt2=con.createStatement();
    sqlStr2="SELECT * FROM emp3 where id=1004";
    rs2=stmt2.executeQuery(sqlStr2);
    while (rs2.next()) {
    Blob aBlob=rs2.getBlob("opa1");
    i got the exception :
    " null
    java.lang.UnsupportedOperationException
         at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
         at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
         at test3.Frame1.<init>(Frame1.java:26)
         at test3.Application1.<init>(Application1.java:5)
         at test3.Application1.main(Application1.java:8) "
    and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
    Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
    I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
    Or i must install oracle jdbc driver ?
    Thanks.
    D.T.

    My guess here is that Sun's JDBC-ODBC bridge doesn't handle the BLOB datatype. Most ODBC drivers don't support that datatype, so I wouldn't expect the bridge to.
    Is there a reason that you can't use the Oracle driver?
    Justin

  • How can I put line number into JTextPane?

    Most editors has ability that shows line numbers begining of each lines.
    The line number doesn't effect any content in the editor, however.
    I'm using JTextPane for editor, and I want to show line number for each line.
    How can I do this?

    have a look at
    http://forum.java.sun.com/thread.jsp?forum=57&thread=258176
    ?

  • How can i put my Apps into digital publishing gallery?

    I published my app since 19-09-2011 but I can not found my app in Digital publishing gallery (http://blogs.adobe.com/digitalpublishinggallery/all-apps)
    I try to use the form on the right to search but search results is 0.
    How can I find my app in this page?
    Any suggestions?

    Did you set the status of your app in Viewer Builder?

  • How can I Insert a BLOB into a Table from Java?

    I have a Java class that creates an xml file from data in a non-sql data source. After it successfully creates and saves the file it inserts a record into an Oracle table to log the fact that an xml file was created.
    Now the guy in the warehouse wants to get an email with the file attached. I have been looking into the apex_mail package, because we already have a procedure using htmldb_mail. However, that procedure is on our old server with HTMLDB 1.6 and it is not sending any attachments.
    I think I have most of the apex_mail worked out, but I'm stuck on the blob thing. This is what I have so far:
    * The Java program creates a String object called xmlDoc
    * After xmlDoc is fully constructed, the file is written to the (Linux) server. This is accomplished with the following:
    // writing the xmlDoc
    fileDest = "/home/ewh/XMLOUT/";
    fileName = "OrderEW_"\+orderNbr\+"_"\+ticketNbr\+".xml";
    FileWriter fstream = new FileWriter(fileDest+fileName);
    BufferedWriter out = new BufferedWriter(fstream);
    out.write(xmlDoc);
    out.close();
    * Next I insert a record into the log file with:
    // Add a record to the Oracle order_email table to let the mail process know that
    // a new xml file is ready to be e-mailed to operations.
    emailLogInsertQuery = " insert into ewh.order_email ( file_name, create_date ) ";
    emailLogInsertQuery += " values ('"\+fileName\+"', sysdate)";
    oraAction = oraStmt.executeUpdate( emailLogInsertQuery );
    All of this is working fine so far. Now, I have added a blob type field to the order_email table, but I have no idea what to stick in there so that I have everything that apex_mail.add_attachment needs.
    Here's a description of the order_email table:
    SQL> desc ewh.order_email;
    Name Type Nullable Default Comments
    FILE_NAME VARCHAR2(30) Y
    FILE_BLOB BLOB Y
    CREATE_DATE DATE Y
    SEND_DATE DATE Y
    Thanks ever so much,
    Gregory
    Edited by: Canis Polaris on Jun 10, 2009 2:10 PM - Added escapes as necessary to show the plus signs around Java variables.

    Hi,
    From within APEX one can enter blob data in database tables, view the data and also update the data. Also one can send a blob attachment in an email.
    May be you can follow a combination of the following OBEs to insert BLOB data and send BLOB data from APEX:
    http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm
    http://www.oracle.com/technology/obe/apex/apex31nf/apex31email.htm
    -Priyanka

  • How can I put old albums into Photo Stream?

    It used to be so easy to synch photos to my various devices: iPod touch, iPhone, iPad from my computer using iTunes.  I could select the albums I wanted on each device, and there they were!  But, iTunes now tells me that it no longer synchs photos.  When I go to iPhoto and try to put old photos in the Photo Stream, it takes forever, and the photos in an album are all scrambled.  It's like starting over.  There has got to be an easier way -- what is it?

    Web Galleries published in iPhoto are in the order that the web gallery albums are in iPhoto - if you drag a web gallery into a different position and sync the web gallery matches the order
    I do not know how iWeb handles the order -- try web galleries and see how they work for you
    Larry Nebel

  • How can i put my ipod into recovery mode i've tried to put it in recovery mode but it won't help me

    i've turned off my ipod and i held the home button and plugged in the USB but nothing happened

    Placing your device into recovery (DFU) mode:
    Follow these steps to place your iOS device into recovery mode. If your iOS device is already in recovery mode, you can proceed immediately to step 6.
       1. Disconnect the USB cable from the iPhone, iPad, or iPod touch, but leave the
           other end of the cable connected to your computer's USB port.
       2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds
           until the red slider appears, then slide the slider. Wait for the device to turn off.
                  * If you cannot turn off the device using the slider, press and hold the
                    Sleep/Wake and Home buttons at the same time. When the device turns off,
                    release the Sleep/Wake and Home buttons.
      3. While pressing and holding the Home button, reconnect the USB cable to the
           device. The device should turn on. Note: If you see the battery charge warning,
           let the device charge for at least ten minutes to ensure that the battery has some
           charge, and then start with step 2 again.
      4. Continue holding the Home button until you see the "Connect to iTunes" screen.
           When this screen appears you can release the Home button:
      5. If necessary, open iTunes. You should see the following "recovery mode" alert:
      6. Use iTunes to restore the device.
    If you don't see the "Connect to iTunes" screen, try these steps again. If you see the "Connect to iTunes" screen but the device does not appear in iTunes, see this article and its related links.
    Additional Information:
    Note: When using recovery mode, you can only restore the device. All user content on the device will be erased, but if you had previously synced with iTunes on this computer, you can restore from a previous backup. See this article for more information.

  • How can I put share prices into excel that will automatically update when I open excel?

    I am trying to create a share portfolio on excel on a mac that will update when I automatically update when I open the spreadsheet, however I have never used excel to import data before!

    The place to ask about Microsoft programs is on Microsoft's forums.

  • HT204003 How can I load all giftcards into one

    i have a whole bunch if the same brand giftcards on my passbook how can i put them all into 1

    I have two files the file with the main method has four inner classes.
    i tried to use the jar cvf command but it only jars the file i say to jar the inner classes dont get jared. Is there a way of using one command to jar my two files and include the inner clases that are in one of the files?

Maybe you are looking for

  • Error 500: Application error occurred during the request processing

    hello gurus! One thing very strange happened to me, we have a PI 7.1 EP 1, I imported a file. tpz in the Enterprise Service Repository, exported from PI 7.1. and suddenly everything stopped working, the SLD, the SR, the directory, the repository ....

  • Not running 10g form in any browser

    windows server 2003 oracle 10g form I already set web browser location with internet explorer exe file , but when I run the form it open I.E but don't run form in it and exit I.E automatically. please help. I am new in 10g.

  • Receiver file name with counter

    While working on proxy to file scenario. I have to maintain receiver file name as ddmmyyyyxxx_nnn.xml,where xxx is constant and nnn is a counter which is suppose to be reset everyday.Anybody can help me on how to achive this...?

  • Why flash get block on browser

    I am designing a web site with several flash elements that I include in a html file, everytime thet I preview it, on the browser when you roll over the swf's it the border get highlighted and you can use the bottons , you have to click once and then

  • Printing Photo Book with 101+ Pages

    Sorry if this has been previously posted, but I could not find anything on this topic. Does anyone know of an online service that will print a photo book with more than 100 pages? I have a photo book I have created in PS6 to commemorate my parents tr