How to creat a new record in the Db table

Dear all,
I am trying to update a DB table and i want to create new records in this table every time the user changes something on the screen,
I want to append the DB table and not update it how should  i go about this???
Regards,
Vijay.
PS:

Hi
User INSERT statement for the same...
Please read the help...
Cheers,
Hakim

Similar Messages

  • How to find out the user who has created  a new field in the custom table.

    How to find out the user details who has created  a new field in the custom table.
    Thanks,
    Joan

    Hi Jesudasan ,
    You can know the user details with version management.Please find the
    below procedure to know.
    Go to table->Utilities tab->version->Version management->Compare the previous one .
    Hope this solves the issue,Let me know if you have any issues.
    Thanks,
    Rajani

  • How to create a new folder within the video folder in media

    Hi, I'm trying to figure out how to create a new folder within the video folder in media. I can easily create new folders within the pictures folder but not in videos.....Why??? Thanks in advance for your help.
    Message Edited by dany_s on 06-25-2009 03:58 PM
    Solved!
    Go to Solution.

    Hello,
    I think you can try two things : the soft reboot, and if it does not work, the hard reboot. Don't worry, you can't lose data with these two reboots.
    Soft reboot :
    1) Hit the three following keys at the same time :
    - Alt
    - Right Shift
    - Delete
    2) wait 2 minutes for the Blackberry to wake up.
    Hard reboot :
    1) your Blackberry device is on
    2) remove the battery and wait for a minute
    3) Put the battery back
    4) wait 5 minutes for the device to wake up.
    Please tell us if it works for you.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Creates new record in the Qualifier Table while importing.

    Hi Guys,
    When sending new bank details to MDM, then MDM creates a new record in the Bank Detail qualified lookup table. This is OK. But when sending exactly same bank details again to MDM, then MDM creates again a new record in the Bank Detail qualified lookup table. I would expect that it
    first performs the Automap and only if it cannot find a value, it will add a new record!
    Can you guys help me out from this?
    Best Regards
    Devaraj PK

    Hi Devaraj,
    Please check these configuration options of Import Manager
    1. Default Qualified Update - The default setting for whether incoming source subrecords either are appended to, completely replace,or update the set of existing qualified links of a qualified lookup field when updating existing records.
    2. Default Matching Qualifiers - The default setting for which qualifiers to use as matching qualifiers when matching existing qualified links when updating existing records.
    Any operation on the qualified tables will depend on the above two options.
    Reward if found useful
    Regards,
    Jitesh Talreja

  • How to create a new folder at the specified FTP location

    Hi everyone,
    Please guide me for the following query:
    How to create a new folder at the specified FTP location if the folder does not exists at that location through ABAP program.
    Please guide.
    Thanks and Regards
    MP

    Have a look at the function group SFTP. Use function module ftp_command to create the directory sending the mkdir command.
    Use the where-used list to find sample programs.

  • Using combination of insert into and select to create a new record in the table

    Hello:
    I'm trying to write a stored procedure that receives a record locator parameter
    and then uses this parameter to locate the record and then copy this record
    into the table with a few columns changed.
    I'll use a sample to clarify my question a bit further
    -- Create New Amendment
    function create_amendment(p_mipr_number in mipr.mipr_number%TYPE, p_new_amendment_number in mipr.amendment_number%TYPE)
    return integer is
    new_mipr_id integer;
    begin
    THIS is causing me grief See comments after this block of code
    insert into mipr
    (select mipr_id from mipr where mipr_number=p_mipr_number),
    (select fsc from mipr where mipr_number=p_mipr_number),
    45,
    (select price from mipr where mipr_number=p_mipr_number),
    practical,
    (select part_number from mipr where mipr_number=p_mipr_number);
    THe above will work if I say the following
    insert into mipr
    (select * from mipr where mipr_number=p_mipr_number);
    BUt, Of course this isn't what I want to do... I want to duplicate a record and change about 3 or 4 fields .
    How do I use a combination of more than one select and hard coded values to insert a new record into the table.
    /** Ignore below this is fine... I just put a snippet of a function in here ** The above insert statement is what I need help with
    select (mipr_id) into new_mipr_id from mipr where mipr_number=p_mipr_number + amendment_number=(select max(amendment_number) + 1);
    return new_mipr_id;
    end;
    THANK YOU IN ADVANCE!
    KT

    function create_amendment(p_mipr_number in mipr.mipr_number%TYPE)
    return integer is
    new_mipr_id integer;
    tmp_number number;
    tmp_mipr_id integer;
    begin
    tmp_number :=(select max(amendment_number) from mipr where mipr_number=p_mipr_number);
    Question:
    tmp_number :=1; works..
    tmp_number doesn't work with the select statement?
    Obviously I'm a novice! I can't find anything in my book regarding tmp variables... What should I look under is tmp_number a
    variable or what? In my Oracle book, variable means something different.
    Thanks!
    KT
    I have the following code in my stored procedure:
    Good luck,
    Eric Kamradt

  • How to Create A new Database in the oracle 10g XE

    i have oracle 10g XE i tried to create a new database but its giveing me error when i execute the sql command that is create database testDatabase how to create a new database in oracle 10g XE

    Hi there 785434,
    (This is a generic SQL question relating to Database Triggers, please post future questions of this type into the relevant forum area.)
    Moderator, please move this if able
    I use Before Update and Before Delete Triggers to record a 'snapshot' of the row being changed in my applications.
    Example:
    CREATE TABLE TEST
    DATA VARCHAR2(64 CHAR),
    CREATING_USERID VARCHAR2(20 CHAR) DEFAULT user NOT NULL,
    CREATED_DATE DATE NOT NULL,
    CHANGED_BY_USERID VARCHAR2(20 CHAR),
    CHANGED_DATE DATE
    LOGGING
    STORAGE
    (MAXEXTENTS UNLIMITED);
    CREATE TABLE TEST_HISTORY
    DATA VARCHAR2(64 CHAR),
    CREATING_USERID VARCHAR2(20 CHAR) DEFAULT user NOT NULL,
    CREATED_DATE DATE NOT NULL,
    CHANGED_BY_USERID VARCHAR2(20 CHAR),
    CHANGED_DATE DATE,
    CHANGE_DESCRIPTION
    NOLOGGING
    STORAGE
    (MAXEXTENTS UNLIMITED);
    CREATE OR REPLACE TRIGGER TRG_BU_TEST
    BEFORE UPDATE ON TEST FOR EACH ROW
    BEGIN
    INSERT /*+ append */ INTO TEST_HISTORY
    (DATA, CREATING_USERID, CREATED_DATE, CHANGED_BY_USERID, CHANGED_DATE, CHANGE_DESCRIPTION)
    VALUES
    (:old.DATA, :old.CREATING_USERID, :old.CREATED_DATE, USER, SYSDATE, 'UPDATE');
    END;
    CREATE OR REPLACE TRIGGER TRG_BD_TEST
    BEFORE DELETE ON TEST FOR EACH ROW
    BEGIN
    INSERT /*+ append */ INTO TEST_HISTORY
    (DATA, CREATING_USERID, CREATED_DATE, CHANGED_BY_USERID, CHANGED_DATE, CHANGE_DESCRIPTION)
    VALUES
    (:old.DATA, :old.CREATING_USERID, :old.CREATED_DATE, USER, SYSDATE, 'DELETE');
    END;
    Using triggers like this will record who made an update or delete to the database and record the row before it was changed.
    Note that this method might not be suitable for very high transaction rates.
    You will need to 'clear' these history tables as part of routine maintenance.
    Hope that this Helps.
    Ronald.

  • How to create a new record using a custom method?

    Hi I want to create Jdev 11 a new record using the contructor following in the footsteps of http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtAnchor.CACCIJAG/vtTopicFile.adfdevguide%7Cweb_adv~htm/.
    My problem is the following.
    Messages for this page are listed below.
    Error
    JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    Error
    java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    Error
    Object: null is not a known entity type.
    Someone can help me?
    Cristian.

    Hello Frank, this tutorial make it and was successful but, what I am trying to do is add a new record in the table departments. The steps undertaken are suguientes
    drag over page the contructor department, with a submit, this will drag on the button, the method presistencia, set binding action with "$ (bindings.Departments.result)", and when running the application gives me the error
    Nov 2, 2007 10:06:22 PM oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: ADFc: JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=java.lang.IllegalArgumentException: Object: null is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: null is not a known entity type.
    I need to know if what I am doing is right, because I followed the steps of the tutorials and it is not functioning the insertion of a new record.
    Thank you thank you.

  • How to create a new record in crm?

    Hi,
    Have any one tried creating a new crm record using the function crm_order_maintain?
    I noticed that there is a ref_guid in each of the table structures in the exporting parameters. Is it a standard ref_guid for all creation objects?
    Thanks in advance,
    Jen

    In CRM every object contains a 32 bit guid which is always unique and is generated by the system.You need not to give this guid while creating an object.
    Here is a sample code for creation of a quotation:
    DATA:
        t_object_to_save    TYPE crmt_object_guid_tab,
        t_saved_objects     TYPE crmt_return_objects,
        t_objects_not_saved TYPE crmt_object_guid_tab,
        t_new_orders        TYPE crmt_orderadm_h_comt,
        s_new_order         TYPE crmt_orderadm_h_comt,
        t_input_field       TYPE crmt_input_field_tab,
        s_input_field       TYPE crmt_input_field,
        s_fieldname         TYPE CRMT_INPUT_FIELD_NAMES.
    s_new_order-handle = 1.
    s_new_order-mode = 'A'.
    s_new_order-process_type = 'QUOT'.
    s_input_field-ref_handle  = 1.
    s_input_field-ref_kind    = 'A'.
    s_input_field-objectname  = 'ORDERADM_H'.
    s_input_field-logical_key = space.
    CLEAR s_fieldname.
    s_fieldname-fieldname = 'MODE'.
    APPEND s_fieldname TO s_input_field-field_names.
    s_fieldname-fieldname = 'PROCESS_TYPE'.
    APPEND s_fieldname TO s_input_field-field_names.
    INSERT s_input_field INTO TABLE t_input_fields.
    INSERT s_new_order INTO TABLE t_new_orders.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
      CHANGING
        ct_orderadm_h     = t_new_orders
        ct_input_fields   = t_input_fields
      EXCEPTIONS
        error_occurred    = 1
        document_locked   = 2
        no_change_allowed = 3
        no_authority      = 4
        OTHERS            = 5.
    if sy-subrc ne 0.
    clear s_new_order.
    read table t_new_orders
    into s_new_order
    INDEX 1.
    if sy-subrc ne 0.
    l_object_to_save = s_new_order-guid.
    INSERT l_object_to_save INTO TABLE t_objects_to_save.
    CALL FUNCTION 'CRM_ORDER_SAVE'
      EXPORTING
        it_objects_to_save   = t_objects_to_save
      IMPORTING
        et_saved_objects     = t_saved_objects
        et_exception         = t_exceptions
        et_objects_not_saved = t_objects_not_saved
      EXCEPTIONS
        document_not_saved   = 1
         OTHERS               = 2.
    if sy-subrc eq 0.
    call function 'BAPI_TRANSACTION_COMMIT'.
    endif.
    endif.
    <b>REWARD FULL POINTS.</b>
    cheers,
    ashish.

  • How to create a new instance of the pdf you are using within the pdf

    I am looking for the ability to create a new blank clone of the
    current pdf I am filling out. A department would like to ability to
    fill out as many of one form as needed. Sometimes it would be one
    form, other times it would be 15. They would like to ability to click
    a "new" button and get a new blank clone to fill out. Has anyone
    tried this or does anyone know how to do this?

    I am looking for the ability to create a new blank clone of the
    current pdf I am filling out. A department would like to ability to
    fill out as many of one form as needed. Sometimes it would be one
    form, other times it would be 15. They would like to ability to click
    a "new" button and get a new blank clone to fill out. Has anyone
    tried this or does anyone know how to do this?

  • How do you Copy a row to create a new row in the same table?

    Hi,
    We have a PurchaseOrderHeaderView object and on click of Copy Purchase Order we want to copy a row in PURCHASE_ORDER_HEADER table to create a new row. We don't want to copy the primary key only the remaining fields.
    Regards
    Madhuri

    If you use ADF BC, you can create a new row programatically via createRow and use a sequence to create the Id and use the "original" row (probably the current row in the view object) to copy the values from to newly created row. Then use insertRow and commit to create the copied row.
    Ronald

  • How to create a new field in predefined database table

    Hi friends,
    now i am working on scripts. In script form i have got a new field(vehicle number in goods receipt against purchase order) which is not available in any table.  i think we have to create a new field in database table.how to create  field in a pre defined data base table.

    Hi,
    To add new field to table, there are two option.
    1.Include structure and
    2. append struct..
    the best way is append structure.
    goto se11>give your table name>there is append structure button, when you will click on it, it will create a 'append  structure',
    after activating it, it will add fields to your table.

  • Insert a new record in the database table in between the records.

    i va a database table which ve 100 records. but i want to insert my new record  as 50th record. how i want to  proceed?
    thanks ,
    velu.

    V,
    This is an odd request.  Why?
    Ignoring that, you can ATTEMPT to insert into the 50th position IF:
    1) The DB table has just had the primary key index re-built/re-shuffled to GUARANTEE that it IS in primary key order
    2) And the primary key of the new record is built so that it follows the 49th record
    Regardless, once this table has activity against it, its sort order can/will get out of promary key order (with adds/changes/deletes). 
    But when you select data from it, you can use ORDER BY or an ABAP SORT to organzie the date as needed.
    Again... not sure WHY you need a record in a particular physical position... who cares... it is a relational DB.

  • How to create a new record using ODataModel?

    Hi,
    I am new to UI5 and so ODataModel. I have tied one table to an ODataModel.
    How would I send request to a server so that I will have a new entry created at server end?
    I googled this and I tried following:
    1. Called createEntry method on ODataModel as follows:
    sap.ui.getCore().byId("maintainRolesTable").getModel().createEntry("DERMASSIGNMENTSet",{
    "DeUser":"C5192081",
    "SeqNo":"X",
    "Childbp":"C5192081",
    "ChildbpName":"",
    "Id":"2",
    "RelationType":"",
    "Parentbp":"I0656568",
    "ParentbpName":""
    2. I called then submitChanges method on the model as follows:
    sap.ui.getCore().byId("maintainRolesTable").getModel().submitChanges();
    This is giving error as follows:
    POST https://lsftdc00.wdf.sap.corp:1443/sap/opu/odata/sap/ZSECENTRAL_SRV/DERMASSIGNMENTSet 403 (Forbidden) datajs.js:17
    2014-06-05 16:53:32 The following problem occurred: HTTP request failed403,Forbidden,CSRF token validation failed -
    When I try to use ajax call instead of these methods, I get error as follows:
    var obj={
      "Childbp": "C5192081",
      "ChildbpName": "Supriya Kale",
      "DeUser": "C5192081",
      "Id": "8",
      "Parentbp": "I0656568",
      "ParentbpName": "",
      "RelationType": "RESOURCE MANAGER",
      "SeqNo": "1",
                 "metadata":{
                     "id":"https://lsftdc00.wdf.sap.corp:1443/sap/opu/odata/sap/ZSECENTRAL_SRV/DERMASSIGNMENTSet(DeUser='C5192081',SeqNo='x')",
                     "uri":"https://lsftdc00.wdf.sap.corp:1443/sap/opu/odata/sap/ZSECENTRAL_SRV/DERMASSIGNMENTSet(DeUser='C5192081',SeqNo='x')",
                     "type":"ZSECENTRAL_SRV.DERMASSIGNMENT"
      $.ajax({
      type: "PUT",
      dataType: "json",
      url: "https://lsftdc00.wdf.sap.corp:1443/sap/opu/odata/sap/ZSECENTRAL_SRV/DERMASSIGNMENTSet",
      data: JSON.stringify(obj)
      }).success(function( msg ) {
      alert('HI read operation complete....................................');
      }).error(function(msg){
      alert("error occurred");
    I get following error:
    PUT https://lsftdc00.wdf.sap.corp:1443/sap/opu/odata/sap/ZSECENTRAL_SRV/DERMASSIGNMENTSet 403 (Forbidden)
    Can anyone tell me if I am going wrong in calling methods? Help would be appreciated.
    Thanks,
    Supriya Kale

    Hi Supriya,
    you can take a look at this blog. Building a CRUD Application with SAPUI5 Using Odata Model
    Scroll down to Create Operation.
    There you can see that the author is also first fetching CSRF and the calling CREATE operation.
    For simple example see correct answer in this thread.
    HTTP request failed403,Forbidden,CSRF token validation failed
    Best regards,
    Peter

  • How to insert new record in the database table using the Jdeveloper

    Hi Masters
    I am new Bee in j2EE developing side and i ahve oracle jdeveloper 9i version is 9.0.4
    And now I wann to know that how can i create the web application that will enter the Data in the HTML FORM and save that data into the Table emp plz tell me step by step
    thx in advance

    the steps to follow -
    download JDeveloper 10.1.2 from OTN (9.0.4 is very old and has some features that won't be in the next releases).
    Then follow the ADF Workshop from the JDeveloper home page on OTN.
    (If you have to use 9.0.4 then look for the archives of JDeveloper on OTN)
    for example:
    http://www.oracle.com/technology/products/jdev/viewlets/viewlet-archive0903.html

Maybe you are looking for

  • I deleted all my events in iPhoto

    Hi some how i have managed to delete all my events in iphoto i do not have time machne set up yet and would really like to get them all back can anyone offer any help, do Mac have a system restore point like windows, am still getting use to the Mac o

  • Safari crashes on opening, after latest security update

    Yesterday I used Software update to install the latest security update. Upon restart Safari crashes on opening. Other browsers function without problem. Permissions repaired. Included Crash log: Date/Time: 2008-02-24 09:35:01.872 -0800 OS Version: 10

  • More DataFlavors copied to the clipboard/used in D&D in one step

    Hallo, For my GUI app. I would like to enable different types of information to copied to the clipboard. e.g. object type 1 - Document ID ( actual row's document ID from JTable ) - to copy document type object type 2 - string representation ( columns

  • Make to order ,sales from stock

    Hi, What are the important differences between make to order and sales from stock? with respect to availability, scheduling and customer stock Thanks

  • How to fade in titles

    I can successfully use Final Cut Express to make my title zoom in letter by letter while doing loop-de-loops and pulsating ... but how do I simply do a fade in/fade out of the entire title?