Help for Adding table data to list

Dear Folk,
How can i add table data to a list. I tried following but not successfull
Populate_List('OTHER.GROUPLIST', 'GROUP_LIST');
Help me..

V_RECORDGROUP :=FIND_GROUP(I_RECORDGROUPNAME);
V_QUERY:='SELECT data FROM tablea';
V_RECORDGROUP :=CREATE_GROUP_FROM_QUERY(I_RECORDGROUPNAME,V_QUERY);
V_TEMP:=POPULATE_GROUP(V_RECORDGROUP);
POPULATE_LIST(I_ITEM_NAME,V_RECORDGROUP);

Similar Messages

  • F4 help for ALV table field

    Hi Experts,
    I need to implement F4 help for ALV table field.
    I my scenario, I am using two views. If we click on any record in fist view then it displays the popup window (second view) with relevant record details.
    Here one of the columns having fieldnames corresponding values (old values), for correcting old values I have created new value editable column, we can enter new value for old value then we can save it. Till this functionality is ok.
    Then I have included OVS help for new value field. Here I need to get f4 help for newvalue field relevant to fieldname.
    For example: user clicks on f4 in cell (new value) then if corresponding fieldname is u2018WERKSu2019 then it shows the plant values
    Here I can get fieldname, domain name  and value table using method set_attribute ().
    Same concept I have implemented in ALV using F4IF_FIELD_VALUE_REQUEST. It is working fine
    Here I have little bit confusion. Please advise me how to implement in OVS.
    Regards,
    BBC

    Hi,
    you'll have to create a method for the OVS search help (define it in the "OVS component usage" field in the context).
    Sample code (should work for WERKS):
    method on_ovs .
    declare data structures for the fields to be displayed and
    for the table columns of the selection list, if necessary
      types:
        begin of lty_stru_input,
      add fields for the display of your search input here
          WERKS TYPE WERKS,
        end of lty_stru_input.
      types:
        begin of lty_stru_list,
      add fields for the selection list here
          WERKS TYPE WERKS_D,
          NAME1 type NAME1,
        end of lty_stru_list.
      data: ls_search_input  type lty_stru_input,
            lt_select_list   type standard table of lty_stru_list,
            ls_text          type wdr_name_value,
            lt_label_texts   type wdr_name_value_list,
            lt_column_texts  type wdr_name_value_list,
            lv_window_title  type string,
            lv_group_header  type string,
            lv_table_header  type string,
            lv_werks type werks_d.
      field-symbols: <ls_query_params> type lty_stru_input,
                     <ls_selection>    type lty_stru_list.
      case ovs_callback_object->phase_indicator.
        when if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
      in this phase you have the possibility to define the texts,
      if you do not want to use the defaults (DDIC-texts)
    Set label from Medium Description to something more logical...
          ls_text-name = `NAME1`.  "must match a field in list structure
          ls_text-value = `Plant description`.
          insert ls_text into table lt_label_texts.
    Set col header from Medium Description to something more logical...
          ls_text-name = `NAME1`.  "must match a field in list structure
          ls_text-value = `Plant description`.
          insert ls_text into table lt_column_texts.
         lv_window_title = wd_assist->get_text( `003` ).
         lv_group_header = wd_assist->get_text( `004` ).
         lv_table_header = wd_assist->get_text( `005` ).
          ovs_callback_object->set_configuration(
                    label_texts  = lt_label_texts
                    column_texts = lt_column_texts
                    group_header = lv_group_header
                    window_title = lv_window_title
                    table_header = lv_table_header
                    col_count    = 2
                    row_count    = 20 ).
        when if_wd_ovs=>co_phase_1.  "set search structure and defaults
      In this phase you can set the structure and default values
      of the search structure. If this phase is omitted, the search
      fields will not be displayed, but the selection table is
      displayed directly.
      Read values of the original context (not necessary, but you
      may set these as the defaults). A reference to the context
      element is available in the callback object.
         ovs_callback_object->context_element->get_static_attributes(
             importing static_attributes = ls_search_input ).
        pass the values to the OVS component
         ovs_callback_object->set_input_structure(
             input = ls_search_input ).
        when if_wd_ovs=>co_phase_2.
      If phase 1 is implemented, use the field input for the
      selection of the table.
      If phase 1 is omitted, use values from your own context.
          if ovs_callback_object->query_parameters is not bound.
          endif.
          assign ovs_callback_object->query_parameters->*
                                  to <ls_query_params>.
          if not <ls_query_params> is assigned.
    TODO exception handling
          endif.
            call method ovs_callback_object->context_element->get_attribute
              exporting
                name  = 'WERKS'
              importing
                value = lv_werks.
            data: lv_subcat_text type rstxtmd.
            select werks
                   name1
              into table lt_select_list
              from T001W.
            ovs_callback_object->set_output_table( output = lt_select_list ).
        when if_wd_ovs=>co_phase_3.
      apply result
          if ovs_callback_object->selection is not bound.
          endif.
          assign ovs_callback_object->selection->* to <ls_selection>.
          if <ls_selection> is assigned.
            ovs_callback_object->context_element->set_attribute(
                                   name  = `WERKS`
                                   value = <ls_selection>-werks ).
          endif.
      endcase.
    endmethod.

  • Steps to create f4 help for a table

    steps to create f4 help for a table

    These are the steps you have to take first:
    1. Please elaborate, your question does not all too clear.
    2. Search on SCN.
    3. Search on help.sap.com (for creating F4 search help).
    I guess you get the picture. Creating an F4 help is quite easy (you can find that on SCN for sure), but what do you mean by
    for a table
    1.Do you want to create a field which has an F4 help for searching tables or
    2. is this field part of a table and you need to have a search help for that field of that table in order to select some sort of value
    3. Is this a custom table.
    4. Is this a custom field for which F4 help should be added.
    5. Won't a domain value do.
    6. etc.

  • F4 help for custom table field - to be used when populating data thru SM30

    Hi,
    I have a custom table with 5 fields - say A, B, C, D and E. While populating data to the table through SM30, I need to create a F4 help for the field C. A  custom function module needs to be used.
    I have created a module for the same in the event PROCESS ON VALUE-REQUEST of the function group of the table.
    But the F4 for field C depends on the values put in fields A and B.
    I am not able to get the values of fields A and B from within the module PROCESS ON VALUE-REQUEST.
    Please help me to create the F4 help.

    hii,
    This is the piece of code i have used in one of my SM30 to get f4. mopdify according to ur need and use.
    revert back for further help.
    w_dynpread-fieldname = 'ZSITEDCDATA-SITE'.
      APPEND w_dynpread TO i_dynpread.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = 'SAPLZSITEDCDATA'
          dynumb               = sy-dynnr
          translate_to_upper   = 'X'
        TABLES
          dynpfields           = i_dynpread
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          stepl_not_found      = 10
          OTHERS               = 11.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE i_dynpread INTO w_dynpread INDEX 1.
      IF sy-subrc IS INITIAL.
        SELECT land1 FROM t001w
          INTO TABLE i_site
          WHERE werks EQ w_dynpread-fieldvalue.
        IF i_site[] IS NOT INITIAL.
          DATA: lv_line TYPE i.
          CLEAR lv_line.
          DESCRIBE TABLE i_site LINES lv_line.
          IF lv_line GT 1.
            CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
              EXPORTING
                retfield        = 'ZSITEDCDATA-SITE_COUNTRY'
                dynpprog        = 'SAPLZSITEDCDATA'
                dynpnr          = sy-dynnr
                window_title    = 'Site Country'
                value_org       = 'S'
              TABLES
                value_tab       = i_site[]
                return_tab      = i_return
              EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ELSE.
              READ TABLE i_return INTO w_return INDEX 1.
              IF sy-subrc IS INITIAL.
                zsitedcdata-site_country = w_return-fieldval.
              ENDIF.
            ENDIF.
    Thanks ,
    Gaurav

  • F4 help for a table field

    hai can any one tell me in detail how to create a search help and attach to the field in the custom table
    bye
    afzal

    hi Afzal ,
       Here you go with the details of creating a search help and attaching it to the custom table :
    Creation of Elementary Search Help:
    The creation of an elementary search help is described below with example.
    1.     Open TCode – SE11 for DDIC objects -> select the radio button for Search helps -> give the name of the search help you want to create, ex – ZSH004.Click on Create .
    2.     In the next screen select the option “ Elementary search help “ .
    3.     Now you need to provide the short text for your search help.
    4.     In the selection method provide the table or view name you want to use for data retrieval. Ex. ZMARA_01.
    5.     Select the dialog type according to your scope, ex. “ display values immediately’.
    6.     Then provide the search help parameters i.e. the interface parameters for the search help .
    7.     The ZMARA_01 table fields MATNR, ERSDA,MHDHB,MHDHT,MHDRZ are provided by selecting the table fields , by doing this the data elements for these fields are automatically copied to the interface from the selection method.
    8.     Now define the type of parameter ( import or export ) here for the selection and return of values in runtime.
    9.     Provide the positions to these parameters to specify how they will be arranged in the hit list display.
    10.      Now save the object in the respective development class and check the same for errors and then activate .Finally the creation of a ESH ( ex: ZSH004 ) is complete and can be used for providing the input help.
    You can test the operation of your search help by clicking F8.
    The appearance of your search help will be like the fig. provided below
    Creation of Collective Search Helps:
    The creation of an elementary search help is described below with example.
    1.     Open TCode – SE11 for DDIC objects -> select the radio button for Search helps -> give the name of the search help you want to create, ex – ZSH005.Click on Create .
    2.     In the next screen select the option “ Collective search help “ .
    3.     Now you need to provide the short text for your search help.
    4.     Select the dialog type according to your scope, ex. “ display values immediately’.
    5.     Then provide the search help parameters i.e. the interface parameters for the search help .
    6.     The ZMARA_01 table fields MATNR, ERSDA,MHDHB are provided by selecting the table fields . Define the types for the parameters of a collective search help by assigning a data element. Enter the name of the data element that describes the contents of the search help parameter in the Data element field.
    7.     In the Definition tab page enter the parameters of the collective search help.
    Select the Imp flag if it is an import parameter. Select the Exp flag if it is an export parameter. Optional-You can assign the parameter a default value in the Default value field.
    8.     
    Next, Select the tab “ Included Search help “ and provide the elementary search helps you want to include here . In the current example 2 elementary search helps ZSH004 and ZSH003 are being included.
    9.     Create a parameter assignment between all the included search helps and the collective search help here ( Note that at-least one of the parameter assignment must be done for linking the includes ) .This can be done by clicking on the tab
    10.     “Parameter assignment “ .ex. we have done the parameter assignment here by using the MATNR field for both the includes i.e. the selection paths should be based on the provided material number.
    11.     After performing the steps save the search help and activate for use in the later stage.
    Regards,
    Ranjita

  • Dynamic value help for a table field to fill two fields, how to?

    Hi all gurus,
    In SRM 7 I defined a dynamic value help for a single field (ZZ_PROLE_R3) of my header custom table.
    That's the code from WDDOMODIFYVIEW in the webdynpro /SAPSRM/WDC_DODC_CT, view V_DODC_CT:
    DATA: lo_tabnode        TYPE REF TO IF_WD_CONTEXT_NODE.
          DATA: lo_tabnode_info   TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
          DATA: tab_value         TYPE WDR_CONTEXT_ATTR_VALUE_LIST,
                wa_value          TYPE WDR_CONTEXT_ATTR_VALUE.
          lo_tabnode = wd_context->GET_CHILD_NODE( name = 'THCUS' ). "the custom table node
          lo_tabnode_info = lo_tabnode->get_node_info( ).
          wd_this->GET_VALHELP_ZZ_PROLE_R3( EXPORTING iv_guid = lv_guid
                                            IMPORTING ZZ_PROLE_R3_VALHELP = tab_value ). "this method returns the dyn value table
          lo_tabnode_info->set_attribute_value_set( name = 'ZZ_PROLE_R3'
                                                     value_set = tab_value ).
    The method GET_VALHELP_ZZ_PROLE_R3 dynamically builds the value help table tab_value; such table is made up by two fields:
    value : contains the value of the field
    text   : contains a description of the value
    The above solution works; now I'd like to enhance it. The custom table THCUS contains also a field called ZZ_PROLE_R3_DESC, which represents the description of ZZ_PROLE_R3. It is, exactly, the TEXT field in tab_value.
    So I'd like to do as follows:
    - the user clicks on the search help for ZZ_PROLE_R3 field of the table;
    - the above described value help appears;
    - after the selection, both ZZ_PROLE_R3 and ZZ_PROLE_R3_DESC are filled with the selected couple value - text chosen from the value help.
    Could anyone help me achieving such a behaviour?
    Again, a little request... when I open the above value help dialog box, the window itself has a label "Floorplan Manager application for OIF.." that obviously I'd like to redefine (e.g. "Role selection value help"). Is there any way to do that?
    Thanks in advance

    Chris Paine wrote:
    It seems to me - given that your code is in wddomodifyview that you are trying to have different dropdowns per row
    - I'm not sure where you are populating lv_guid - but I'd guess it is an attribute of the row selected? If it isn't then I can't see any reason that you would do this code in wddomodifyview and not wddoinit.
    Hi Chris and thanks for your help,
    lv_guid is the GUID of the document's header; I need to pass it to the method that populates my value help table because the values in it are derived from some fields on the document. (the situation actually is more complex; there's an RFC call on the backend for which the document is intended for to retrieve the data that populate the value help...).
    I'm quite unexperienced on webdynpro and terminology; if dropdown menus are fixed selection option that appears on a field, I guess this is not my case. I did a pair of screenshot to provide an idea of what the solution by now is, and what "I would like to have":
    [Pre-selection (F4 icon on the field in table)|http://imagebin.ca/view/npIsaqF.html]
    [Value Help popup for the field ZZ_PROLE_R3|http://imagebin.ca/view/8fZUh3T.html]
    [Result by now |http://imagebin.ca/view/3PaqdvE.html]
    [Result I'd like to have.|http://imagebin.ca/view/dExR0J.html]
    Chris Paine wrote:
    However - by your comment on the "value help dialog box" I am guessing you are using an input field? If this is the case then I would strongly suggest that you change/enhance the structure of the context node THCUS (btw, better coding practise to refer to it as wd_this->wdctx_thcus when using the get child node construct) so that you refer to an actual SAP ddic search help, if you then associate in the structure the value and text fields then populating the text field should happen automatically. Also you'd have the nice side effect that your value help dialog would be named after the associated ddic search help.
    Thanks for the code suggestion, I'll apply that. For what concerns the context node THCUS... It is, by standard, a node which I can't explictly find in the context for the view V_DODC_CT. The problem is that ZZ_PROLE_R3 and the corresponding description field ZZ_PROLE_R3_DESC of the table must be filled with data retrieved dynamically @ runtime from the backend. So I guess I can't populate a val help referring to a dictionary table/field; I'd rather do as follows:
    - retrieve what's the target backend for the document (to do so, I have to process the document .. that's why the header guid passed to my method);
    - RFC call to a custom method that extracts possible values for the specific backend;
    - bind the ammissible values to the value help.
    Chris Paine wrote:
    I realise that this is rather a lot - so if you have any specific question please do respond - hopefully I or someone else will be able to clarify.
    Thanks again for your help; additional info as well as code examples would be highly appreciated

  • Can we provide new f4 help for a field in a list using grid display

    Hi Gurus,
    Can I provide F4 help for field in edit mode for (which is not using any std. data type, uses only custom char field ) in the list displayed using CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
    I know this can be done using OOPS concepts but, I need to know whether it is possible in this manner.
    And please dont suggest me to use CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' to get automatic  f4 help.
    I need to provide F4 help with my own logic once I press F4 in the edited field in GRID_DISPLAY
    Regards
    Mac.

    Hi Macmohan,
    You have to use F4AVAILABL attribute of fieldcatalog to achieve this.
    lv_fldcat-f4availabl = 'X'.
      lv_fldcat-ref_table = 'T582A'.
      lv_fldcat-ref_field = 'ZEITB'.
    This works with ALV GRID CONTROL
    Regards
    Abhii
    Edited by: Abhii on Dec 16, 2009 3:37 PM

  • Help with adding a date in ADDT

    Not sure what's going on here, but its probably something simple, and me missing something obvious...
    Basically I have a form to add a record to a database table.
    I have two date fields in the table, of the type, Date.
    This is my code for adding the record :
    // Add columns
    $ins_clients->setTable("clients");
    $ins_clients->addColumn("name", "STRING_TYPE", "POST", "name");
    $ins_clients->addColumn("company", "STRING_TYPE", "POST", "company");
    $ins_clients->addColumn("website", "STRING_TYPE", "POST", "website");
    $ins_clients->addColumn("tel", "STRING_TYPE", "POST", "tel");
    $ins_clients->addColumn("mobile", "STRING_TYPE", "POST", "mobile");
    $ins_clients->addColumn("email", "STRING_TYPE", "POST", "email");
    $ins_clients->addColumn("enquirydate", "DATE_TYPE", "POST", "enquirydate");
    $ins_clients->addColumn("business", "STRING_TYPE", "POST", "business");
    $ins_clients->addColumn("future", "STRING_TYPE", "POST", "future");
    $ins_clients->addColumn("potential", "STRING_TYPE", "POST", "potential");
    $ins_clients->addColumn("callback", "DATE_TYPE", "POST", "callback");
    $ins_clients->addColumn("notes", "STRING_TYPE", "POST", "notes");
    $ins_clients->setPrimaryKey("ID", "NUMERIC_TYPE");
    And these are the form fields for the dates :
    <input type="text" name="enquirydate" id="enquirydate" value="<?php echo KT_formatDate($row_rsclients['enquirydate']); ?>" size="32" />
    <input type="text" name="callback" id="callback" value="<?php echo KT_formatDate($row_rsclients['callback']); ?>" size="32" />
    All of which seems about right.
    But even when I enter dates in the format 2010-09-23, all that's being written back to the database is 0000-00-00.
    Any ideas where I'm going wrong?
    Thanks.

    Its OK - I just changed DATE_TYPE to STRING_TYPE and its working now.

  • SEARCH HELP FOR STANDARD SAP DATA ELEMENT AFNAM

    Hello All,
    Is there any possibility for adding a search help for the standard SAP field AFNAM.
    Thanks in Advance!
    Ashish

    Hi Ashish,
    You can APPEND your own search help to an SAP field that has search help defined. This is similar to APPENDing fields to an SAP table.
    You can also attach the search help to a field on a screen, i.e. limit the scope to that single screen, but this would still require a modification to the system, and hence, an access key.
    Hence if you want to attach search help to the standard SAP field, then you will need access key for that.
    If the access key will be available then you can attach your search help to the standard SAP field.
    For more reference go through the link :
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/3d/e53642e2a3ab04e10000000a1550b0/frameset.htm
    Thanks,
    Nitesh Jain

  • How to apply a Filter on JSONModel for a Table data

    I have a table and search text box. Now when users types in something I want to filter the Table Data which is JSONModel.
    There are several columns in the JSONModel and the search string should check against each column.
    If columns are Date then ignore if they are numeric convert to String and check against value.
    How can I achieve this?

    Hi Chandrashekhar,
    Thanks for your reply it solves half of my problem.
    Now if I want to have a OR condition for Filters applied on lastName and firstName column i.e. the search string should either exist in lastName or firstName return me all rows which satisfies the search string filter then how do I do it?
    I tried the following by adding one more filter but I guess it creates AND condition between these filters
    oTable.getBinding("rows").filter([new sap.ui.model.Filter("lastName", "StartsWith", sValue),
                                                 new sap.ui.model.Filter("firstName",StartsWith",sValue)]);
    I also observed that in the current code the filter is applied on lastName column but when you search the next column shows filter icon is this a bug?
    Please refer screenshot

  • Search help for VA01 Header Data Partners

    Hello Team,
    I have a requirement in va01/02/03 ,  where i will need to create/enhance a search help for one of the partner functions under SO header data.
    and values will need to be extracted from a customer Z-Table., taking into consideration the sales area of the SO
    Right now, I am not sure, but it looks like it has a search help attached to it, but when i press F4, nothing comes up.
    Is there a way i can check if there is any standard search help associated with those screen field?

    thankyou suresh.
    As i have created this search help and in the view i have given the join conditions as
    MARA-MATNR = MARC-MATNR
    MARA-MATNR = MAKT-MATNR
    MARA-MATNR=MVKE-MATNR
    and in search help parameters :
    VKORG
    MATNR
    BISMT
    MAKTX
    MTART
    WERKS
    PRODH
    I took the Hotkey as 1.
    Please guide me what are selection conditions that i need to give in my VIEW.
    Here iam using 4 tables.
    MARA
    MAKT
    MVKE
    Edited by: vinay raj on Jun 12, 2009 6:42 AM
    Edited by: vinay raj on Jun 12, 2009 7:18 AM

  • Need a query for export table data .....

    Hi,
    I need a query for exporting the data in a table to a file.
    Can anyone help me ?
    Thanking You
    Jeneesh

    SQL> spool dept.txt
    SQL> select * from dept;
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    SQL> spool off
    SQL> ed dept.txt

  • Need Help for Non Transactional Data

    Hi,
    I need your help for getting the non-transactional data. I am looking for some solution where I can have employee list with both transaction and non transaction along with the measure in the report.
    Thanks in advance.
    Phani.

    Looks like you either want a procedure with OUT parameters, or to return a record (which you'd need to declare somewhere that your function and calling procedure can both see)

  • Need help referencing expanding table data in vBody.

    I have a form that I created in LiveCycle that has an expanding table with 7 columns of data. Once the form has been completed by the user they will click a button that will trigger a mailMsg event and will send form data as a plain text email. Everything works great except for the loop that is supposed to write the table data.
    This is what the table data should look like in Outlook message.
    Column1: rawValue
    Column2  rawValue
    and so on
    Column1: rawValue
    Column2  rawValue
    and so on
    script:
    var i=0;
    for (i=1;i<=vRowCount;i++)
    vBody +="***********************************\r\n";
    vBpdy += "Column1: " + xfa.resolveNode(form.form1.ReportFields.Table1.Row1[" + (i-1) + "].Column1").rawValue + "\r\n";
    vBody +="***********************************\r\n";
    That is all I have written for the loop right now until I figure out why it is not executing.

    If you want insert and delete the same data you only have to use the same where
    Sth like th
    CTH@>create table demo
    2 ( n number,
    3 c varchar2(1),
    4 d date );
    Table created.
    CTH@>insert into demo (n,c) values (1, 'a');
    1 row created.
    CTH@>insert into demo (n,c) values (2, 'e');
    1 row created.
    CTH@>insert into demo (n,c) values (3, 'i');
    1 row created.
    CTH@>insert into demo (n,c) values (4, 'o');
    1 row created.
    CTH@>insert into demo (n,c) values (5, 'u');
    1 row created.
    CTH@>create table demo1
    2 ( n number,
    3 c varchar2(1),
    4 d date default sysdate);
    Table created.
    CTH@>begin
    2 insert into demo1
    3 select *
    4 from demo
    5 where d is null;
    6
    7 delete demo where d is null;
    8
    9 end;
    10 /
    PL/SQL procedure successfully completed.
    CTH@>select * from demo1;
    N C D
    1 a
    2 e
    3 i
    4 o
    5 u
    5 rows selected.
    CTH@>select * from demo;
    no rows selected
    CTH@>insert into demo (n,c) values (1, 'a');
    1 row created.
    CTH@>insert into demo (n,c) values (2, 'e');
    1 row created.
    CTH@>insert into demo (n,c) values (3, 'i');
    1 row created.
    CTH@>insert into demo (n,c) values (4, 'o');
    1 row created.
    CTH@>insert into demo (n,c) values (5, 'u');
    1 row created.
    CTH@>
    CTH@>begin
    2 insert into demo1 (n,c,d)
    3 select n,c, sysdate d
    4 from demo
    5 where d is null;
    6
    7 delete demo where d is null;
    8
    9 end;
    10 /
    PL/SQL procedure successfully completed.
    CTH@>select * from demo1;
    N C D
    1 a
    2 e
    3 i
    4 o
    5 u
    1 a 19-09-2007 13:38:07
    2 e 19-09-2007 13:38:07
    3 i 19-09-2007 13:38:07
    4 o 19-09-2007 13:38:07
    5 u 19-09-2007 13:38:07
    10 rows selected.
    CTH@>select * from demo;
    no rows selected

  • Appraoch for archiving table data from a oracledb and load in archiv server

    Hi,
    I've a requirement where I need to archive and purge old data in datawarehouse.
    The archival strategy will select data from a list of tables and load into files.
    I also need to use sql loader control files to load data from the above files into archival server.
    I want to know which is the better approach to load data into files.
    Should I use utl_file or spool table data into file using select stmts.
    I also have some clob columns in some tables.

    I've doing something like this a couple of months ago. After some performance tests: the fastest way is to create files through UTL_FILE used in procedure with BULK SQL. Another good idea is to create files with Python which operates on text files blazingly. (Use PL/SQL if you need to create that files on server, but if you have to create files on remote machine use something else (Python?))

Maybe you are looking for

  • Different RT versions, not compatible

    Hi all!    I'm evaluating LabView 8.5 and it's drivers.    Previously, we shiped good products with LV 7.1, RT, and fieldpoint drivers 4.  Now, I'd like to turn to 8.5.  But....    ...this issues a maintainability problem! If I have LV 8.5 + FieldPoi

  • MPD and audio CD ??

    Hello! Is there a way to play audio CD with MPD? Thank

  • EDIT MASK  with ALVGRID

    Hi, i need to display a number in ALV GRID with this format: +/- ###.###,## fo example: 1.000.000,000   = 1.000.000,000 1.000.000,000 - =  -1.000.000,000 How can i solve?

  • Message Mapping Help XMLDocument with in XML

    I am trying to pass on some XMLDocument with in XML Example <Header> <Detail><Text1>Text</Text1><Text2>Text</Text2></Detail> </Header> Message mapping giving error at present. My Message Type has only the following <Header> <Detail> I am trying to in

  • Cannot read pdf's

    All was working well until I updated Internet Explorer to IE 10.  Now, all I get is some little black box off to the left of my screen.  Any suggestions?