Wanting data from a table without a particular column

I need the data from a table, except the data for a particular
column. I don't want to write the select list, as it would be
too clumsy for a large table. Can anybody suggest a solution. I
can certainly create a view, but I don't want that.

Hi,
Try this select Statement.
set haeding off
set feedback off
spool file.sql
Select 'Select ' from dual;
Select Column_name || ',' from all_tab_columns Where table_name = 'EMPLOYEE' and Column_Name != 'DEPARTMENT_ID';
Select '1' from dual;
select 'From Employee;' from dual;
Spool off
regards,
Ganesh R

Similar Messages

  • Cartesian of data from two tables with no matching columns

    Hello,
    I was wondering – what’s the best way to create a Cartesian of data from two tables with no matching columns in such a way, so that there will be only a single SQL query generated?
    I am thinking about something like:
    for $COUNTRY in ns0: COUNTRY ()
    for $PROD in ns1:PROD()
    return <Results>
         <COUNTRY> {fn:data($COUNTRY/COUNTRY_NAME)} </COUNTRY>
         <PROD> {fn:data($PROD/PROD_NAME)} </PROD>
    </Results>
    And the expected result is combination of all COUNTRY_NAMEs with all PROD_NAMEs.
    What I’ve noticed when checking query plan is that DSP will execute two queries to have the results – one for COUNTRY_NAME and another one for PROD_NAME. Which in general results in not the best performance ;-)
    What I’ve noticed also is that when I add something like:
    where COUNTRY_NAME != PROD_NAME
    everything is ok and there is only one query created (it's red in the Query plan, but still it's ok from my pov). Still it looks to me more like a workaround, not a real best approach. I may be wrong though...
    So the question is – what’s the suggested approach for such queries?
    Thanks,
    Leszek
    Edited by xnts at 11/19/2007 10:54 AM

    Which in general results in not the best performanceI disagree. Only for two tables with very few rows, would a single sql statement give better performance.
    Suppose there are 10,000 rows in each table - the cross-product will result in 100 million rows. Sounds like a bad idea. For this reason, DSP will not push a cross-product to a database. It will get the rows from each table in separate sql statements (retrieving only 20,000 rows) and then produce the cross-product itself.
    If you want to execute sql with cross-products, you can create a sql-statement based dataservice. I recommend against doing so.

  • Retrive data from 4 tables without using joins

    hi ,
    i have to retrive data from 4 tables........but i donot want to use joins because of performance issues.
    please guide me how to proceed further ?
    thanks

    hi manish,
    CONSTANTS: c_act_plan(2)    TYPE c VALUE 'U1'      ,
               c_person(1)      TYPE c VALUE 'P'       ,
               p1_betid(8)      TYPE c VALUE '50005316',
               c_topdown(1)     TYPE c VALUE 'A'       ,
               c_admnby(3)      TYPE c VALUE '032'     ,
               c_bet_type(1)    TYPE c VALUE 'Q'       ,
               c_firmed(1)      TYPE c VALUE '1'       ,
               c_subtyp_mail(4) TYPE c VALUE '0001'    .
    TYPES: BEGIN OF ty_hrp1001,
             objid TYPE hrp1001-objid,
           END OF ty_hrp1001,
           BEGIN OF ty_pa0001,
             pernr TYPE pa0001-pernr,
             subty TYPE pa0001-subty,
             objps TYPE pa0001-objps,
             sprps TYPE pa0001-sprps,
             endda TYPE pa0001-endda,
             begda TYPE pa0001-begda,
             seqnr TYPE pa0001-seqnr,
             werks TYPE pa0001-werks,
             gsber TYPE pa0001-gsber,
             btrtl TYPE pa0001-btrtl,
           END OF ty_pa0001,
           BEGIN OF ty_t500p,
             persa TYPE t500p-persa,
             name1 TYPE t500p-name1,
           END OF ty_t500p,
           BEGIN OF ty_t001p,
             werks TYPE t001p-werks,
             btrtl TYPE t001p-btrtl,
             btext TYPE t001p-btext,
           END OF ty_t001p,
           BEGIN OF ty_pa0002,
             pernr TYPE pa0002-pernr,
             subty TYPE pa0002-subty,
             objps TYPE pa0002-objps,
             sprps TYPE pa0002-sprps,
             endda TYPE pa0002-endda,
             begda TYPE pa0002-begda,
             seqnr TYPE pa0002-seqnr,
             nachn TYPE pa0002-nachn,
             vorna TYPE pa0002-vorna,
           END OF ty_pa0002,
           BEGIN OF ty_pa0105,
             pernr      TYPE pa0105-pernr     ,
             subty      TYPE pa0105-subty     ,
             objps      TYPE pa0105-objps     ,
             sprps      TYPE pa0105-sprps     ,
             endda      TYPE pa0105-endda     ,
             begda      TYPE pa0105-begda     ,
             seqnr      TYPE pa0105-seqnr     ,
             usrid_long TYPE pa0105-usrid_long,
           END OF ty_pa0105,
           BEGIN OF ty_output,
             pernr      TYPE pa0002-pernr     ,
             werks      TYPE pa0001-werks     ,
             gsber      TYPE pa0001-gsber     ,
             btrtl      TYPE pa0001-btrtl     ,
             name1      TYPE t500p-name1      ,
             btext      TYPE t001p-btext      ,
             nachn      TYPE pa0002-nachn     ,
             vorna      TYPE pa0002-vorna     ,
             usrid_long TYPE pa0105-usrid_long,
           END OF ty_output.
    DATA: w_hrp1001     TYPE                 ty_hrp1001,
          t_hrp1001     TYPE        TABLE OF ty_hrp1001,
          t_hrp1001_tmp TYPE        TABLE OF ty_hrp1001,
          w_pa0001      TYPE                 ty_pa0001 ,
          t_pa0001      TYPE SORTED TABLE OF ty_pa0001
            WITH NON-UNIQUE KEY pernr                  ,
          t_pa0001_tmp  TYPE        TABLE OF ty_pa0001 ,
          w_t500p       TYPE                 ty_t500p  ,
          t_t500p       TYPE HASHED TABLE OF ty_t500p
            WITH UNIQUE KEY persa                      ,
          w_t001p       TYPE                 ty_t001p  ,
          t_t001p       TYPE HASHED TABLE OF ty_t001p
            WITH UNIQUE KEY werks btrtl                ,
          w_pa0002      TYPE                 ty_pa0002 ,
          t_pa0002      TYPE SORTED TABLE OF ty_pa0002
            WITH NON-UNIQUE KEY pernr                  ,
          t_pa0002_tmp  TYPE        TABLE OF ty_pa0002 ,
          w_pa0105      TYPE                 ty_pa0105 ,
          t_pa0105      TYPE SORTED TABLE OF ty_pa0105
            WITH NON-UNIQUE KEY pernr                  ,
          w_output      TYPE                 ty_output ,
          t_output      TYPE        TABLE OF ty_output .
    SELECT objid
      FROM hrp1001
      INTO TABLE t_hrp1001
      WHERE otype EQ c_person
      AND   plvar EQ c_act_plan
      AND   rsign EQ c_topdown
      AND   relat EQ c_admnby
      AND   istat EQ c_firmed
      AND   begda LE sy-datum
      AND   endda GT sy-datum
      AND   sclas EQ c_bet_type
      AND   sobid EQ p1_betid.
    IF sy-subrc EQ 0.
      SORT t_hrp1001 BY objid.
    ENDIF.
    IF NOT t_hrp1001[] IS INITIAL.
      t_hrp1001_tmp[] = t_hrp1001[].
      DELETE ADJACENT DUPLICATES FROM t_hrp1001_tmp
        COMPARING objid.
      SELECT pernr
             subty
             objps
             sprps
             endda
             begda
             seqnr
             werks
             gsber
             btrtl
        FROM pa0001
        INTO TABLE t_pa0001
        FOR ALL ENTRIES IN t_hrp1001_tmp
        WHERE pernr EQ t_hrp1001_tmp-objid
        AND   endda GT sy-datum
        AND   begda LE sy-datum.
      SELECT pernr
             subty
             objps
             sprps
             endda
             begda
             seqnr
             nachn
             vorna
        FROM pa0002
        INTO TABLE t_pa0002
        FOR ALL ENTRIES IN t_hrp1001_tmp
        WHERE pernr EQ t_hrp1001_tmp-objid
        AND   endda GT sy-datum
        AND   begda LE sy-datum.
    ENDIF.
    IF NOT t_pa0001[] IS INITIAL.
      t_pa0001_tmp[] = t_pa0001[].
      SORT t_pa0001_tmp BY werks btrtl.
      DELETE ADJACENT DUPLICATES FROM t_pa0001_tmp COMPARING werks btrtl.
      SELECT werks
             btrtl
             btext
        FROM t001p
        INTO TABLE t_t001p
        FOR ALL ENTRIES IN t_pa0001_tmp
        WHERE werks EQ t_pa0001_tmp-werks
        AND   btrtl EQ t_pa0001_tmp-btrtl.
      DELETE ADJACENT DUPLICATES FROM t_pa0001_tmp COMPARING werks.
      SELECT persa
             name1
        FROM t500p
        INTO TABLE t_t500p
        FOR ALL ENTRIES IN t_pa0001_tmp
        WHERE persa EQ t_pa0001_tmp-werks.
    ENDIF.
    IF NOT t_pa0002[] IS INITIAL.
      t_pa0002_tmp[] = t_pa0002[].
      DELETE ADJACENT DUPLICATES FROM t_pa0002_tmp COMPARING pernr.
      SELECT pernr
             subty
             objps
             sprps
             endda
             begda
             seqnr
             usrid_long
        FROM pa0105
        INTO TABLE t_pa0105
        FOR ALL ENTRIES IN t_pa0002_tmp
        WHERE pernr EQ t_pa0002_tmp-pernr
        AND   subty EQ c_subtyp_mail
        AND   endda GT sy-datum
        AND   begda LE sy-datum
        AND   usrty EQ c_subtyp_mail.
    ENDIF.
    REFRESH t_output.
    LOOP AT t_hrp1001 INTO w_hrp1001.
      LOOP AT t_pa0001 INTO w_pa0001
        WHERE pernr EQ w_hrp1001-objid.
        READ TABLE t_t500p INTO w_t500p WITH KEY persa = w_pa0001-werks
                                                 TRANSPORTING
                                                   name1.
        CHECK sy-subrc EQ 0.
        READ TABLE t_t001p INTO w_t001p WITH KEY werks = w_pa0001-werks
                                                 btrtl = w_pa0001-btrtl
                                                 TRANSPORTING
                                                   btext.
        LOOP AT t_pa0002 INTO w_pa0002
          WHERE pernr EQ w_hrp1001-objid.
          LOOP AT t_pa0105 INTO w_pa0105
            WHERE pernr EQ w_pa0002-pernr.
            w_output-pernr      = w_pa0002-pernr     .
            w_output-werks      = w_pa0001-werks     .
            w_output-gsber      = w_pa0001-gsber     .
            w_output-btrtl     = w_pa0001-btrtl      .
            w_output-name1      = w_t500p-name1      .
            w_output-btext      = w_t001p-btext      .
            w_output-nachn      = w_pa0002-nachn     .
            w_output-vorna      = w_pa0002-vorna     .
            w_output-usrid_long = w_pa0105-usrid_long.
            APPEND w_output TO t_output.
            CLEAR w_output.
          ENDLOOP.
        ENDLOOP.
      ENDLOOP.
    ENDLOOP.
    Reward if usful,
    Thanks,
    Srikanth.A

  • Deleting Datas from a table without disabling constraints.

    Hi,
    I am working in Oracle9i and solaris 5.8. In that i want to delete half of the datas in a table . the table contains one lakh rows but i need to delete only 50 thousand rows. But the table is constraints enabled.Please send me some queries how to delete the datas withput disabling the constraints.

    What type of constraint do you have ?
    In case of not null, unique, primary key constraint you can delete the rows without disabling the constraints.
    In case of referential integrity constraint you can also delete the rows without disable the constraints but you have to specify on delete cascade constraints clause. By doing so, Oracle will delete the rows in the child table as well.
    http://www.techonthenet.com/oracle/foreign_keys/foreign_delete.php

  • Data fetch from two table without refresh

    hi Friends,
    I have a problem i want to extract data from two table without refresh into text field when i'll enter any value in a text field then corressponding value should come in to corressponding textfield.
    eg. there two table A and B.
    Table A has Colunm
    s_id Number;
    c_id Varchar2(30);
    sec varchar2(4);
    Second Table B Colunm Name
    s_id Number;
    f_name varchar(30);
    l_name varchar(20);
    when i enter s_id 101 in a text field then the c_id ,sec,first_name and last_name should come in to corressponding text fields without refresh.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    You have to make an Ajax call to display data without refreshing the page. Search this forum for Ajax and you can find lots of related posts. This link might help too. http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm
    Thanks,
    Manish.

  • Migrating data from LookUp Table to Main Table without taking extract

    Dear Experts,
    Is there any way if we want to migrate full data from LookUp Table to Main Table in the same repository without taking the extract from MDM DM and not importing it using Import Manager?
    Thanks
    Gaurav Kumar Sharma

    Hi Gaurav,
    Yes there are ways,like you can create port for syndication and use MDIS to import it back but Extraction from DM would be more convenient though.You can also use APIs to syndicate the lookup data and import it back in MDM.
    Can you please detail what you want to achieve?
    Thanks,
    Ravi

  • How to select data from AZure table storage without row key and partition key

    Hi 
    I need to select a data from azure table storage without rowkey and partition key. how  in azure storage emulator click query it display all data from that table. 
    thanks 
    rajesh 

    Hi rajesh,
    It seems that you didn't click query data using storage emulator. But I recommend you could use the azure server explore in your VS to view your data and query data. Please see this document (http://msdn.microsoft.com/en-us/library/azure/ff683677.aspx).
    And base on my experience, you may need input the command on Azure storage emulator, such as this page(http://msdn.microsoft.com/en-us/library/azure/gg433005.aspx).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Hi, experts. I want  retrieve data from 8 tables

    Hi, experts. I want  retrieve data from 8 tables.
    On which table i have to write for all entries query.
    Thanks in advance.

    Hai   Reddy,
    Actually IF we Use Join's Actually The Performance Will Be Good For  4 tables.
    So It Is Better  To  Create Two Joins  With  4 Tables Each.
    First Retrive The Data For First  View.
    Then Use For ALL  Entries For  First Table And Then   Get Data For Second data.
    Reward  If Found usefull.
    Regards.
    Eshwar.

  • How can i extract the particular data from Base tables

    Hi
    I have some Base R/3- Tables . I need to exact the data from these base tables.
    But i need to select some type of datarecords(eg: select Material Documents from MSEG and MKPF tables based on movement types 261,262).
    Something like that . So how can i select the particular category datarecords from base tables. Anyway im going to create the Custom DataSource.
    So please let me know . how can i extarct tha particular data from base tables
    kumar

    Hi Venkat
    See i have some 5-tables . I need to extarct from these tables.
    first i need to extract the data from one table fully.
    Then i need to extarct the data from second table based on profict centers, company codes of first table.
    Then i need to extract the data from third table based on profict centers of first table and movement type = 2p,2n,2s condition.
    So how can i extarct like this data from multiple tables.
    Please let me know
    kumar

  • Appending data from one table to another

    Hello
    How to append data from one table t1 to another table t2.
    t1 and t2 have the same structures .
    t2 contains already data so i don't want do delete it and create it as select * from t1.
    If there is a mean to add t1 content without altering t2 content.
    Thanks in advance

    insert into t2
      select * from t1

  • How to export some data from the tables of an owner with integrity?

    Hi to all,
    How to export some data from the tables of an owner with integrity?
    I want to bring some data from all tables in a single owner of the production database for development environment.
    My initial requirements are: seeking information on company code (emp), contract status (status) and / or effective date of contract settlement (dt_liq_efetiva) - a small amount of data to developers.
    These three fields are present in the main system table (the table of contracts). Then I thought about ...
    - create a temporary table from the query results table to contract;
    - and then use this temporary table as a reference to fetch the data in other tables of the owner while maintaining integrity. But how? I have not found the answer, because: what to do when not there is the possibility of a join between the contract and any other table?
    I am considering the possibility of consulting the names of tables, foreign keys and columns above, and create dynamic SQL. Conceptually, something like:
    select r.constraint_name "FK name",
    r.table_name "FK table",
    r.column_name "FK column",
    up.constraint_name "Referencing name",
    up.table_name "Referencing table",
    up.column_name "Referencing column"
    from all_cons_columns up
    join all_cons_columns r
    using (owner, position), (select r.owner,
    r.constraint_name fk,
    r.table_name table_fk,
    r.r_constraint_name r,
    up.table_name table_r
    from all_constraints up, all_constraints r
    where r.r_owner = up.owner
    and r.r_constraint_name = up.constraint_name
    and up.constraint_type in ('P', 'U')
    and r.constraint_type = 'R'
    and r.owner = 'OWNERNAME') aux
    where r.constraint_name = aux.fk
    and r.table_name = aux.table_fk
    and up.constraint_name = aux.r
    and up.table_name = aux.table_r;
    -- + Dynamic SQL
    If anyone has any suggestions and / or reuse code to me thank you very much!
    After resolving this standoff intend to mount the inserts in utl_file by a table and create another program to read and play in the development environment.
    Thinking...
    Let's Share!
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

  • Data from 3 tables having latest dates

    Hi,
    Need some help with PL/SQL code, I need to write a code which will get data from 3 tables all with the latest date.
    For a particular ACT_CODE the output of the SQL query should show data having the latest dates from 3 tables, if there is no
    date in the table, it should show the remaining data (think left join will do the trick here)
    Table Names:
    Institution_UPDT aiu
    ASQ_CONTACT ac
    GR_AUTHORIZE gr
    All 3 tables have ACT_Code as common                     
    Column Names
    INSTITUTION_UPDT aiu -- aiu.ACT_CODE,aiu.project_id as proj,aiu.UPDT_TYPE_ID, aiu.USER_ID, aiu.UPDT_DATE
    ASQ_CONTACT ac -- ac.ACT_CODE as contact_code,ac.project_id,ac.first_name, ac.middle_initial,ac.last_
    name,ac.title,ac.status,ac.status_date
    GR_AUTHORIZE gr --gr.ACT_CODE as grad_code,gr.name, gr.title AS grad_title, gr.submit_date
    The date column names are
    ac.status_date,
    aiu.UPDT_DATE and
    gr.submit_date
    Thank you everyone
    appreciate your help
    Jesh

    Hi, Jesh,
    user11095252 wrote:
    That is correct, I want to include all the columns from ASQ_Contacts, Institution_UPDT and GR_AUTHORIZEOh! You want all columns from all three tables, not just ASQ_Contacts. That changes the problem considerably!
    UNION requires that all prongs have the same number of columns, and that the datatypes of the columns match. That's no problem if we just need act_code and a date from each one. If we just need additional columns from one table, it's easy to add literal NULLs to the other prongs to serve as the additional columns. But if we need all (or even several) columns from all three tables, that's no good. So let's revert to your original idea: outer joins.
    I want to display only one row which has the latest date with the most recently updated time (example:mm/dd/yyyy hr:min:sec am/pm)Yes, but what if there is a tie for the most recently updated time?
    In case of a tie, the query below will pick one of the contenders arbitrarily. That may be fine with you (e.g., you may have UNIQUE constraints, making ties impossible). If you need a tie-breaker, yiou can add more columns to the analytic ORDER BY clauses.
    WITH     aiu     AS
         SELECT     institution_updt.*     -- or list columns wanted
         ,     ROW_NUMBER () OVER ( PARTITION BY  act_code
                             ORDER BY        updt_date     DESC
                           ) AS r_num
    FROM     institution_updt
    WHERE     act_code     = :p1_act_code
    AND     project_id     = :p2_project_id
    ,     ac     AS
         SELECT     asq_contact.*          -- or list columns wanted
         ,     ROW_NUMBER () OVER ( PARTITION BY  act_code
                             ORDER BY        status_date     DESC
                           ) AS r_num
    FROM     asq_contact
    WHERE     act_code     = :p1_act_code
    AND     project_id     = :p2_project_id
    ,     gr     AS
         SELECT     gr_authorize.*          -- or list columns wanted
         ,     ROW_NUMBER () OVER ( PARTITION BY  act_code
                             ORDER BY        submit_date     DESC
                           ) AS r_num
    FROM     gr_authorize
    WHERE     act_code     = :p1_act_code
    SELECT     *     -- or list columns wanted
    FROM          aiu
    FULL OUTER JOIN     ac     ON     ac.act_code     = aiu.act_code
                   AND     ac.r_num     = 1
                   AND     aiu.r_num     = 1
    FULL OUTER JOIN     gr     ON     gr.act_code     = NVL (ac.act_code, aiu_act_code)
                   AND     gr.r_num     = 1
    ;That's a lot of code, so there may be typos. If you'd post CREATE TABLE and INSERT statements for a few rows of sample data, I could test it.
    In all places where I said "SELECT *" above, you may want to list the individual columns you want.
    If you do that in the sub-queries, then you don't have to qualify the names with the table name: that's only required when saying "SELECT *" with another column (r_num, in this case).
    It's more likely that you won't want to say "SELECT *" in the main query. The three r_num columns, while essential to the query, are completely useless to your readers, and you might prefer to have just one act_code column, since it will be the same for all tables that have it. But since it may be NULL in any of the tables, you'll have to SELECT it like this:
    SELECT  COALESCE ( aiu.act_code
                     , ac.act_code
                     , gr_act_code
                     )  AS act_codeThe query above will actually work for multiple act_codes. You can change the condidition to something like
    WHERE   act_code IN (&act_code_list)If so, remember to change it in all three sub-queries.

  • Drop Down list in table with data from database table

    Hi,
    I have created an interactive form in WD ABAP.
    In Context tab I have created the nodes as follows:
    ZSOHEADER node with cardinality 1..1
    |-> MATERIAL node with cardinality 0..n. Under MATERIAL node there are 2 attrib. MAKTX and MATNR.
    I am fetching data from MARA table into an internal table IT_MARA.
    The node MATERIAL is bound to internal table IT_MARA.
    I have created a table with property ' Body rows vary depending on data ' .
    I have only one row in table. The first cell of the row is a drop down field.
    I have bind the field to the node MATERIAL->DATA->MAKTX.
    Now the issue is even though I have created only one row in my table, in preview it is creating as many rows in the table as the no.of records in the internal table.
    I want only one row with the drop down list containing all values of the internal table.
    Kindly suggest what to do.
    Regards,
    Vinod

    Hi,
    In the WebDynpro Context, in the main node create another node like A1 with cardinality 0..n and in this node create attributes TEXT and VALUE.
    Now goto method and in that method using code wizard read the node A1.
    And use the below code snippet sample in your program, i.e. code this under respective method of the webdynpro.
    *Declare the TYPES
    TYPES : BEGIN OF TY_TABLE,
    TEXT TYPE SOMETYPE,
    VALUE TYPE SOMETYPE,
    END OF TY_UOM.
    *Define Internal Table and work area.
    DATA : IT_TABLE TYPE STANDARD TABLE OF TY_TABLE INITIAL SIZE 0,
    WA_TABLE TYPE TY_TABLE.
    SELECT TEXT VALUE FROM TABLENAME INTO TABLE IT_TABLE.
    lr_node_info->bind_table( IT_TABLE ).
    And in the Adobe Form Layout
    Go to Menu of the Adobe LiveCycle Designer:
    Tools>Options..>DataBinding
    In that window you just check the Show Dynamic properties Check Box.
    Now for the Drop Down go the binding tab in object palette and click on the list items and there specify the Internal Table and specify the text as the internal table text field and value as internal table value field.
    OR
    From the WebDynpro Native Library Palette use the Value Help Drop Down and in object pallette goto binding tab and provide the form interface binding. Before this in the WebDynpro goto Context and for the particular field under the properties provide the search help as dictionary search help and specify the name of the dictionary search help.
    OR
    We have another method of setting the Text and Value to the DDL directly in the WebDynpro by coding in the methods, I dont have much knowledge on this.
    Regards
    Pradeep Goli

  • Reading Data from Internal Table

    Hi,
    Can anyone please tell me how to read data from Internal Tables in the Event Handler without using the Select statement OnInitialization?
    Thanks,
    Gaurav

    Hi Siddhartha,
    Can you tell me the problem in my code. I tried to work on the way you suggested. Though I have not finished with the coding, I just wanted to know whether I am going in the direction or not.
    I have declared the the structure in Type Defination as
    TYPES: BEGIN OF TEST_STRUC,
             BEGDA TYPE BEGDA,
             ENDDA TYPE ENDDA,
           END OF TEST_STRUC.
    TYPES: TEST_TAB_TYPE TYPE TABLE OF TEST_STRUC.
    In the Event Handler, I have added the following code on OnInputProcessing:
    event handler for checking and processing user input and
    for defining navigation
    DATA TEST_INFO LIKE LINE OF TEST_TAB.
    DATA: MYTAB6 TYPE TABLE OF PA0006,
          MYTAB6_WA LIKE LINE OF MYTAB6.
    REFRESH TEST_TAB.
    CLEAR TEST_INFO.
    MYTAB6_WA-BEGDA = REQUEST->GET_FORM_FIELD( STARTDATE ).
    MYTAB6_WA-ENDDA = REQUEST->GET_FORM_FIELD( ENDDATE ).
    IF EVENT->NAME EQ 'button'
       AND EVENT->SERVER_EVENT EQ 'click'.
      LOOP AT MYTAB6 INTO MYTAB6_WA.
        TEST_INFO-BEGDA = MYTAB6_WA-BEGDA.
        TEST_INFO-ENDDA = MYTAB6_WA-ENDDA.
      ENDLOOP.
      APPEND TEST_INFO TO TEST_TAB.
      CLEAR TEST_INFO.
      NAVIGATION->SET_PARAMETER( NAME = 'test_tab'
      VALUE = 'begda' ).
      NAVIGATION->SET_PARAMETER( NAME = 'test_tab'
      VALUE = 'endda' ).
      NAVIGATION->GOTO_PAGE( 'MyBSP2.htm').
    ENDIF.
    P.S. MyBSP2.htm is my next page.
    Thanks,
    Gaurav

  • Moving Data from Normal table to History tables

    Hi All,
    I'm in the process of moving data from normal tables to
    History tables.
    It can be some sort of a procedure which should be a cron job running at night.
    My aim is to move data say 1.5 yrs or 2yrs old data to History tables.
    What aspects i need to check when moving data. And how can i write a procedure for this requirement.
    The schema is same in both the normal table and history table.
    It has to be a procedure based on particular field RCRE_DT.
    If the rcre_dt is above 2 yrs the data needs to be moved to HIS_<table>.
    I have to insert record in to HIS_table and simultaneously delete record from the normal table.
    This is in Production system and the tables are quite big.
    Pls do find enclosed the attached sample schema for Normal table and HIS_<table>.
    If i want to automate this script as a Cron job for similarly other History tables
    how am i to do it in a single procedure assuming the procedure for moving the data is the same procedure.
    Thanks for ur help in advance.
    SQL> DESC PXM_FLT;
    Name Null? Type
    RCRE_USER_ID NOT NULL VARCHAR2(15)
    RCRE_DT NOT NULL DATE
    LCHG_USER_ID VARCHAR2(15)
    LCHG_DT DATE
    AIRLINE_CD NOT NULL VARCHAR2(5)
    REF_ID NOT NULL VARCHAR2(12)
    BATCH_DT NOT NULL DATE
    CPY_NO NOT NULL NUMBER(2)
    ACCRUAL_STATUS NOT NULL VARCHAR2(1)
    FLT_DT NOT NULL DATE
    OPERATING_CARRIER_CD NOT NULL VARCHAR2(3)
    OPERATING_FLT_NO NOT NULL NUMBER(4)
    MKTING_CARRIER_CD VARCHAR2(3)
    MKTING_FLT_NO NUMBER(4)
    BOARD_PT NOT NULL VARCHAR2(5)
    OFF_PT NOT NULL VARCHAR2(5)
    AIR_CD_SHARE_IND VARCHAR2(1)
    UPLOAD_ERR_CD VARCHAR2(5)
    MID_PT1 VARCHAR2(5)
    MID_PT2 VARCHAR2(5)
    MID_PT3 VARCHAR2(5)
    MID_PT4 VARCHAR2(5)
    MID_PT5 VARCHAR2(5)
    PAX_TYPE VARCHAR2(3)
    PAY_PRINCIPLE VARCHAR2(1)
    SQL> DESC HIS_PXM_FLT;
    Name Null? Type
    RCRE_USER_ID NOT NULL VARCHAR2(15)
    RCRE_DT NOT NULL DATE
    LCHG_USER_ID VARCHAR2(15)
    LCHG_DT DATE
    AIRLINE_CD NOT NULL VARCHAR2(5)
    REF_ID NOT NULL VARCHAR2(12)
    BATCH_DT NOT NULL DATE
    CPY_NO NOT NULL NUMBER(2)
    ACCRUAL_STATUS NOT NULL VARCHAR2(1)
    FLT_DT NOT NULL DATE
    OPERATING_CARRIER_CD NOT NULL VARCHAR2(3)
    OPERATING_FLT_NO NOT NULL NUMBER(4)
    MKTING_CARRIER_CD VARCHAR2(3)
    MKTING_FLT_NO NUMBER(4)
    BOARD_PT NOT NULL VARCHAR2(5)
    OFF_PT NOT NULL VARCHAR2(5)
    AIR_CD_SHARE_IND VARCHAR2(1)
    UPLOAD_ERR_CD VARCHAR2(5)
    MID_PT1 VARCHAR2(5)
    MID_PT2 VARCHAR2(5)
    MID_PT3 VARCHAR2(5)
    MID_PT4 VARCHAR2(5)
    MID_PT5 VARCHAR2(5)
    PAX_TYPE VARCHAR2(3)
    PAY_PRINCIPLE VARCHAR2(1)

    Hi All,
    Thanks for ur valuable suggestion.But can u explain me bit more on this as i'm still confused about switching between partitoned tables and temporary table.Suppose if i have a table called PXM_FLT and an correspoding similar table named HIS_PXM_FLT.How can i do the partitioning shd i do the partitioning on the normal table or HIS_PXM_FLT.i do have a date field for me to partition based on range.Can u pls explain why shd i again create a temp.table.What's the purpose.Now the application is designed in such a way that old records have to be moved to HIS_PXM_FLT.can u pls highlight more on this.Your suggestions are greatly appreciated.As i'm relatively new to this partitioning technique i'm bit confused on how it works.But i came to understand Partitioning is a better operation than the normal insert or delte as it is more data intensive as millions of record need to be moved.Thanks for feedback and ur precious time.

Maybe you are looking for