Set status on a new record

Hello Experts,
-- I am loading data from ODS1 to ODS2.
-- ODS1 sales order number is one of the key.
-- ODS2 has only one key : sales order number.
-- requirement: when a new sales order number is populated in ODS2 it has to be checked if this a new sales order number if it is, there needs to be a status field filled with status 'N' for new.
-- ODS2 has data in range of 35million.
Solutions
--1) Do a lookup of the ODS2 in the update routines to the status
--2) Achieve it by recordmode.
solution 1 is not recoemmended since the lookup on a ever growing huge table might be a very costly in terms of time and processing.
would like to know if this can be achived by reocordmode, this there any particular value needs to be specified in the reocrdmode ? any pointers or info would be appreciated.
Many thanks in adv,
Sandhya

Maik suggests a valid solution, but its validity depends from the datasource you are using...are you interested to know when a new order is created, but are you using header datasource (HDR) or something else ? In this last case, recordmode will highlight, for example, NEW item or schedule line and not a really new document !
Hope it helps!
Bye,
Roberto

Similar Messages

  • Set atribute value from session bea while creating new record using ADF BC

    hi,
    i want to set the value of new record attribute from session bean while
    using ADF BC using creation form. how can i set the value of a perticular arribute of a record to the value stored in session bean.

    Chapter 9 in the ADF Developer's Guide for Forms/4GL Developers (available on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html ) describes how to accomplish this along with other typical kinds of programmatic business logic.

  • (Administration - Marketing - Import), you can set a parameter value "Import mode" for what to do in case of duplication as "update existing records", "Import new records". The final report of this import is presented as a text file that can be viewed in

    Administration - Marketing -> Import, you can set a parameter value "Import mode" for what to do in case of duplication as "update existing records", "Import new records". The final report of this import is presented as a text file that can be viewed in Business Administration - Marketing -> Import -> Exceptions. Whatever the exception, including duplication import occurs during import and recorded in a text file.   What are the fields that determine the duplicity? How I can I can change those?

    You will be returned anything that is in the option's value parameter. What is displayed in the dropdown and what is put in the value attribute do NOT need to be the same, so maybe you should start there.

  • How to know the record status changing from NEW to INSERT while keying-in a field

    Thanks to Kevin Clarke & Steven Declercq for helping me out with my previous queries.
    Can any one out there tell me how to intercept when the reocrd status is changing from NEW to INSERT (while a field is being keyed-in in a blank(new) record).
    Thanks
    Brijesh

    Hi Kevin,
    Thanks.
    Unfortunately, I could'nt find a trigger named 'ON-DATABASE-RECORD'.
    Are you sure it exists?
    Cheers
    Brijesh

  • When-new-record-instance

    Hi All !
    I have a form, where in
    *Trigger:when new form instance*
    enter_query;
    *Block level Trigger :when-new-record-instance*
    :empaply.employeeid:=:global.employeeid;
    select employee_id,firstname into :empaply.employeeid,:empaply.employeename
    from pim_emplpersonalinfo where employee_id =:global.employeeid;
    if :empaply.leavetype='Casual Leave' then
    :empaply.status1:='Not Applicable';
    :empaply.status2:='Not Applicable';
    :empaply.status:='Pending Approval';
    elsif :empaply.leavetype='Earn Leave' then
    :empaply.status1:='Pending Approval';
    :empaply.status2:='Pending Approval';
    :empaply.status:='Pending Approval';
    elsif :empaply.leavetype='Earn Leave' and :empaply.status='Rejected' then
    :empaply.status1:='Not Applicable';
    :empaply.status2:='Not Applicable';
    elsif :empaply.leavetype='Earn Leave' and :empaply.status1='Rejected' then
    :empaply.status2:='Not Applicable';
    end if;And for a push button
    *Trigger: when button pressed*
    execute_query;Now my issue is the initial value i have set in the new record instance is not working automatically, it works when i click any other text box in my form or when i scroll down..
    What can i down to overcome this?
    Pls help !
    Thanks and Regards
    user 10685325
    Edited by: user10685325 on Jun 22, 2009 1:19 AM

    Hai,
    The NEW-RECORD-INSTANCE Trigger will work only when the cursor moves to that record.
    write in the POST-QUERY Trigger of the block.
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • Creating new records while querying existing record

    Hi,
    I have one master - detail form.
    First i created 1 record. Request ID is the primary key. Now request id generated. For ex.: 10
    Request Id, date, requestor , location, status fields are in header block.
    In lines block, i hv some other fields.. and one field called 'Activity'.
    While creating first record, the activity will be 'New'.
    Then i'll query the record '10'.
    when i'm changing the activity 'New' into 'Upgrade', it should create new record with new request ID.
    How to do this?
    I hv written procedure that, i'm taking field values to local variables. Then assigning the local variable values to field values.
    It is not creating as new record. It overwriting the existing record with new values. Existing record is missing.
    Pl. give steps.
    Thanks
    Kavi

    Hi,
    Okk, you will have to do two things. Create two trigger on block level on which you want to do your changes.
    1. First trigger. (PRE-UPDATE)
    In pre-update trigger u will have to write the complete insert statement into the same table with new req id. like
    DECLARE
    vReqNo DATA_TYPE;
    BEGIN
    SELECT MAX(REQ_ID)
    INTO vReqNo
    FROM your_table;
    INSERT INTO your_table
    (req_no, fields....)
    VALUES
    (vReqNo, :forms_values);
    END;
    2. Create 2nd trigger on block level (ON-UPDATE)
    write in this trigger
    NULL;
    for viewing the inserted record. What u have to do is in ON-UPDATE after null; create one timer NO_REAPEAT.
    and in timer u will have to set the block property to req_id = generated_req_id_from_pre_update_trigger and
    execute_query;
    hope it will work...
    -Ammad

  • Forms 6i automaticlly create new record (I don´t want it)!

    When we are working in forms 6i it always validate new record creation, when you click into any field or when you do a Do_Key('next_record');
    But I want to does not validate it, when I´m passing from records and when I click at any blank field. How to block it to only enter in create record mode if make explicit Do_Key('Create_Record'); built-in tag?
    I have tried to use on-error mode to validate messages with error_code but doesn´t work.
    Thanks all for patience. Cya!
    Message was edited by:
    Inocencio

    coz every time the message box raise ask me to save current datas, I don´t want it.Usually, when you move a cursor into a new record, the record status remains 'NEW', but validation triggers (When-validate-item and When-validate-record) will run as you tab through the fields.
    If these triggers set any values in any of the columns of the row, even setting a value to null, the record status changes from 'NEW' to 'INSERT' and that is why your form is asking if you want to save your changes.
    So what you need to do is check each of your validation triggers, and make sure they do not set any values needlessly. In your situation, I do this at the beginning of each validation trigger:
      If :System.Record_Status = 'NEW' then
        Return;
      End if;The Return causes the validation trigger to stop running before it sets any values in the record, so the record status remains 'NEW' until the user actually keys a value into one of the fields in the record.

  • Update old records and new records to ODS.

    Hi Experts,
    Our requirement: Want to know a method to reset the Recordmode field in Start/Update routine.
    We have 3 ODS. as the picture.
    ODS_2
    ODS_3   (look-up)
    ODS_1
    ODS_3 is lookup table in start routine of ODS_2. We load via delta daily from ODS_1 to ODS_2. In that we have code in start routine as follows:
    DATA: it_tab TYPE STANDARD TABLE OF /bic/aods_100 WITH HEADER LINE.
      CLEAR it_tab[].
      SELECT *
          FROM /bic/aods_100
          INTO TABLE it_tab
          FOR ALL ENTRIES IN DATA_PACKAGE
          WHERE /bic/main_io = DATA_PACKAGE-/bic/main_io.
      LOOP AT it_tab
        WHERE /bic/attr2_nav = ''    (null)
        OR /bic/attr2_nav = ' '.
        delete data_package where /bic/attr2_nav  = it_tab-/bic/attr2_nav.
      ENDLOOP.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    For the above code we are deleting the data_package. But we want the same record to come tomorrow as new record into the data_package, so that if the the field /bic/attr2_nav is not null we can update it.
    But our problem is that once we say delete data_package that record is not updating in the next delta load.
    Please help for this issue.

    You can't set the recordmode on a record in any way that will make it get sent again in the next delta load.  In your data mart scenario BI is keeping track of which records have been sent to the target at the request level.  So, once you have run a delta load from ODS_1 to ODS_2 the Data Mart Status of the Request is set.  You can re-send the whole request by resetting the Data Mart Status of the Request, but you can't selectively re-send individual records from an already processed request.
    Instead, I think you need to redesign your model like this:
    Add the lookup characteristic to ODS_1.  Create a self-update from 8ODS_1 --> ODS_1 and in the start routine perform the lookup on ODS_3 and populate that value into ODS_1.  Create a full load InfoPackage from 8ODS_1 --> ODS_1 and on the data selection tab filter for the lookup value = # (blank).  This will populate the lookup characteristic into ODS_1 from ODS_3 when it is found.
    In the start routine from 8ODS_1 --> ODS_2 delete all the records out of the data package where the lookup field is blank.
    So the steps to load would be:
    1) Load ODS_1 from whatever its source is
    2) Run the self-update from 8ODS_1 --> ODS_1
    3) Run the delta from 8ODS_1 --> ODS_2
    Run these every day or however often you perform the load.
    I think that should give you the desired behavior -- that all records from ODS_1 only flow through to ODS_2 when the lookup against ODS_3 is successful, regardless of whether that is true when a record is first loaded into ODS_1 or only becomes true later after ODS_3 is updated.

  • Filemaker Pro Import New Records

    I am trying to import only new records from a coom delimted file into my filemaker data base. Each time I import, all of the records get imported and not just the ones with new id numbers. This is a list of about 9000 records and it would be very time consuming to weed out all of the duplicates. Does anyone have a solution for this?
    Any ideas would be welcome.
    AKS

    Hi Con,
    As a practical scenario, your file may contain records for update as well as create action during imports process.
    MDM has got a standard functionality for this as a import action which can be sent at a global level or at a record level based on the matching criteria.
    The process is as below:
    1. Select the source and destination
    2. Do field mapping
    3. Select fields for Value Matching (These fields are  used to identify duplicates)
    4. Based on a match type the import action can be defined as a global action.
    For individual records, you can set the action in below Record Matching window.
    Hope this clarifies.
    Regards,
    Sambhaji
    If this has answered you question, kindly change the status of question to "probelm resolved" and very helpful answer.

  • How to sort the new records when you input them in a Forms bloc?

    Hi,
    I have a multi-record data block, how can I do to sort the records in this block when you enter some new records? for instance, you have a table(emp), 3 coloumns(empid, empname, deptno). when you enter new records, how can you do to make records order by deptno? not in quiry status.
    Thanks. Please help me!

    I think Steve has answered your question and I doubt that what Frank is suggesting is what you are actually trying to do.
    However,
    from the top of my head I don't know if you can set the order by clause on a datablock dynamically <<-Yes you can set it with set_block_property. You don't really want to put it in the where clause because if the user enters query criteria in database fields, they will get appended after the order by and the query will fail.

  • Update new record in database table

    I'm working with TestStand 4.2 and MySQL database with user-defined tables.
    There is "test_results" table with autoincrement "id" (primary index).
    I want to:
    1. write a new record to the test_results table - some data and status "Running"
    2. run a test (pass to a test sequence its "id", test uses this id for writing data to database)
    3. update the record: set execution time and update status.
    So, the steps are as below:
    1. Open database
    2. Open SQL statement: "select * from test_results".
    3. Data Operation: operation - "Set and Put", record to operate on - "New - Create New Record". In the "Column/Parameter Values" tab I set the new record values.
    Here I want to retrieve the new record "id". How to do it?
    Thanks in advance.

    I am not sure how to implement this in Test Stand, but from an SQL programming perspective, you want to run:
    SELECT @@IDENTITY
    Here is a link to the description:  http://msdn.microsoft.com/en-us/library/ms187342.aspx
    It will retrieve the record ID of the row you just inserted.

  • Import New Records

    Hello
    I have a file to import to MDM that contains both Updates to existing records and Adding of new records.
    In the Match records I see that the new records are being shipped. (as there is no match to any record in MDM)
    Can anyone suggest how I can handle this situation?
    We need to do both update and create on import
    Regards
    Con

    Hi Con,
    As a practical scenario, your file may contain records for update as well as create action during imports process.
    MDM has got a standard functionality for this as a import action which can be sent at a global level or at a record level based on the matching criteria.
    The process is as below:
    1. Select the source and destination
    2. Do field mapping
    3. Select fields for Value Matching (These fields are  used to identify duplicates)
    4. Based on a match type the import action can be defined as a global action.
    For individual records, you can set the action in below Record Matching window.
    Hope this clarifies.
    Regards,
    Sambhaji
    If this has answered you question, kindly change the status of question to "probelm resolved" and very helpful answer.

  • Service Desk Unable to set status to Customer Action and Proposed Solution

    Hi Everyone,
    We are unable to set a service desk issue to the status Customer Action or Proposed solution.
    I have someone create a new issue in the bakend system and when I receive the issue I assign it to myself as the processor. When I try to set teh status to Customer action it is grayed out.
    I have checked the following:
    1. As a test I assigned My user with sap_all profile so does not appear to be authroisation related
    2. The status profile has all six standard values (New, customer action, In Process, Sent to SAP, Proposed Solution, Confirmed).
    3. The transaction types have been defined using the standard profiles for Text Det. Procedure, Partnet Determination Procedure, Status Profile. The Partner Function ORG is set to Sold-To-Party , The date profile is a SRV_SLA_ITEM and the Action profile is set to SLFN0001_ADVANCED. The Org Data Prof is set to a customer defined one: ZSSC000000001.
    4. I have checked transaction ppoma_crm and the org structure and my user is assigned to a team lead position.
    Your assistance is greatly appreciated.
    Michael

    Hi Michael,
    please check your status profile for the "lowest status no." and "highest status no." values of the status values as Alex mentioned!
    You can find this in SPRO under "SAP Solution Manager> Scenario-Specific Settings>Service Desk>Service Desk>Status Profile".
    If the "high" value of the status "New" is lower than the status number of status "Customer Action" than you can not set the message from "New" to "Customer Action"!
    Hope this helps,
    Christoph

  • URL for a new record link in report

    My requirement is to have a hyperlink column on the report that will opens a new record edit screen to create a new Contact record with the Account Name and address info. defaulted in this new record screen.
    I've added a column to my report and change the Data Format to Custom Text Format with a URL that is derived from the url on the address bar of the browser when access the New button of the Contact section within the Account detail screen.
    The url on the address bar is as followed:
    https://secure-ausomxbga.crmondemand.com/OnDemand/user/ContactInsert?OMCR0=ABGA-5Y4FNM&OMTGT=ContactEditForm&OMTHD=ContactNewNav&OMCBO=Account&OMRET0=AccountDetail%3focTitle%3dWALT%2bDISNEY%2bMEMORIAL%2bCA%2bINSTITUTE%2bFLORIDA%2bHOSPITAL%26OMTGT%3dAccountDetailForm%26OMTHD%3dAccountDetailNav%26ocEdit%3dY%26AccountDetailForm.Id%3dABGA-5Y4FNM%26OCTYPE%3dIV-Corporate%2bMaster%2bData%26ocTitleField%3dName&OCNOEDITTYPE=Y
    I've tried to replace the field values with the analytics field names as followed but is getting error when trying to click on the column with the following url:
    @[html]”*a href=”/OnDemand/user/ContactInsert?OMCR0=’ || Account."Account ID" || ‘&OMTGT=ContactEditForm&OMTHD=ContactNewNav&OMCBO=Account&OMRET0=AccountDetail%3focTitle=’||Account."Account Name"||’%26OMTGT%3dAccountDetailForm%26OMTHD%3dAccountDetailNav%26ocEdit%3dY%26AccountDetailForm.Id=’ || Account."Account ID" || ‘%26OCTYPE%3d’Other’%2bData%26ocTitleField%3dName&OCNOEDITTYPE=Y*/a*
    ( < is replaced with * for posting purpose)
    Is what I'm trying to do possible? If possible, any one can help me out on the syntax? Thanks in advance.

    Greetings TTone,
    Its not possible.
    The only field which can be set is the Account by setting OMCR0=ADSA-6FX7YL
    https://secure-ausomxdsa.crmondemand.com/OnDemand/user/ContactInsert?OMRET1=AccountDetail%3fOMTGT%3dAccountDetailForm%26OMTHD%3dAccountDetailNav%26AccountDetailForm.Id%3dADSA-6FX7YL%26OCTYPE%3dProspect%26ocTitleField%3dName%26ocTitle%3dThe%2bAndersons%2b%252c%2bInc.%26ocEdit%3dY&OMCR0=ADSA-6FX7YL&OMTGT=ContactEditForm&OMTHD=ContactNewNav&OMCBO=Account&OMRET0=AccountHomePage&OCNOEDITTYPE=Y
    Regards,
    Abeer @ Sakonent
    Edited by: 796422 on Sep 22, 2010 4:30 AM
    Edited by: sakonent.com on Sep 30, 2010 12:08 PM

  • How can I add a new record in an Access table.

    How can I add a new record in access with LabView, using activex, without using the database connectivity tools.
    Message Edited by Noawena on 05-16-2008 09:25 AM

    Much easier with a toolkit but you could use ADO objects,
    get connection, make a SQL object "INSERT record INTO table where  ...." 
    Execute the parameterized query
    Free up record sets data
    close connection when done.
    This is a very simplified version
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

Maybe you are looking for