How to create dynamic rows in a table

Hi All,
in my application i want to create rows dynamically by pressing enter button or else i can use button,once i click the button new row should come,that row should allow to enter values,like input field.
please can any one help me in this.
regards,
sush

Hi Sushma,
If i'm right ,u want to add a new row on button...
for(int i=0; i<1;i++)
IPrivateContractOverView.I<table Node>Element elem=wdContext.create<table node>Element();
  elem.set<table value attrbute1>("");
elem.set<table value attrbute2>("");
wdContext.node<table Node>.addElement(elem);
Here you  can set any default values in place of "".
hope it hlps u..
Regards
Khushboo

Similar Messages

  • How to create a Row in a table in SMARTFORMS

    Dear All,
    I'm working with SAP 4.6C.
    I have created a table under the Main Window. After that I have activated the Heade and Footer Check Box in the EVENT TAB of the TABLE. But, Main Area option is not there.
    Because of that it is displaying the TABLE Node like
    TABLE
       Header
       Footer
    Not Like
    TABLE
       Header
       Main Area
       Footer
    Under the Header I want to create a row. After creating  the row only I can create the cells.
    I have defined the line type as %LTYPE1. Even though it is not dispalying the ROW under Header
    It should display
    TABLE
       Header
          Row
             Cell1
                 Text1
             Cell2
                 Text2
       Main Area
       Footer
    But, it is not displaying the ROW after creating the line type .
    How to overcome this problem...
    <<Text removed by moderator>>
    Regards,
    Bhaskar
    Edited by: Matt on Feb 28, 2009 7:02 PM - Please do not offer rewards or points

    Hello,
    u have posted this question 2 times
    When you work on a table node in your form, the node is marked with the table icon . In the
    maintenance frame, you get a new type of tab, the Table tab. See below.
    On this tab, you can define the table characteristics, and turn on the Table Painter to help lay out
    the rows and columns. Turn on the Table Painter by choosing-> Table Painter.
    May this link helps u
    http://www.scribd.com/doc/7375795/Smart-Form
    Thank u,
    santhosh

  • How to create dublicate row in af:table ?

    Hi All,
    In my use case i have to add one custom button name as duplicate just above of af:table where user have option to click that button to create a row in table which contains duplicate value of the current row.
    How would i achieved this scenario
    Please let me know
    Thanks
    Edited by: ADFORCLE on Jan 16, 2012 6:48 PM

    Take a look at the blog post which provides the solution for the use-case:
    http://www.adftips.com/2010/10/adf-model-creating-duplicate-row.html
    Thanks,
    Navaneeth

  • How to Create multiple rows in Rich table programatically

    Hello ADF Exparts.
    I am Using below Code to create Rich Table Programatically on Clicking a button but I can't able to Create multiple tables will you please help me to create new row programatically
    public class NewTable {
        private RichInputText txtSearching;
        private RichShowDetailItem resultTab;
        private RichShowDetailItem simpleSearchTab;
        private RichColumn firstColumn;
        private RichOutputText outPutText;
        private String searchString;
        AdfFacesContext ctx=AdfFacesContext.getCurrentInstance();
        Connection conn;
        RichTable table;
        Statement stmt;
        private RichShowDetailItem basicSearchTab;
        private RichTable basicResultTable;
        private RichPanelGroupLayout panelGL;
        public NewTable() {
        public String buttonClicked() {
            // Add event code here...
            //Starrt Creating Table
            table =new RichTable();
            table.setId("demo");
            table.setVisible(true);
            table.setWidth("1024px");
            table.setValue("mat_search");
            table.setVar("Search");
            table.setFilterVisible(true);
            table.setAllDetailsEnabled(true);
            table.setRowKey("0");
            table.setFetchSize(25);
            table.setRows(10);
            table.setRowBandingInterval(0);
            table.setRowSelection("single");
           // table.setHorizontalGridVisible(false);
            //table.setVerticalGridVisible(false);      
            //Start Table Header Text Declaretion and Assignment
            RichOutputText colTextMat_No = new RichOutputText(); 
            colTextMat_No.setValue("Material No ");
            RichOutputText colTextShotDes = new RichOutputText(); 
            colTextShotDes.setValue("Short Description");
            RichOutputText colTextLongDes = new RichOutputText(); 
            colTextLongDes.setValue("Long Description");
            //Start Table Columan Creatin
            RichColumn colMat_No = new RichColumn(); 
            colMat_No.setVisible(true);
            colMat_No.setHeader(colTextMat_No);
            colMat_No.setWidth("100px");  
            colMat_No.setSortProperty("Material No");
            colMat_No.setSortable(true);
            colMat_No.setFilterable(true);
            colMat_No.setSeparateRows(true);
            RichColumn colShotDes = new RichColumn(); 
            colShotDes .setVisible(true);
            colShotDes .setHeader(colTextShotDes);
            colShotDes.setWidth("500px");
            colShotDes.setSortProperty("Short Description");
            colShotDes.setSortable(true);
            colShotDes.setFilterable(true);
            colShotDes.setSeparateRows(true);
            RichColumn colLongDes = new RichColumn(); 
            colLongDes .setVisible(true);
            colLongDes .setHeader(colTextLongDes);
            colLongDes.setWidth("500px");
            colLongDes.setFilterable(true);
            colLongDes.setSeparateRows(true);
            //End Table Columan Creatin
            //Start Creating table Children
            List<UIComponent> tblChild;
            tblChild=table.getChildren();
            //Start adding Columan to Table
            tblChild.add(colMat_No);
            tblChild.add(colShotDes);
            tblChild.add(colLongDes);
           List<UIComponent> displayPanel;
           displayPanel=panelGL.getChildren();
            List<UIComponent> matChild;
            matChild=colMat_No.getChildren();
            RichOutputText rot=new RichOutputText();
            rot.setValue("15000");
            matChild.add(rot);
           displayPanel.add(table);
             System.out.println("RowIndex="+table.getRowIndex());
             System.out.println("Row Count="+table.getRowCount());
            return null;
    Thank you very much

    Maybe you can get some ideas from here -
    http://adfdeveloper.blogspot.com/2011/07/simple-implementation-of-af.html

  • How to create dynamic row selection

    currently doing an application
    which require something like the search engine page [ 1|2|3|4|5]
    how do I get and display the row num in sql
    to get from say starting from 1 to 11 and the next one 12 to 22?
    quick eg:
    select * from country where rownum between
    x and xx
    where x is start of row and
    xx is end of row
    anyone has any idea??
    null

    Why use PL/SQL, when a single SQL statement is all that is needed to generate the XML?
    h3. Maximize SQL. Minimize PL/SQL.
    SQL> select
      2          xmlRoot(
      3                  xmlElement( "RowSet",
      4                          xmlAgg(
      5                                  xmlElement( "case",
      6                                          xmlAttributes( rownum as "repeating_index" ),
      7                                          xmlForest(
      8                                                  object_name,
      9                                                  object_type
    10                                          )
    11                                  )
    12                          )
    13                  ),
    14                  VERSION '1.1',
    15                  STANDALONE YES
    16          )                               as XML
    17  from       user_objects
    18  where      rownum < 4
    19  /
    XML
    <?xml version="1.1" standalone="yes"?>
    <RowSet>
      <case repeating_index="1">
        <OBJECT_NAME>INSERTEMP</OBJECT_NAME>
        <OBJECT_TYPE>PROCEDURE</OBJECT_TYPE>
      </case>
      <case repeating_index="2">
        <OBJECT_NAME>EMMP</OBJECT_NAME>
        <OBJECT_TYPE>TABLE</OBJECT_TYPE>
      </case>
      <case repeating_index="3">
        <OBJECT_NAME>FOO</OBJECT_NAME>
        <OBJECT_TYPE>TABLE PARTITION</OBJECT_TYPE>
      </case>
    </RowSet>
    SQL>     

  • How to create Dynamic Table Control

    Hi
    How to create Dynamic Table control , The field names and values to be displayed in table control are to be fetched from Add-on Tables.
    Regards
    Prasath

    Hi Jonathan,
    Actually the columns to be displayed are not constant . It will be increased based on the database values, Anyhow it will not exceed 100.
    Please confirm my understanding.
    1. In this case I have to create 100 custom columns and make it visible / invisible based on my requirement and I can set the title at runtime.
    2. How can i assosicate / reassociate the datadictionary reference for the columns that i use. Because I need to show the search help values for the
    dynamic columns.
    Your opinion on this will be helpful.
    Regards
    Prasath

  • How to create dynamic nested internal table

    Hi Experts,
    Pleae tell me or give sample code, how to create dynamic nested internal table ?
    I have seen threads saying creation of dynamic internal tables using some table structure only. But now the requirement is to create dynamic nested internal table.
    For example the internal table contains two fields viz., one is field1 of dynamic internal table and other is normal field2 and values as shown below:
    Nested internal table:
    field1                     |     field2 ...
    <table content1>     |     value2..
    <table content1>     |     value2..
    Here the [table content] should also a dynamic internal table.
    Let me know if you need any other info.
    regards
    Saravanan R

    see the complete code..i am currently working in ECC6.0 EHP4. just check which version you are using..
    REPORT  yst_test_000.
    DATA:
          lt_comptab         TYPE cl_abap_structdescr=>component_table,
          ls_comp            LIKE LINE OF lt_comptab,
          lref_newstr        TYPE REF TO cl_abap_structdescr,
          lref_tab_type      TYPE REF TO cl_abap_tabledescr,
          lt_fcat            TYPE lvc_t_fcat,
          ls_fcat            TYPE lvc_s_fcat,
          ls_dd03p           TYPE dd03p,
          lt_data            type ref to data.
    field-symbols: <fs_table> type standard table.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
      EXPORTING
        i_structure_name       = 'SCARR'
      CHANGING
        ct_fieldcat            = lt_fcat
      EXCEPTIONS
        inconsistent_interface = 1
        program_error          = 2
        OTHERS                 = 3.
    IF sy-subrc NE 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    LOOP AT lt_fcat INTO ls_fcat.
      IF ls_fcat-ref_table IS NOT INITIAL.
        CLEAR ls_dd03p.
        CALL FUNCTION 'BUS_DDFIELD_GET'
          EXPORTING
            i_tabnm         = ls_fcat-ref_table
            i_fldnm         = ls_fcat-fieldname
          IMPORTING
            e_dd03p         = ls_dd03p
          EXCEPTIONS
            field_not_found = 1
            OTHERS          = 2.
        IF sy-subrc EQ 0.
          ls_comp-name = ls_fcat-fieldname.
          ls_comp-type ?= cl_abap_datadescr=>describe_by_name( ls_dd03p-rollname ).
          APPEND ls_comp TO lt_comptab.
          CLEAR ls_comp.
        ENDIF.
      ELSE.
        ls_comp-name = ls_fcat-fieldname.
        ls_comp-type ?= cl_abap_datadescr=>describe_by_name( ls_fcat-rollname ).
        APPEND ls_comp TO lt_comptab.
        CLEAR ls_comp.
      ENDIF.
    ENDLOOP.
    *Now for the Field which you want deep table then you can do like this
    ls_fcat-fieldname  = 'NESTED_TABLE'.
    ls_fcat-inttype    = 'C'.
    ls_fcat-intlen     = '000006'.
    ls_fcat-rollname   = 'SFLIGHT_TAB1'. "For SFLIGHT
    APPEND ls_fcat TO lt_fcat.
    ls_comp-name = ls_fcat-fieldname.
    ls_comp-type ?= cl_abap_datadescr=>describe_by_name( ls_fcat-rollname ).
    APPEND ls_comp TO lt_comptab.
    CLEAR ls_comp.
    lref_newstr = cl_abap_structdescr=>create( lt_comptab ).
    lref_tab_type = cl_abap_tabledescr=>create( lref_newstr ).
    create data lt_data type handle lref_tab_type.
    assign lt_data->* to <fs_table>.
    break-point.
    Edited by: Vijay Babu Dudla on Apr 28, 2009 8:05 AM

  • How to create dynamic context based on a structure defined in the program?

    Hi Experts,
             I need to create a dynamic context based on a structure wa_struc which i have define programatically.
    When I pass wa_struc to structure_name parameter of create_nodeinfo_from_struc, i get a runtime error:
    "Parameter STRUCTURE_NAME contains an invalid value wa_struc."
    How to create dynamic context based on a structure defined in the program?
    I have written the code like this:
    TYPES: BEGIN OF t_type,
                v_carrid TYPE sflight-carrid,
                v_connid TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
             wa_struc type t_type.
      data: dyn_node   type ref to if_wd_context_node.
      data: rootnode_info   type ref to if_wd_context_node_info.
      rootnode_info = wd_context->get_node_info( ).
      clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
      parent_info = rootnode_info
      node_name = 'dynflight'
      structure_name = 'wa_struc'
      is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( name = 'dynflight' ).
    dyn_node->bind_table( i_struc ).
    Thanks
    Gopal
    Message was edited by: gopalkrishna baliga

    Hi Michelle,
              First of all Special thanks for your informative answers to my other forum questions. I really appreciate your help.
    Coming back to this question I am still waiting for an answer. Please help. Note that my structure is not in a dictionary.
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    I have updated my code like the following and I am getting error:
    TYPES: BEGIN OF t_type,
    CARRID TYPE sflight-carrid,
    CONNID TYPE sflight-connid,
    END OF t_type.
    Data: i_struc type table of t_type,
    dyn_node type ref to if_wd_context_node,
    rootnode_info type ref to if_wd_context_node_info,
    i_node_att type wdr_context_attr_info_map,
    wa_node_att type line of wdr_context_attr_info_map.
    wa_node_att-name = 'CARRID'.
    wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
    insert wa_node_att into table i_node_att.
    wa_node_att-name = 'CONNID'.
    wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
    insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
    select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
    attributes = i_node_att
    is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    But now I am getting the following error :
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    -Gopal
    Message was edited by: gopalkrishna baliga

  • How to create dynamic screen using module pool programming

    Hi,
    Could anybody help me how to create dynamic screens?
    I am developing a screen with HR Person with assignment info. If PERNR have multiple assignments, i need to show all the details one by one. How to show the details on screen. I need to call one by one assignment information dynamically.
    Please suggest me how to do, apart from using table controls.
    Thanks,
    Kamal

    You may have the below options:
    1) Table Control
    2) Individual fields
    3) ALV
    4) pop-up screen

  • How to create Dynamic Menu in 11g?

    Hello All,
    I am using JDeveloper/Adf 11g.
    Can you please tell me how to create Dynamic menu(means Menu will be created from table if we make any changes in table it will reflect to the Menu).
    Thanks.
    Neelmani Jaiswal
    (Madhav, Hayaghat)
    Edited by: Neelmani Jaiswal on Jan 6, 2009 11:01 AM
    Edited by: Neelmani Jaiswal on Jan 6, 2009 11:01 AM
    Edited by: Neelmani Jaiswal on Feb 3, 2009 8:46 AM

    Neelmani,
    How: write some code.
    The Web User Interface Developer's Guide for Oracle Application Development Framework will be helpful. Hint: you may want to read section 14.2 (especially 14.2.1, item 2, which talks about using iterators in a menu) OR section 17.5, which talks about creating menus to support page hierarchies.
    John

  • How to create dynamic connection string with variables using ssis.

    Hello,
    Can anyone let me know on how to create dynamic connection string with variables using ssis?
    Any help would be appreciated.

    Hi vinay9738,
    According to your description, you want to connect multiple database from multiple servers using dynamic connection.
    If in this case, we can create a Table in our local database (whatever DB we want) and load all the connection strings.  We can use Execute SQL Task to query all the connection strings and store the result-set in a variable of object type in SSIS package.
    Then use ForEach Loop container to shred the content of the object variable and iterate through each of the connection strings. And then Place an Execute SQL task inside ForEach Loop container with the SQL statements we have to run in all the DB instances. 
    For more details, please refer to the following blog:
    http://sql-developers.blogspot.kr/2010/07/dynamic-database-connection-using-ssis.html
    If there are any other questions, please feel free to let me know.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to create dynamic strcture and accepting runtime value in work area

    Hi,
    I am using RFC_READ_TABLE for  joining more than table  and written select query but  into clause work area value is passed but it is short dump is displaying with too few many fields  in into clause .work area WA need some casting type conversion which accepts the some run time value  and should have some structure  for it.how to create dynamic structure?

    hi
    good
    go through this and use in your report accordingly.
    If you are trying to read some information from SAP and you can't find the right BAPI then RFC_READ_TABLE can do the job for you.
    RFC_READ_TABLE is powerful RFC it gives you the access to all tables and views in SAP. I basically used RFC_READ_TABLE for Material Master Search application on the Intranet.
    Now you may say there are lots of BAPI for this functionality. You are right but I had to work around the BAPI to get Prices (Moving Average Price) and it just did not work very well. Because of the nature of the application I had to use RFC_READ_TABLE because then I can use powerful SQL expression for searching. RFC_READ_TABLE give you the ability to code the where clause which is quite enough.
    I have included part of the code use in asp page to read ENT1027 for Mgroup and M description & number but without object creation. The other part of the code reads MBEW for price & quantity.
    Code
    lt;%
    '#######################Diming the Structures
    Call BAPIRFC.DimAs("Rfc_Read_Table", "FIELDS", MaterialSelection_RS)
    Call BAPIRFC.DimAs("Rfc_Read_Table", "OPTIONS", Selection_RS)
    '########################Search Type########################
    ' C contanis
    ' S Start with
    ' E Ends with
    if searchtype = "C" then
    FormatedSearch_Keyword = "%" & Search_Keyword & "%"
    elseif searchtype = "S" then
    FormatedSearch_Keyword = Search_Keyword & "%"
    else searchtype = "E" then
    FormatedSearch_Keyword = "%" & Search_Keyword
    end if
    '################# Flaged for deletion Materials #####################
    if showdeleted = "No"  then
    Selection_RS.AddNew Array("TEXT"),Array("LVORM <> 'X' AND")
    end if
    '############## users can search three material group ################
    '############## GROUPS: OFFICESUP TECOMHARD TECOMSOFT ###############
    '##USER STILL CAN NAROW THEIR SEARCH BY SELECTING ON OF THREE#########
    if MGroup = "ALL"  then
    Selection_RS.AddNew Array("TEXT"),Array("MATKL IN ('OFFICESUP','TECOMHARD','TECOMSOFT')")
    else
    Selection_RS.AddNew Array("TEXT"),Array("MATKL = '"& MGroup &"' and ")
    end if
    '#######################ADDING SEARCH KEYWORD TO STRUCTURE##############
    if not  Search_Keyword = "" then
    Selection_RS.AddNew Array("TEXT"),Array(" MAKTG LIKE '" & FormatedSearch_Keyword &  "'")
    end if
    Selection_RS.Update
    '#######################ADD RETURNED FIELDS#########################
    MaterialSelection_RS.AddNew array("FIELDNAME","OFFSET","LENGTH","TYPE","FIELDTEXT"),array("MATNR","000000","000000" ,"","")
    MaterialSelection_RS.AddNew array("FIELDNAME","OFFSET","LENGTH","TYPE","FIELDTEXT"),array("MATKL","000000","000000" ,"","")
    MaterialSelection_RS.AddNew array("FIELDNAME","OFFSET","LENGTH","TYPE","FIELDTEXT"),array("MAKTG","000000","000000" ,"","")
    MaterialSelection_RS.Update
    call BAPIRFC.Rfc_Read_Table("ENT1027", Material_RS, MaterialSelection_RS, Selection_RS, "~", "", "0", "0")
    If Err.Number > 0 then
                   Response.Write "Error:" & "<BR>"
                   Response.Write "   Err.number...... " & Err.Number & "<BR>"
                   Response.Write "   Err.Description. " & Err.Description & "<BR>"
    end if
    '###########LOOP THROUGH RECORDSET
    if not Material_RS is nothing then
    do while not Material_RS.eof
    loop
    end if
    %>
    thanks
    mrutyun^

  • Salmple at How to Create Dynamical Object for RTTC

    Hi all, I need a sample at How to Create Dynamical Object for RTTC.
      you can help me?.

    Hello Martinez,
    I have attached a sample for structure types. With the Where-Used-List on the Create() Method of the various RTTC classes one may find more samples. If you meant with object on OO Type then it is to mention that this is not possible yet.
    Regards
      Klaus
    PROGRAM sample.
    DATA: sdescr1 TYPE REF TO cl_abap_structdescr,
          sdescr2 TYPE REF TO cl_abap_structdescr,
          tdescr1 TYPE REF TO cl_abap_tabledescr,
          tdescr2 TYPE REF TO cl_abap_tabledescr,
          tref1   TYPE REF TO data,
          tref2   TYPE REF TO data,
          comp    TYPE abap_component_tab,
          wa      TYPE t100,
          xbuf    TYPE xstring.
    FIELD-SYMBOLS: <tab1> TYPE table,
                   <tab2> TYPE table.
    sdescr1 ?= cl_abap_typedescr=>describe_by_name( 'T100' ).
    comp     = sdescr1->get_components( ).
    sdescr2  = cl_abap_structdescr=>create( comp ).
    tdescr1  = cl_abap_tabledescr=>create( sdescr2 ).
    tdescr2  = cl_abap_tabledescr=>create( sdescr2 ).
    CREATE DATA: tref1 TYPE HANDLE tdescr1,
                 tref2 TYPE HANDLE tdescr2.
    ASSIGN: tref1->* TO <tab1>,
            tref2->* TO <tab2>.
    wa-sprsl = 'E'. wa-arbgb = 'SY'. wa-msgnr = '123'. wa-text = 'first text'.   INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'D'. wa-arbgb = 'SY'. wa-msgnr = '456'. wa-text = 'second text'.  INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'D'. wa-arbgb = 'XY'. wa-msgnr = '001'. wa-text = 'third text'.   INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'D'. wa-arbgb = 'ZZ'. wa-msgnr = '123'. wa-text = 'fourth text'.  INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'E'. wa-arbgb = 'SY'. wa-msgnr = '123'. wa-text = 'ABAP is a miracle'. INSERT wa INTO TABLE <tab1>.
    EXPORT tab = <tab1> TO DATA BUFFER xbuf.
    IMPORT tab = <tab2> FROM DATA BUFFER xbuf.
    LOOP AT <tab2> INTO wa.
      WRITE: / wa-sprsl, wa-arbgb, wa-msgnr, wa-text.
    ENDLOOP.

  • How to create Dynamic Links

    Hi all,
    I have a table (let's call it Links) of structure like the following:
    Link_Lable varchar2(100),
    Link_Page_ID varchar2(5)
    How can I use rows in that table to generate a dynamic links so that when a Link_Label is clicked, the engine redirects to page of the value stored in the clicked Link_Page_ID?
    Any guideline is appreciated.

    See
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14377/rprt_drill.htm

  • How to compare two rows from two table with different data

    how to compare two rows from two table with different data
    e.g.
    Table 1
    ID   DESC
    1     aaa
    2     bbb
    3     ccc
    Table 2
    ID   DESC
    1     aaa
    2     xxx
    3     ccc
    Result
    2

    Create
    table tab1(ID
    int ,DE char(10))
    Create
    table tab2(ID
    int ,DE char(10))
    Insert
    into tab1 Values
    (1,'aaa')
    Insert
    into tab1  Values
    (2,'bbb')
    Insert
    into tab1 Values(3,'ccc')
    Insert
    into tab1 Values(4,'dfe')
    Insert
    into tab2 Values
    (1,'aaa')
    Insert
    into tab2  Values
    (2,'xx')
    Insert
    into tab2 Values(3,'ccc')
    Insert
    into tab2 Values(6,'wdr')
    SELECT 
    tab1.ID,tab2.ID
    As T2 from tab1
    FULL
    join tab2 on tab1.ID
    = tab2.ID  
    WHERE
    BINARY_CHECKSUM(tab1.ID,tab1.DE)
    <> BINARY_CHECKSUM(tab2.ID,tab2.DE)
    OR tab1.ID
    IS NULL
    OR 
    tab2.ID IS
    NULL
    ID column considered as a primary Key
    Apart from different record,Above query populate missing record in both tables.
    Result Set
    ID ID 
    2  2
    4 NULL
    NULL 6
    ganeshk

Maybe you are looking for

  • SAP starts a few WPs and stops

    I moved my 4.6C to another iSeries box on a hosted site with same OS v6r1 by restoring full system backup. Host name, system name are not changed. IP address is changed. The new server has the same memory size and a lot more dsik space. When I start

  • Family sharing not working for music on Apple TV

    We have Family Sharing set up and while we can see each other's purchases in Movies and TV shows we can not see our shared music. Does anyone know how to view each other's music purchases on the Apple TV? Thanks

  • Regarding Error Message in RunTime Workbench

    Hi All, Could you please tell me how to resolve the following error. Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault W

  • Normal Correction/Development Activity

    i am creating Development(Implementation) type change request, , after setting the status of the Change Request In Development and created the transport request. after creating TR its status automatically resets to "CREATED" again and again each time

  • DPM 2012 R2 and Hyper-V Replication, huge conflict and failure to backup

    I have recently created new 2012 R2 servers with DPM 2012 R2 in attempts to upgrade an environment. When attempting to create Protection Groups for Hyper-V VM, DPM will consistently omit any VM that happens to have Hyper-V Replication enabled, whethe