Dynamic Upload and Insert for each Z Table

Hi all
i search a blog or solution for dynamic upload each Z table with external data.
Because we have a lot of migration table and we will fill it dynamic from .txt or excel or others and with out check fill it to SAP.
My wish is an ABAP
Parameter: Z-table name
                 path to upload
inside on abap, take the structure from Z table and merge the external data to table
Thanks for help

the code for u...
http://www.sapfans.com/sapfans/repos/neil.htm

Similar Messages

  • Creation of sequence and trigger for each table!!!!!!!1

    Hi
    I am new to trigger and Sequence field. In one of my database we have many tables with fields for specifing ID numbers. Iam planning to insert the ID field with help of a Sequence and trigger...that trigger fires by adding the sequence value from the dual table. Now the point is here we r having around *60* table with ID field. And i am planning use the above process for each table by creating sequences and trigger for each table.
    Will this affects the performance of database.
    Is there any other option other than the above process, I mean other than creating sequences and trigger for each table.
    PLzz help to resolve this issuee......
    Shiyas
    Edited by: user13170361 on Jun 7, 2010 12:37 AM

    Tiger, I didn't mind about your comment, but the point is try to use
    select NVL(max(a) + 1,1) into i from p1_temp;This line in your trigger code and see what is happening. The problem is with your trigger. You are using group by function and you will not get no_data_found !
    For more help, this is some modification of your code.
    SQL> create table p1_temp (a number(10) primary key, b number(10));
    Table created.
    SQL> create or replace trigger trg_p1_temp
      2  before insert on p1_temp for each row
      3  declare
      4  i number(10);
      5  begin
      6  begin
      7  select NVL(max(a) + 1,1) into i from p1_temp;
      8  exception
      9  when no_data_found then
    10  i := 1;
    11  end;
    12  :new.a := i;
    13  end;
    14  /
    Trigger created.
    SQL> insert into p1_temp(b) values (1);
    1 row created.
    SQL> insert into p1_temp(b) values (2);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from p1_temp;
             A          B
             1          1
             2          2
    SQL> Edited by: Saubhik on Jun 7, 2010 2:30 AM

  • I have a form that has multiple fields but has 5 sections. I have used mail merge to insert information but I can't get Excel to recognize that I need different names and addresses for each section. Please help.

    I have a form that has multiple fields but has 5 sections. I have used mail merge to insert information but I can't get Excel to recognize that I need different names and addresses for each section. Please help.

    Thanks for your response. I do believe I have the information needed for each form on a separate line in Excel. There is a first name, middle name, last name, city, and zip column. And field is entered on a different line for all the information. I'm really stuck.

  • I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Does this sort of software exist?

    I need an app or software that records the date/time each time a write something and press enter. This needs to be quick so I can continue writing right after I press enter, and the date/time is inserted for each word. Imagine a spreadsheet - each time a write something in a cell and press enter to go into the next cell, I need the app/software to automatically insert the corresponding dat and time. Does this sort of software exist?

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • XML PARASE and insert /update in corresponding tables

    Hi,
    I have a XML in which master details tables 3 tables.I want to separate element and insert/update in corresponding tables dynamically.
    Table invlovled in A,B,C
    Thanks
    Reena

    Reena
    The easiest way to do this is along the following lines..
    (1) register an XML Schema that describes the XML you wish to process with theh database.
    (2). create a relational view for the top level elements and for each repeating element (element where maxOccurs > 1 in the XML Schema)
    (3) Use 'insert as select' or other SQL type processing to update your relational tables from the contents of the view
    It is normally recommended that you add the following annotations to the XML Schema before registering it with the database
    (1) At the schema level set xdb:storeVarrayAsTable="true".
    (2) At the complexType level set xdb:maintainDOM="fasle".
    If you search the forum you will find a lot of examples of creating relational views of XML content stored in the XML database. Typically these examples will include key words like 'create or replace view' and 'table(xmlsequence(extract' or 'xmltable'.
    Hope this helps...
    -Mark

  • How can i open a DOC or TXT file and insert the data into table?

    How can i open a DOC or TXT file and insert the data into table?
    I have a doc file . the doc include some columns and some rows.(for example 'ID,Name,Date,...').
    I'd like open DOC file and I'd like insert them into the table with same columns.
    Thanks.

    Use the SQL*Loader utility or the UTL_FILE package.

  • Is it possible to share multiple photos from iPhoto to flickr with embedded title, description and tags for each photo?

    I use iPhoto to share my photos to different sites like facebook and flickr ... with facebook it's easy since the pics don't need much details ... however, I have some trouble with Flickr, since I need to add description, titles and tags for each picture ... is there a way to do so ?!

    Titles and descriptions are not embedded into a photo until it is exported out of iPhoto with the following settings:
    So if Facebook can read those values in an image file you'll need to export as shown above and upload to FB from outside of iPhoto or import back into iPhoto and sync the new files to FB.
    OT

  • Upload / Download section for each Forum

    Normally i see threads where one asks for help files/docs by sending email address. Many users send those files to person and responds. After that many people asks the person to send the same copy and list goes very high. Because of response it is not possible to send those files to all people. Is it possible to create upload/download area for each forum where user can upload files and anybody who requests can download files directly. Please reply.

    > First let me once again express this to all of you
    > particpating in such actions!
    >
    > The request, distribution and sending of copyrighted
    > materials is against the law, DO NOT DO THIS!
    >
    > Now as for a place to get these files - let me see I
    > have a list here:
    >
    > - <a href="http://sdn.sap.com">link 1</a>
    > - <a href="http://service.sap.com">link 2</a>
    >
    > Both of those links contains thousands of pieces of
    > information and it is almost 97% of what is being
    > asked for.
    >
    > DO NOT SEND TO SOMEONE'S EMAIL! If you see people
    > asking for this be a responsible community member and
    > inform the moderators.
    Hi Craig,
    I didn't realise this was frowned upon by the SDN moderators/SAP personnel as there never seems to be anything done about it.  The one thing that spoils the SDN forums for me is the number of "Please send me the document" posts that I have to pick through.
    Is there a generic email address we can post to to alert all moderators, or do we have to pick a moderator at random?  I guess the moderators would soon get sick and tired of us all pointing out these posts!
    Maybe you can send me a document explaining how we should approach it
    Thanks,
    Gareth.

  • JClient Binary File Upload and Insert

    We are looking for ways to upload and insert a pdf or other binary file into a view object using JClient on the client tier. Can anyone point us to sample code for this?

    this should do this
    ApplicationModule appmod = panelBinding.getApplicationModule();
    JUApplication app = panelBinding.getApplication();
    ViewObject vo_calldoc = appmod.findViewObject("CallDocsView1");
    Row newdoc = vo_calldoc.createRow();
    newdoc.setAttribute("CdcCalId", PanelCallView3.vo_call.getRowSet().getCurrentRow().getAttribute("CalId"));
    newdoc.setAttribute("CdcFilenaam",file.getName());
    newdoc.setAttribute("CdcBlob",blob);
    vo_calldoc.insertRow(newdoc);
    appmod.getTransaction().postChanges();
    Object[] inskey = new Object[]{ newdoc.getAttribute("CdcId")};
    appmod.getTransaction().commit();
    Key pkkey = new Key(inskey);
    Row[] rowarray = vo_calldoc.findByKey(pkkey,1);
    Row updrow = rowarray[0];
    System.out.println(updrow.getAttribute("CdcFilenaam"));
    updrow.lock();
    oracle.jbo.domain.BlobDomain myblob = (oracle.jbo.domain.BlobDomain)updrow.getAttribute("CdcBlob");
    int next;
    FileInputStream fileIn = new FileInputStream(file);
    OutputStream blobOut = myblob.getBinaryOutputStream();
    while ((next = fileIn.read()) != -1)
    blobOut.write(next);
    fileIn.close();
    blobOut.close();
    app.commitTransaction();

  • I have 3 i phones.  Can I have multiple accounts on one computer where it keeps the contacta and calendar for each?

    I have 3 i phones.  Can I have multiple accounts on one computer where it keeps the contacta and calendar for each?

    My daughter and I both have iphones. I created an account (not separate itunes) for her on my computer so she could sync her phone/itunes but not have it interfere with mine since we have WAY different taste in music. Creating a different computer profile should work if you have separate itunes accounts, too.
    If you all use the same itunes account, you can turn on Home Sharing. That way you can all download the same content without having to pay for it again. Not sure how or if that works with separate itunes accounts.
    Hope that helps!

  • Java Message Mapping : Dynamic FileName and Directory for ASMA

    How to Put Dynamic FileName and Directory for ASMA Properties of File Receiver adapter in Java Message Mapping ???
    I know How to Do this in UDF , But In Java Type Message Mapping . How to do this ????
    Regards
    PS.

    Hi
    chk this:
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=95093307
    Thanks
    Amit

  • How do we create a a main podcast category with sub-categories similar to the way many bands have subcategories and artwork for each of their albums?

    How does a content producer create a main category with sub-categories similar to the way many bands have subcategories and artwork for each of their albums?

    I think you're talking about an 'Artist Page' in which several podcasts are 'aggregated' into one iTunes Store page?  This Apple Tech note deals with the subject (scroll to the bottom of the page):
    http://www.apple.com/itunes/podcasts/creatorfaq.html
    Although your mention of albums makes me wonder whether there you are talking about albums and songs in the music Library? - podcasts don't come in albums.
    You've also asked this in another forum:
    I have created a feed for our podcasts, but they are all under one umbrella. We would like to have subcategories under one main category.
    'A feed for your podcasts' doesn't make sense - a podcast has one feed (and vice versa). Are you confusing 'episodes' with 'podcasts'? A podcast is a collection of episodes - you can't categorize the episodes separately. The category shows only on the Store page and applies to the entire podcast. The 'Artist' page may again be what you are aiming for - if not perhaps you could post an example of what someone else is doing that you would like to.

  • How to find out exact labour hour and expenses for each labour attached to

    Team,
    How to find out exact labour hour and expenses for each labour attached to machine
    We are planning to go with CATS.
    But in Cats how Production Planning department get the exact labour coust
    (which includes labour accomodation building , EB etc. paying by comp)
    How to do this in CATS
    REX

    hai
    generally  the schemas are named X000  which stands for common schema  nomination
    x replaced by respective country like for india it is IN00  for US  U000etc
    it is not given according to the group of emplyees but according to the country grouping for your org units
    time schemas are country independent they work for all the countries
    regards
    nalla

  • Read a csv file, fill a dynamic table and insert into a standard table

    Hi everybody,
    I have a problem here and I need your help:
    I have to read a csv file and insert the data of it into a standard table.
    1 - On the parameter scrreen I have to indicate the standard table and the csv file.
    2 - I need to create a dynamic table. The same type of the one I choose at parameter screen.
    3 - Then I need to read the csv and put the data into this dynamic table.
    4 - Later I need to insert the data from the dynamic table into the standard table (the one on the parameter screen).
    How do I do this job? Do you have an example? Thanks.

    Here is an example table which shows how to upload a csv file from the frontend to a dynamic internal table.  You can of course modify this to update your database table.
    report zrich_0002.
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>,
                   <dyn_field>.
    data: it_fldcat type lvc_t_fcat,
          wa_it_fldcat type lvc_s_fcat.
    type-pools : abap.
    data: new_table type ref to data,
          new_line  type ref to data.
    data: xcel type table of alsmex_tabline with header line.
    selection-screen begin of block b1 with frame title text .
    parameters: p_file type  rlgrap-filename default 'c:Test.csv'.
    parameters: p_flds type i.
    selection-screen end of block b1.
    start-of-selection.
    * Add X number of fields to the dynamic itab cataelog
      do p_flds times.
        clear wa_it_fldcat.
        wa_it_fldcat-fieldname = sy-index.
        wa_it_fldcat-datatype = 'C'.
        wa_it_fldcat-inttype = 'C'.
        wa_it_fldcat-intlen = 10.
        append wa_it_fldcat to it_fldcat .
      enddo.
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = it_fldcat
                   importing
                      ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
    * Upload the excel
      call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           exporting
                filename                = p_file
                i_begin_col             = '1'
                i_begin_row             = '1'
                i_end_col               = '200'
                i_end_row               = '5000'
           tables
                intern                  = xcel
           exceptions
                inconsistent_parameters = 1
                upload_ole              = 2
                others                  = 3.
    * Reformt to dynamic internal table
      loop at xcel.
        assign component xcel-col of structure <dyn_wa> to <dyn_field>.
        if sy-subrc = 0.
         <dyn_field> = xcel-value.
        endif.
        at end of row.
          append <dyn_wa> to <dyn_table>.
          clear <dyn_wa>.
        endat.
      endloop.
    * Write out data from table.
      loop at <dyn_table> into <dyn_wa>.
        do.
          assign component  sy-index  of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
            exit.
          endif.
          if sy-index = 1.
            write:/ <dyn_field>.
          else.
            write: <dyn_field>.
          endif.
        enddo.
      endloop.
    REgards,
    RIch Heilman

  • TSQL for capture and insert to a user table when blcoking is happening on a SQL server

    Hi,
    I am searching for a TSQL which will capture the blocking script to a table with execution plan and all other necessaryu details. I tried with below script but its not giving the text for blocked statement
    I t will be nice if i get RequestingText and  BlockingTest
    SELECT @@servername as Instancename,getdate() as [date],session_id,start_time,status,command,database_id,blocking_session_id,
    wait_type,wait_time,last_wait_type,ST.TEXT AS SQL,
    wait_resource,open_transaction_count,cpu_time,total_elapsed_time,reads,writes,logical_reads,text_size from sys.dm_exec_requests SR
    CROSS APPLY SYS.DM_EXEC_SQL_TEXT(SR.SQL_HANDLE) AS ST 
    where blocking_session_id >0
    I tried the below link also, this this script also got blocked
    http://blog.sqlauthority.com/2010/10/06/sql-server-quickest-way-to-identify-blocking-query-and-resolution-dirty-solution/

    But when you run select * from sys.sysprocesses where blocked >0 
    i can see blocking
    and it will be nice if I get RequestingText and BlockingTest
    in the user table
    You can get the requesting text for the spid that is blocked, plus all the other information you get from sys.sysprocesses by
    select SUBSTRING(st1.text, (p.stmt_start/2)+1,
    ((CASE p.stmt_end
    WHEN -1 THEN DATALENGTH(st1.text)
    ELSE p.stmt_end
    END - p.stmt_start)/2) + 1) AS RequestingText,
    p.*
    from sys.sysprocesses p
    CROSS APPLY sys.dm_exec_sql_text(p.sql_handle) AS st1
    where p.blocked <> 0;
    But you will not bee able to get the command that caused the lock that is causing the blocking.  SQL does not keep that information.  For a lock, it only keeps the spid that owns it, what is locked, and the kind of lock.  It does not keep
    the command that caused the lock.  And while you can, at least sometimes get the last command the blocking spid has issued, but that may well not be the command that caused the lock.  The command that caused the lock might be anything the blocking
    spid ran since it entered transaction state.  And since that could be the last command or many, many commands ago, you won't be able to get that information with a query into the system tables and/or views.
    Tom

