Update of a table via a form

I created a form with two blocks.
one of them is a select block for the user
(not based on a database table) and the other
one contains the result (through given parameters
from the first block[the user's query]).
after the execution of the query and based on the
data (id) that I got in the second block I would like
to update another table (database table not shown in the form)
I created a trigger that calls a procedure. it shows that the
procedure is executing(using outputs) but there is no update
in the target table. by the way when trying to close the form(runtime)
it asks if I would like to save the changes when pressing yes there is an
error message :"FRM-40508:ORACLE-error-cannot insert record(INSERT)".
when using the button (trigger) and calling the procedure I get the same
error message when I have a commit in the procedure. in PL/SQL when calling
a procedure via a trigger there is no need for a commit. is it the case also
in a form trigger? and if so why doesn't it update the table? ps.the same procedure
when executed in sql works good.
i tried it also with (execute_query) as suggested but it does not work.
please respond.
thanks in advance.

Do you have any other triggers in the form like on-insert/on-update/on-delete???
If any of these are present then it overrides the operation you are trying to perform..

Similar Messages

  • Insert row into database table via dynamic form -

    I have developed a portlet via Portal. I used a dynamic page. I replaced the default "<ORACLE>select * from scott.emp</ORACLE>" text to call a package procedure that uses HTP.P to render the web page. My goal is to show all rows in a table and allow edits to any row, and also add a checkbox on each row to allow the user to mark for delete. I am successfully using a FOR loop and showing all of the data in a grid. My problem - How do I update and delete the data? I have a submit button with nothing behind it currently. I would ideally like to use pl/sql code to do the updates and/or deletes as marked on the page by the user, but I'm not sure how to hook the submit button to calling a procedure to execute the updates/deletes.
    Any help would be appreciated -
    Thanks -
    Kent

    Hi Patrick - Thanks for your response! I have browsed your page quickly - very informative and I will look in more detail. My form design looks as below (using a simple example with emp id and emp name columns) - perhaps this will have to change, but I wanted the user to be able to insert using html fields id_add and name_add, then update (or mark for deletion) any of the existing rows (they are rendered with for loop in pl/sql - eg, id_1/name_1, id_2/name_2, etc for each row in the table). I was hoping the submit action would call a pl/sql that would look at all rows, and then act if an update or delete were required. This makes it difficult to use parms, I believe - I may be able to change the design to show an "update row" below the current "insert row" so that, as in your example, when the user highlights a row, it populates in the update area where changes can be made, and an update button used to effect the changes to a single row at a time.
    Thanks again, I appreciate your input!
    Kent
    ______________ _________________ <insert_button>
    Emp Id (textbox) Emp Name (textbox) Del_Checkbox
    ______________ _________________ ___ <SUBMIT_BUTTON>
    ------------------------- ----------------------------- ------

  • Update of hierachical table in tab form page

    I have a hierarchical table called menus. As you can see there ara two branches (63 and 64) than depend on branch 7:
    select id, pid, access from menus order by 2,1;
    ID PID Access
    1     0     3
    2     0     3
    7     2     1
    63 7 1
    64 7 1
    I would like to update the access of branches 63 and 64 if I change the access of their parent branch. Lets say I change branch 7 access to 0, then branches 63 and 64 should update its access level to 0.
    I tried this in an after update trigger:
    create or replace
    TRIGGER "SISTEMAS"."MENU_BU"
    after update of acceso on "MENUS"
    for each row
    begin
    if :new."ACCESO" != :old."ACCESO" then
    update MENUS set ACCESO = :new.ACCESO
    where id in (select id from (select id, pid from menus
    connect by prior id=pid
    start with pid=:old.id));
    end if;
    end;
    Now I am implementing a package with a procedure that fetches the children rows and updates the attribute in those rows. The problem is, this is in Tabular form, and MRU process,
    Where and how should I place the call to the procedure?

    Please put your code between two tags
    Would you create a sample app on apex.oracle.com and provide workspace/username/password to be able to help you?
    Mahmoud                                                                                                                                                                                                                                                                                                                                                       

  • Updating a table via form

    Hello -
    I'm trying to do what (should) be an easy task, but i'm
    pulling out what's left of my hair. I can't seem to update an
    Access table.
    tble_message has the following fields:
    messagesID : autonumber/key
    to [data type number]
    from [data type text]
    Date [data type Date/Time]
    message [data type text]
    time [data type Date/Time]
    I created the following form:
    - - - begin form.cfm - - -
    <FORM
    ACTION="input2.cfm?newcall2=YES&toID=#URLEncodedFormat(toID)#&budName=#URLEncodedFormat(b udname)#"
    Method=Post>
    <INPUT TYPE="hidden" NAME="to"
    VALUE=<cfoutput>#toID#</cfoutput>>
    <INPUT TYPE="HIDDEN" NAME="from"
    value=<cfoutput>"#LoginName#"</cfoutput>>
    <INPUT TYPE="hidden" NAME="DATASOURCE" VALUE="testdb">
    <INPUT TYPE="hidden" NAME="TABLENAME"
    VALUE="tbl_Messages">
    Message to: <cfoutput>#budName#</cfoutput>
    <TEXTAREA NAME="YMESSAGE" ROWS="5" COLS="40"
    WRAP="Virtual"></TEXTAREA>
    <INPUT TYPE="Submit" VALUE="send message">
    <INPUT Type="reset" Value="start again">
    </form>
    - - - end form.cfm - - -
    this form feeds input2.cfm
    - - - begin input2.cfm - - -
    <cfoutput>
    #message#
    #toid#
    #loginName#
    </cfoutput>
    <cfquery name="addmess" DATASOURCE="testdb">
    Insert Into tbl_Messages
    (message,to,from)
    Values
    ('<cfoutput>#message#</cfoutput>','<cfoutput>#toid#</cfoutput>','<cfoutput>#loginName#</c foutput>'
    </CFQUERY>
    - - - end input2.cfm - - -
    i do see the expected values in my cfoutput:
    <cfoutput>
    #message#
    #toid#
    #loginName#
    </cfoutput>
    = = = error message = = =
    I am getting an Error Executing Database Query
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft]
    [ODBC Microsoft Access Driver] Syntax error in Insert Into
    statement
    the error occurred in c:\.... input2.cfm: line 21
    20 Values
    21
    ('<cfoutput>#message#</cfoutput>','<cfoutput>#toid#</cfoutput>','<cfoutput>#loginName#</c foutput>')
    22 </CFQUERY>
    = = = end error message = = =
    Form Fields:
    fieldnames:to,from,datasource,tablename,ymessage
    from=chancho2000
    tablename=tbl_messages
    to=100
    ymessage=testing the input form
    url parameters:
    newcall2=yes
    toID=
    .. i just can't seem to populate the database
    any help or direction would be appreciated.. thanks!
    dieg0

    dieg02000 wrote:
    > .. i just can't seem to populate the database
    What is happening? Are you receiving an error, if so what is
    the full error message?
    > <cfquery name="addmess" DATASOURCE="ritmo2000">
    > Insert Into tbl_Messages
    > (message,to,from)
    > Values
    >
    ('<cfoutput>#message#</cfoutput>','<cfoutput>#toid#</cfoutput>','<cfoutput>#loginName#</c foutput>'
    > )
    I do not use Access but FROM is almost certainly a reserved
    keyword and should not be used as a column name. Try renaming it. I
    do not know about the other column names like "To".
    Though it may not cause an error the <cfoutput> tags
    are not needed and should be removed. The #variables# should be
    evaluated automatically. Also consider scoping your variables to
    avoid conflicts and using cfqueryparam. Something like
    <cfquery name="addmess" DATASOURCE="ritmo2000">
    Insert Into tbl_Messages (message, to, TheRenamedFromColumn)
    Values
    <cfqueryparam value="#form.message#"
    cfsqltype="cf_sql_varchar">,
    <cfqueryparam value="#toid#"
    cfsqltype="cf_sql_integer">,
    <cfqueryparam value="#loginName#"
    cfsqltype="cf_sql_longvarchar">

  • How to create table in interactive form via Java Web Dynpro

    Hi,
    How to create table in interactive form via Java Web Dynpro ?
    Any online tutorial / example ?
    Thank you.
    Regards,
    Eric

    Hi Eric,
    Just choose the UI element Table from Form Library and drag and drop it on the form. now choose the no. of rows and columns and other settings you want about table from the wizard initiated through this process. This all is what you have to do to create the table. Now to bind it to the fields of the data source bind the individual colums to individual attributes of the node in the datasource.
    Hope it will solve your query.
    Regards,
    Vaibhav Tiwari.

  • Insert/update multiple tables from one form.

    I'm working on an app. that requires the user to fill out a form. The contents from the form is then used to either insert new records or update existing records in multiple tables. Is that possible? Can someone give a details example?

    You should create a form like you would create it having one table. Use row_id as primary key. The rest of the process are done by the triggers - those will take care of updating the right table depending which column was hit.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Can a SQL SERVER table be accessed via Oracle Forms

    My boss asked me this question today. I am pretty sure the answer is "no", but thought it better to throw it out to the crowd:
    "Can a SQL SERVER table be accessed via Oracle Forms?"

    Yes, this is possible using Oracle's Transparent Gateway. Check out the My Oracle Support (formerly Metalink) document "How To Create A Form Based on SQL Server Table" (Doc ID: 564915.1) for all of the details. This document is based on Forms 10g (10.1.2.0.2) so you may need to upgrade your Forms version if you are not already at this version at a minimum.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Updating database table via program

    Hi,
    I am updating a DB table (Sap standard table) via my program.
    I have few doubts with regard to same. They are given below,
    1.  I came to know that it is not best practise to update the sap standard table via program using "update" statement. Why so? Is there any other way or statement in doing the same?
    2.  The sap standard table which i update via my program is BDRGIN. Now my question is, when my  program is modifying the values of the table, if some other user also modifies the value at the same time via SE16 then conflict occurs. How to resolve it? Is SAP uses any automatic handling for such conflicts?
    kindly help me out.
    Regards,
    Raghavendraprasad.N

    Hi,
    Its not a good practise to modify the Standards tables through programs, because most of the standard tables will be interdependant with forign key relation ships (check table relations). So incase we create an irrelavant entry, then it will cause a lot of confusions.
    For example we create entries in MARA/MAKT table using MM01/02 transactions.
    There are a few standard tables like TVSA (containing customising data), these have to be maintained through the SPRO transaction. You can open SPRO transaction and search for the node to maintain entries in it or you can go to the transaction SM30 and you can give the table name and click on customizng to go the SPRO node.
    Still if you are trying to create entries in your table, Enque/Lock the table do the updations and then Deque/Unlock the table, so that there will be no conflicts happening during that time.
    Regards,
    S.Dakshna Nagaratnam.

  • Updating column in table using forms...

    Well guyz i had my presentation of the application today..every thing went fine ....but still they wanna add more features i.e wanna gift this application to various PM working in the company on various project ....initailly i was told that u gotta create this application for just our project now they are using my work to give it to other PMsss :( and take all the credit with no ackowledgement for me n u people who helped me a lot in building this application.... ... well they want me to create an application where in they can modify certain columns......i.e over write the existing value present in a column with a new value....
    Now suppose i have col1,col2 in table paymast how should i proceed to create trigger for when i press the button the form gets updated for the particular employee number(i mean if enter the respective info for the particular emp as soon as i press the button the old values shud b replaced by new values..
    One method that i noe is use DB wizard to create the form n then enter the value for in respective fields for the column to be updated n then press the F6 ......i dont wanna use this function...
    i wanna update the application by pressing the button
    cheers :)
    Edited by: Suhail Faraaz on Nov 15, 2009 12:26 AM
    Edited by: Suhail Faraaz on Nov 15, 2009 12:29 AM
    Edited by: Suhail Faraaz on Nov 15, 2009 12:30 AM
    Edited by: Suhail Faraaz on Nov 15, 2009 2:05 AM

    hi
    Examples:
    SELECT TXNID INTO :TXNID  FROM SAF
          WHERE
          NEXT_ATTEMPT=(SELECT MIN(NEXT_ATTEMPT)
    FROM SAF
    WHERE STATUS!='A' AND NEXT_ATTEMPT<=SYSDATE AND ATTEMPTS<10)
    AND
          STATUS!='A' AND ATTEMPTS<10 AND
          ROWNUM=1 FOR UPDATE;
       //processing==success  
       UPDATE  SAF SET  ATTEMPTS=ATTEMPTS+1, NEXT_ATTEMPT=NEXT_ATTEMPT+(10/(24*60*60))
              WHERE TXNID=:TXNID;
            commit;
        else
            rollback;
    Create trigger trigg_name
      After update of C on A
    For each row
    Is
    declare
    Pragma Autonomous_transaction;
      New_val  varchar2(27);
    Begin
    New_val := :new.C;
    Dbms_output.put_line(New_val) ;  
                /* this outputs the new value when
           evoking an update statement on Table A (Column C)  */
    If updating then
    update A set D=:new.C where C=:old.C;
           /* After compiling the trigger and evoking
              an update statement on Table A (Column C)
              the D column still not being updated */
    Commit;
    End;
    update t1
    Set t1.C1 = (Select t2.c1
    From t2
    Where t1.c3 = t2.c3),
    t1.C2 = (Select t2.c2
    From t2
    Where t1.c3 = t2.c3)
    update t2
    Set t2.C1 = (Select t1.c1
    From t1
    Where t1.c3 = t2.c3),
    t2.C2 = (Select t1.c2
    From t1
    Where t1.c3 = t2.c3)Its Correct/Helpful Please mark it.Thanks.
    sarah

  • Update a database table column via EO

    Hi,
    I want to update a database table column via EO, but somehow the table column is not updated. Could you help if I miss anything?
    Here is my code:
    View SQL:
    select
    ,GoalSheetHeaderEO.srp_goal_header_id
    ,XL.MEANING
    ,GoalSheetHeaderEO.status_code
    ,GoalSheetHeaderEO.start_date GS_START_DATE
    ,GoalSheetHeaderEO.end_date GS_END_DATE
    ,GoalSheetHeaderEO.PERIOD_YEAR
    ,GoalSheetHeaderEO.LAST_UPDATED_BY
    ,GoalSheetHeaderEO.LAST_UPDATE_DATE
    ,GoalSheetHeaderEO.LAST_UPDATE_LOGIN
    ,'N' CHECKED
    from
    xxg2c_srp_goal_headers_all GoalSheetHeaderEO
    ,cn_comp_plans_all comp
    ,jtf_rs_salesreps rs
    ,jtf_rs_resource_extns rse
    ,xxg2c_lookups xl
    ,shr_strct_nodes nod
    ,g2c_goal_shr_emp_assignments_v emp
    CO:
    if (pageContext.getParameter("Update") != null){
    am.invokeMethod("updateGoalSheet");
    AM:
    public void deleteGoalSheet(){
    OAViewObject vo = (OAViewObject)getGoalSheetResultGAVO1();
    GoalSheetResultGAVORowImpl row = (GoalSheetResultGAVORowImpl) vo.first();
    while (row != null)
    if (selectFlag != null)
    if (selectFlag .equals("Y"))
    //row.setAttribute("GsStatusCode",Constants.GOAL_SHEET_STATUS_CODE_DEL);
    row.setStatusCode(Constants.GOAL_SHEET_STATUS_CODE_DEL);
    row = (GoalSheetResultGAVORowImpl) vo.next();
    getTransaction().commit();
    EO:
    public void setStatusCode(String value) {
    if (value.equals(Constants.GOAL_SHEET_STATUS_CODE_DEL)){
    String currentStatus = getStatusCode();
    if(!(currentStatus.equals(Constants.GOAL_SHEET_STATUS_CODE_INPROG)
    ||currentStatus.equals(Constants.GOAL_SHEET_STATUS_CODE_RDYAUD))){
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(),
    getPrimaryKey(),
    "StatusCode",
    value,
    "xxg2c goaling",
    "DEBUG -- need message name"
    setAttributeInternal(STATUSCODE, value);
    thanks
    Lei

    Hi Vikram,
    It is just a type error. The delete is a soft delete to change the status to 'DEL'.
    And also the view object is hybrid view object.
    Complete View Object SQL:
    select
    nod.node_id
    ,nod.version_id
    ,emp.status_name
    ,rs.SALESREP_ID
    ,rse.source_name
    ,rse.source_email SRP_EMAIL_ID
    ,rse.source_number SRP_EMPLOYEE_NUMBER
    ,comp.name
    ,GoalSheetHeaderEO.srp_goal_header_id
    ,XL.MEANING
    ,GoalSheetHeaderEO.status_code
    ,GoalSheetHeaderEO.start_date GS_START_DATE
    ,GoalSheetHeaderEO.end_date GS_END_DATE
    ,GoalSheetHeaderEO.PERIOD_YEAR
    ,GoalSheetHeaderEO.LAST_UPDATED_BY
    ,GoalSheetHeaderEO.LAST_UPDATE_DATE
    ,GoalSheetHeaderEO.LAST_UPDATE_LOGIN
    ,DECODE(GoalSheetHeaderEO.PERIOD_YEAR,(SELECT PERIOD_YEAR FROM GL_PERIODS WHERE PERIOD_SET_NAME = 'Fiscal Year' AND SYSDATE BETWEEN YEAR_START_DATE AND END_DATE),DECODE(GoalSheetHeaderEO.STATUS_CODE,'AUTH','copy_enabled','copy_disabled'),'copy_disabled') COPY_FLAG
    ,DECODE(GoalSheetHeaderEO.SRP_GOAL_HEADER_ID,null,'create_enabled',DECODE(GoalSheetHeaderEO.status_code,'AUTH','create_enabled','create_disabled')) CREATE_FLAG
    ,'N' CHECKED
    from
    xxg2c_srp_goal_headers_all GoalSheetHeaderEO
    ,cn_comp_plans_all comp
    ,jtf_rs_salesreps rs
    ,jtf_rs_resource_extns rse
    ,xxg2c_lookups xl
    ,shr_strct_nodes nod
    ,g2c_goal_shr_emp_assignments_v emp
    public void updateGoalSheet(){
    OAViewObject vo = (OAViewObject)getGoalSheetResultGAVO1();
    GoalSheetResultGAVORowImpl row = (GoalSheetResultGAVORowImpl) vo.first();
    while (row != null)
    if (selectFlag != null)
    if (selectFlag .equals("Y"))
    //row.setAttribute("GsStatusCode",Constants.GOAL_SHEET_STATUS_CODE_DEL);
    row.setStatusCode(Constants.GOAL_SHEET_STATUS_CODE_DEL);
    row = (GoalSheetResultGAVORowImpl) vo.next();
    getTransaction().commit();
    thanks for the help.
    Lei

  • Insert/Update table via DBLink

    I have a situation where the table that I want users to be able to maintain is owned by a different schema on a different database.
    TABLE1 is owned by SCHEMA1 on DB1
    select,insert,update,delete is granted to SCHEMA2 on DB1
    DBLINK is a DBLink from SCHEMA3 on DB2 to SCHEMA2 on DB1
    HTMLDB is running on SCHEMA3 on DB2
    This setup is necessary because SCHEMA1 is the main data repository, SCHEMA2 has limited access to SCHEMA1 for security reasons, and SCHEMA3 is where HTMLDB is installed
    i.e.
    SCHEMA3@DB2 --> SCHEMA2@DB1 --> SCHEMA1.TABLE1@DB1
    Whenever I try to use the wizards to create a standard Report/Form combo it fails when selecting the table for the Form - table TABLE1 is not in the select list because it's not owned by the schema assigned to the workspace.
    So I created a temporary copy of the table in SCHEMA3 and used the wizard to create the Report/Form combo. This works fine.
    I then dropped the table from SCHEMA3 and created a synonym pointing to SCHEMA1.TABLE1@DBLINK
    The report still works fine but the Automated Row Fetch fails with the error
    "ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
    I presume this is because it's specifically looking for a table owned by SCHEMA3 when in fact it's a synonym.
    Is there any way around this without recoding all the optimistic locking, insert, update and delete code?

    Doh! After all that I answered my own question ... it's really simple.
    Create a view in SCHEMA3 pointing to the table in SCHEMA1 and create the Report/Form based on the view
    e.g. CREATE VIEW table1 AS SELECT * FROM schema1.table1@dblink;
    (Where's the Delete Post option when you need it?! ;)

  • Updating an oracle table with data from an xml string

    Hi - I need help with the following problem:
    We have a table in the database with a field of xml type. We are going to take each string that gets inserted into the xml type field in the 'xml table' and parse the data into another oracle table with corresponding fields for every element.
    once the record gets inserted into the 'real table' the user might want to update this record they will then insert another record into the 'xml table' indicating an update(with a flag) and then we need to update the 'real table' with the updated values that have been sent in.
    The problem that I am having is that I do not know how to create this update statement that will tell me which fields of the table need to be updated.(only the fields that need to be updated will be in the xml string in the 'xml table').
    Please help me with this - ASAP!

    Are you wanting to upload the file through an Oracle Form or just upload a file? If it isn't via forms, then you should probably post your question here: {forum:id=732}
    You also should post the version of Forms, Database, etc...
    As far as uploading files via a text file, I personally like to use Oracle External Tables even in Forms. You can Google that and there is plenty of information. If you search this forum, then you will see lots of people use UTL_FILE in forms, but you can Google that also for more information.

  • Can't update a sql-table with a space

    Hello,
    In a transaktion I'm getting some Values from a SAP-ERP System via JCO.
    I update a sql-table with this values with a sql-query command.
    But sometimes the values I get from SAP-ERP are empty (space) and I'm not able to update the sql-table because of a null-value exception. (The column doesn't allow null-values). It seems that MII thinks null and space are the same.
    I tried to something like this when passing the value to the sql-query parameter but it didn't work:
    stringif( Repeater_Result.Output{/item/SCHGT} == "X", "X", " ")
    stringif( Repeater_Result.Output{/item/SCHGT} == "X", "X", " ")
    this works but I don't want to have a "_"
    stringif( Repeater_Result.Output{/item/SCHGT} == "X", "X", "_")
    Any suggestions?
    thank you.
    Matthias

    The problem is Oracle doesn't know the space function. But it knows a similar function: NVL --> replaces a null value with something else. So this statement works fine for me:
    update marc set
    LGort = '[Param.3]',
    dispo = '[Param.4]',
    schgt = NVL('[Param.5]', ' '),
    dismm = '[Param.6]',
    sobsl = NVL('[Param.7]',' '),
    fevor = '[Param.8]'
    where matnr = '[Param.1]' and werks = '[Param.2]'
    If Param.5 or Param.7 is null Oracle replaces it with a space in every other case it is the parameter itself.
    Christian, thank you for your hint with the space function. So I remembered the NVL-function.
    Regards
    Matthias

  • Adding data to multiple tables using one form in Access 2010?

    Hi All,
    I have a access database with two tables and I want to create a single form to enter data into that tables.
    How to adding data to multiple tables using one form in Access 2010?
    I don't have to much knowledge of access database?
    Please help me
    Thanks
    Balaji

    You really don't enter identical data into 2 tables.  You enter dat into one single table, and then you have an unique identifier that maps to another table (you have a unique relationship between two tables). 
    Maybe you need to read this.
    http://office.microsoft.com/en-001/access-help/database-design-basics-HA001224247.aspx
    Think about it this way...  What is you update data in 2 tables, and then the data in one of those tables changes, but the data in the other table does NOT change.  WHOOPS!!  Now, you've got a BIG problem.  For instance, you have a customer
    named Bill Gates.  In one Table you update Bill's address to 1835 73rd Ave NE, Medina, WA 98039 and in the other table you accidentally update Bill's address to 183 73rd Ave NE, Medina, WA 98039.  Now you have 2 addresses for Bill.  Why would
    you want that???  Which is right?  No one knows.  If you have one address, you just have to update one address and if there is a mistake, you just have to update one address, but you don't have to waste time trying to figure out which is right
    and which is wong...and then update the one that is wrong.
    Post back with specific questions.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • How to add new row and update existing rows at a time form the upload file

    hi
    How to add new row and update existing rows at a time form the upload file
    example:ztable(existing table)
    bcent                      smh            nsmh         valid date
    0001112465      7.4                       26.06.2007
    0001112466      7.5                       26.06.2007
    000111801                      7.6                       26.06.2007
    1982                      7.8                       26.06.2007
    Flat file structure
    bcent                       nsmh         valid date
    0001112465     7.8     26.06.2007  ( update into above table in nsmh)
    0001112466     7.9     26.06.2007  ( update into above table in nsmh) 
    000111801                     7.6      26.06.2007 ( update into above table in nsmh
    1985                      11              26.06.2007   new row it should insert in table
    thanks,
    Sivagopal R

    Hi,
    First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
    Then :
    Loop at it.
    *insert or modify as per your requirement.
    Endloop.
    Regards,
    Srilatha.

Maybe you are looking for

  • How do I pass the part of the url that matched url-pattern to JSP?

    Hello, I have a web app called ptest.war deployed in JBoss. In my web.xml I have: <servlet-mapping> <servlet-name>GetImage</servlet-name> <url-pattern>/images/*</url-pattern> </servlet-mapping> and: <servlet> <servlet-name>GetImage</servlet-name> <js

  • Is there anything I can do to solve this problem?!

    Hi everyone, I bought a brand new 64GB iPad 3G 2 days ago and when I turned it on, the screen that has the usb cord pointing to iTunes showed up - all well and fine. I plugged it into my Macbook using the usb that came with it, but iTunes didn't resp

  • R3 to CRM - user not getting transferred

    Hi, Please give inputs for this error u2013 u201CUser not transferred from R3 to CRMu201D Even little guidance will help me. Regards, Arnab

  • Mass Storage Drivers to save Zen Nano Plus...[HALLELUJAH SOLVEDDDD!

    Okay, my Zen Nano Plus was working fine until about two days ago, when it just started shutting off. The battery was full, and I switched batteries three times, but it still wouldn't stay on. I looked through the forums, and there was advice to updat

  • Stored Procedure Emergency

    My code below does not compile could anyone help? CREATE OR REPLACE Function show(iorec in out rectype) IS DECLARE v_Table NumTab := iorec; BEGIN LOOP IF v_Table.EXISTS(v_Count) THEN DBMS_OUTPUT.PUT_LINE('v_Table(' || '); ' || v_Table(v_Count)); v_Co