Easy way to write out internal table to database table ?

hi friends,
i have a special requirement:
as i do not want to change the profile settings on an r/3 4.6c machine, i want to modify my program so it can handle even large amount of data. the plan is to fill internal table and for say every 100000 rows write those out to a table on database. how could i do this most performant ?
thanks,
clemens

Hi Clemens,
This solution worked for me, which was suggested by Seshu. May be you can try this,
Modify ZPPPRICE(your database table name) from table t_final(internal table name).
In my case I updated Custom table.
The internal table is of same structure as database table.
Modify command will insert the record the record if it is new, if the record is existing then it will update the record with the internal table values.
I got data from Excel file in to my internal table.
Regards,
Neelu.

Similar Messages

  • Fastest way to write out internal table to database table ?

    Hi friends,
    my question is, what is the fastest way to write about 1,5 mill. of rows from an internal table to a database table ?
    points will be awarded immediately,
    thanks for your help,
    clemens

    Hi Clemens,
    If you just want to write (INSERT) 1.5 million rows of an internal table into a database table, use:
    INSERT <table name> FROM TABLE <itab>.
    Transaction Log Size could be a problem, therefore writing in packages could help, but this depends on your row size, your database configuration and on the current changes to your database. May be it runs in one package, if the rows are small (few bytes) then one package will be the fastest but you'll not much faster than with reasonable packages (3-20 MBytes). On Oracle with rollback segments you will probably have no problems at 1.5 million rows.
    Best regards
    Ralph

  • Any easy way to generate unique primary key for database table?

    I'm currently playing with the J2EE reference implementation from Sun which comes with the IBM Cloudscape database. This Cloudscape database supports the use of an AutoIncrement field.
    First question: Can I use CMP and assume that the database will generate a proper key for me? Anyone tried it out successfully before?
    Also, based on what I've heard so far, it seems that generating database primary key is not really well-supported by J2EE using CMP in that a lot of J2EE developers have to resort to workarounds like using a session bean, JDBC and (1) some seed numbers for ID implanted in the database itself (as in the J2EE tutorial DukesBankApp example) or (2) using the SQL MAX aggregation command + 1. Usign seed number is contradictory to good database design and using MAX is dangerous for heavy traffic application if 2 beans try to insert themselves into the database at the same time (synchronizarion problem).
    Anyway I find it dumb that we still have to go back to JDBC and SQL which was the reason why the concept Entity Bean was introduced; to make database persistence transparent! Now it seems that J2EE makes it worse and more troublesome than before.
    Second Question: Is there any easy (hopefully transparent/automatic) way of generating primary key ID?

    if you want to rely on your container or database then go hard, will probably be faster.
    to make a cross container/db soln I used a CMP Entity bean called Sequence with one field for uid
    I use one instance and increment the field each time.
    To do the logic, I have a utils class with static method, no need for session bean overhead
    I reckon this approach is OK considering all things

  • Is there an easy way to find out if a user has a message in their voicemail.

    Is there an easy way to find out if a user has a message in their voicemail from the
    UNITY subscriber page? Or anywhere I can look to see if they do.  I don't have access to the exchange servers.  We are currently running UNITY 5.0(1).  thanks

    The only way you'll be able to do that is to login to Outlook Web Access, or possibly setup an IMAP client to that user's mailbox or have TAC run the DohPropTest in attach mode to return the contents of the user's inbox.  If the first two don't work, I'd go with the latter and let TAC help you verify if there are any messages in the inbox that are unread.
    Hope that helps,
    Brad

  • Loading internal table to database table

    Hi all,
    I have created a ztable .also i created an internal table with the same structure as ztable.I have some data in internal table.how to load these data from internal table into database table.how thre insert statement will be.

    Hi,
             Check whether entries are there in the internal table. Also check for the structure.
    MODIFY dbtab FROM TABLE itab.
    UPDATE dbtab FROM TABLE itab.
    just read this.
    If you just want to write (INSERT) 1.5 million rows of an internal table into a database table, use:
    INSERT <table name> FROM TABLE <itab>.
    Transaction Log Size could be a problem, therefore writing in packages could help, but this depends on your row size, your database configuration and on the current changes to your database. May be it runs in one package, if the rows are small (few bytes) then one package will be the fastest but you'll not much faster than with reasonable packages (3-20 MBytes). On Oracle with rollback segments you will probably have no problems at 1.5 million rows.
    <b>Rewrad points</b>
    Regards

  • Apply check tables to database tables

    how to apply check tables to database tables???
    plz help

    Hi
    Check Table: means the Table that contains the Primary key in the Foreign key definition.
    It has 2 important uses:
    1. To validate the inputs in the foriegn key field (For Eg: MARC-MATNR) with the values existing in the check table - Primary key field (Eg: MARA-MATNR)
    Here MARA is the Check table for the MARC-MATNR
    2. To provide the input help(F4) for foreign key field
    check table is the field level checking. we can use the Cardinality based on ur requirment.
    see the example.
    if ur using two tables like ekko and ekpo.
    ekko tables having the fields ebeln , bukrs and lifnr.
    here primery key is ebeln.
    ebeln bukrs lifnr
    101 1000 1000
    102 1000 1000
    103 2000 1001(this is entry for ekko).
    we want to insert the entry based on ekko tables.so ekko table is the ckeck table.
    ekpo table is the itam table.
    ekpo tables having the fields ebeln , matnr , menge .
    here forign key is ebeln.
    ebeln matnr menge
    101 m-1 10
    101 m-2 2
    101 m-4 18
    102 m-8 7
    103 m-5 8
    in ekpo table we can't enter other than ekko-ebeln value.
    so we can enter only based on ekko-ebeln table entries.

  • Is there an easy way to see how many rows in a table? (selected or unselected)

    Hi all,
    Forgive me if this is a REALLY dumb question but I would love to know if there there is an easy way to to see how many rows there are in a table in InDesign?
    (And I bet I am really going to kick myself when I hear the answer and how simple it probably is..lol !)
    I am working on a huge catalog and am dealing with LOTS of tables...very long tables too at times. I am also doing a lot of copying and pasting back and forth between InDesign and Excel and it would REALLY help if I knew how many rows there are in a table without having to manually count them (TIRESOME!!).
    Also, is there a way to see how many rows I have selected at any one time? It would be SO WONDERFUL if the info box could also provide this information.
    Thank you SO MUCH in advance for your help:))
    Christine
    **UPDATE**
    Oh boy I AM going to kick myself! Why only NOW that I wrote this question did I suddenly notice that the Table palette shows the number of rows and columns? lol.
    Okay, then is there a way to see how many rows I have selected at any given time?

    @Christine – try the following ExtendScript (JavaScript):
    if(app.selection.length === 0
        || !app.selection[0].constructor.name === "Cell"
        || !app.selection[0].constructor.name === "Table"){
        exit(0);
    var sel = app.selection[0];
    if(sel.constructor.name === "Cell"){
        var tableRowLength = sel.parent.rows.everyItem().getElements().length;
    if(sel.constructor.name === "Table"){
        alert("All "+sel.rows.everyItem().getElements().length+" rows selected in current table." );
        exit(0);
    var numberOfRowsSelected = sel.rows.length;
    var indexOfSelectedRows = sel.rows.everyItem().index;
    var startRowSel = indexOfSelectedRows[0]+1;
    var endRowSel = indexOfSelectedRows.length+indexOfSelectedRows[0];
    alert(numberOfRowsSelected +" row(s) selected.\r"+startRowSel+" to "+endRowSel+" out of "+tableRowLength+" of current table.");
    You need not select whole rows, just one or a couple of cells.
    Then run the script.
    An alert message is telling you how many rows belong to the cell range you have selected and:
    which rows of the table are selected…
    A typical message would be:
    6 row(s) selected.
    3 to 8 out of 20 of current table.
    The script does some basic checks of the selection.
    If no cell or table is selected, it will just do nothing…
    Uwe
    Message was edited by: Laubender | Some language cosmetics in the alert message

  • Is there another easy way to write this program??

    Hi ,i new in Java Programing,Is there another way to write this program?? This program below is about FIND THE AREA OF A CIRCLE WHEREIN THE RADIUS OF THE CIRCLE RANGES FROM 1 TO 10 BY 1 IN A FOR LOOP.
    import javax.swing.JOptionsPane;
    public class Area2 {
    public static void main(String[] args ) {
    double pi = 3.14;
    int r;
    String a = "Area = ";
    double area;
    for (r = 1; <= 10; r++)
    area = pi * r * r;
    a = a + area + "\n";
    JOptionPane.showMessageDialog(
    null , a);
    System.exit ( 0 );
    I did not write it ,i want to know if is there another way (easy)to write it.
    Thank you very much
    Sincerely Erick.

    Not much to improve upon this. It is a pretty simple program. Note my comment about PI.
    import javax.swing.JOptionsPane;
    public class Area2 {
       public static void main(String[] args ) {
          double final PI = 3.14; // Final because it's a constant value, convention for constants is to use uppercase
         int r;
         String a = "Area = ";
        for  (r = 1; <= 10; r++)
            area  = pi * r * r;
            a = a + area +  "\n";
        JOptionPane.showMessageDialog(null , a);
        System.exit  ( 0 );

  • Easy way to find out what iBot reports a user gets?

    I am looking for a easy way to get a list of iBots each user gets daily in OBIEE 10g. The only way I know is opening each ibot and checking the Recipients tab which is going to be very time consuming for me as I have 500 users and numerous ibots.
    Thanks
    MNRK
    Edited by: MNRK on Jul 18, 2011 11:14 AM

    MNRK,
    This information is stored in XML for the iBot/Agent object. Since this information is stored in the Catalog Manager you can conduct an Export of the iBot/Agent objects and then parse through the XML using an open source parser library, Java, or other scripting, even PL/SQL to get the subscriber and recipient information out of the iBot/Agent object.
    That is really the best way, if not the only way.

  • Is there an easy way to find out if the GPIB/ENET adapter is connected to the computer?

    I'm using Component Works for Visual Basic and have no problem with my software on computers with PCMCIA GPIB adapters. The GPIB driver seems to know if the adapter is in the computer or not.
    When my software is used on a computer where the GPIB/ENET adapter is not powered on, the software seems to lock up but eventually comes back with an error. Since there doesn't seem to be an easy way to determine if an adapter is present my code just assumes it's there, which doesn't work with the GPIB/ENET GPIB dll. Is there any way I can look for the board before querying for instuments on the bus?

    Hello David,
    One possible solution would be to ping the ENET box. If you know the IP of the box, a simple ping should immediatly let you know the status of the box.
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • Designing a banner stand: Is there a easy way to work out the recommend margins / bleed?

    So its my first time creating a banner stand and something of larger scale. I was wondering if there is a certain way to work out the recommended margins for the size of the document? Or should i simply do it by eye. The banner dimensions our 800m x 1200mm.
    Also any other tips for creating larger document would be appreciated.

    It sounds like the same product that we do a lot of here. There's no technical reasons for a particular margin, as they can be full bleed (print right to the edge), so it's a subjective design decision.Take into consideration the content and the context. It could be a something with little content, intended to draw people from a distance (larger margins), or it could be something with a lot of content that will be read from a short distance (smaller margins).
    I tend to do these as 1:1 scale, but bear in mind that InDesign's Optical Kerning will be too tight when you do this.

  • Writing out data from a database table

    Hi guys,
    I am kinda new to ABAP Programming. I need to know how i can write the data stored in my database table which has the following structure:
    data: begin of tablename occurs 100,
    endof tablename.
    I don't know how to loop into it and get the data out from it into a flat file on the application and the presentation server. right now, no data is getting written into the file because I am not looping through the table where the data is is present.
    I need help asap.
    Thanks,
    Minal

    Hi,
    Plz go through this link it will help u a lot
    http://www.sapdevelopment.co.uk/file/file_updown.htm
    also see this link
    http://www.sapdevelopment.co.uk/bdc/bdc_dbupdate.htm
    Thanks & Regards,
    Judith.
    Message was edited by: Judith Jessie Selvi

  • Is it possible to update internal table from database table

    Hello All:
              I know how to update database table from internal table in one shot (batch) but is the reverse possible? Can I update some fields in an internal table from a database table in one shot (without looping) because my internal table is huge? Could you please provide me any ideas how to acheive something like this? Thanks in advance and answers will be rewarded.
    thanks.
    Mithun

    Hello my friend,
    You can do it MAYBE , i think you can reverse the update doing a ROLLBACK, but only after you update....not after the program finishes..
    To update some fields at once use:
    UPDATE DBTABLE FROM TABLE IT_TABLE
    Hope this helps!!
    Gabriel

  • Inserting records from internal table to database table

    Hi all,
    i want to insert records from internal table to zDatabase table, can u plz guide me which statement is better in performance to insert the records.
    1) insert one by one record from internal table
    loop at itab.
    insert ztable from wa.
    endloop.
    2) insert total records at a time
    INSERT <dbtabname> CLIENT SPECIFIED FROM TABLE itab.
    or let me know if any other statement is there with high performance.
    i internal table contains nearly 40000 records.
    thanks.

    Hi,
    Insert the entire table at atime rather than a record so as to increase the performance.
    you can use INSERT <dbtabname> CLIENT SPECIFIED FROM TABLE itab.
    or
    MODIFY ZPRODUCT FROM TABLE GI_AFPO.
    Regards,
    Raj.

  • REG:Internal table and Database table

    Hi Xperts,
    Can you tell me /give me a sample code so as to
    Compare the data present in the database table and internal table.i.e
    Wheher the data in the db table matches with the data in the internal table
    Thanks.

    Hello,  
    First make sure that data is there in the internal table
    TABLES : Declare your table example MARA, VBAK etc
    TYPES: BEGIN OF ITAB1,
    Declare your fields here
    example
    v_mat(10) type c,
    v_code(5) type I,
    END OF ITAB1.
    IF NOT ITAB[] is INITIAL.
    LOOP AT
    END IF.
    To compare the data with DB tables, read the database table and copy into the internal table ITAB2
    Then compare the ITAB and ITAB1
    IF ITAB1[] = ITAB2[]
    END IF
    See these links for [Creating Internal Tables|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/content.htm]
    [Comparing Internal Tables|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3841358411d1829f0000e829fbfe/content.htm]
    See this for more about [Processing Internal Tables|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb36ae358411d1829f0000e829fbfe/content.htm]
    Declaring the internal table in ABAP objects
    [Thanks|http://chandranonline.blogspot.com/]
    [Chandran|http://chandranonline.blogspot.com/]

Maybe you are looking for

  • Allowable values of super/subtypes

    When I run the Database design transformer in Designer6i for a table with subtypes and sub-sub types (so one table which contains the sub- and supertypes, not more than one table) I get a table definition where the field 'table alias_type' is added.

  • Encount Ora-29534 when loadjava xmlparserv2.jar

    I encounted ora-29534 error message when I tried to load xml pl/sql parser using the following command: % loadjava -user scott/tiger -r -v xmlparserv2.jar Environment: Oracle8.1.5 windows nt sp4 jdk1.1.8 What causes this problem and how to resolve it

  • SCM5.0 Live Cache issue

    Hello, I am a newer from SCM5.0. I have 2 questions regarding live cache for SCM5.0. 1) if I want to run SNP or PP/DS, the live cache is necessary. that means, we MUST install live cache for APO planning run. 2) From now on, no 32 bit live cache vers

  • Keword Order Using Alt Key

    I edited a keyword set and placed each of the keywords in a specific order so that alt-1 was word1, alt-2 word2, etc. However, when I quit and restarted LR 2.1, they re-appeared in seemingly random order. Am I missing something or is there a way to k

  • Converting DVD's to my 5th generation iPod

    Has anyone found a good conversion software? i want to convert my dvd's to my ipod...inexpensively if possible