Maybe you are looking for

  • Creating a partially restricted document

    Hello, I've been trying to create a partially restricted application document and have had some trouble.  If anyone could help it would be greatly appreciated.  I am using the free version of Acrobat.  Here's what I'm trying to do: -Restrict multiple

  • IPod mini updater problem

    I am being driven mad this afternoon....My iPod mini keeps showing a file with a warning sifn. I think I have done everything I should (the 5 R's) but to no avail. Whenever I try and install iPod updater I am only given the option to restore. When I

  • Access to "Free" in "Work" in account "iCloud" is not permitted.  The server responded: "403" to operation CalDAVWriteEntityQueueableOperation.

    Is anyone else getting this really annoying iCal message? I started receiving it this morning and have seen several others on here asking same question-any action from Apple?

  • Temporary tablespace Full error 10g RAC.

    Hi All, Can any one help me in below problem. After migrating one of database from single node to two node RAC database. we are facing temporary tablespace full problem. The database previously have 2 GB of temporary tablespace but after moving to RA

  • Moving into SAP - SOA - Netweaver - XI

    Hi, I'm a non SAP person and currently work as a Technical Architect in SOA field predominantly from middle ware integration, Java & J2EE background with an overall experience of 10+ years. I specialise in IBM WebSphere domain specially BPEL, EIS Ada