Creation of table in DD.

Can I have the example of how to create a table in DD with screenshots.
thank u.

Hi,
Procedure
       1.      Select Database Tables in the Dictionary Explorer.
       2.      Choose Create Table from the context menu.
       3.      Enter a name for the table.
The following rules apply to table names:
○       Table names must begin with a prefix (for example, the name of a component u201AFI_*u2019).
○       The name of a table can be up to 18 characters long (inclusive of the prefix).
○       Open SQL Keywords are not permitted. SELECT, INSERT, UPDATE, MODIFY and DELETE are some of the Open SQL Keywords.
○       The permitted characters are: letters, numbers, and underscores.
Name reservation takes place when the Dictionary object is assigned to an activity (checked in to the Design Time Repository). If the name is already reserved, you can create the table, but you cannot save it in the DTR.  
       4.      In the field Description, enter a short description for the table.
       5.      To create new columns, choose Add Column.
       6.      To define one of the built-in data types as the type of the column, choose Built-in Type.
                            a.      Enter a name for the column in the Column Name field.
The name may only contain letters, digits, and underscores. The name must begin with a letter.
                            b.      In the Built-in Type field, choose a data type. The JDBC Type field is automatically set and provides information about the underlying, database-independent JDBC type that results from the selected built-in type and from the length entered for the field.
                            c.      Complete the Length, Decimals (decimal point precision), and Description fields if necessary.
                            d.      To enter a default value for the database, enter the value in the DB Default field. For more information, see Initial Values.
                            e.      If the field is part of a primary key, choose Key.
                              f.      If the field cannot accept and store null values, choose Not Null. For more information, see Initial Values.
       7.      To define a type defined in the Java Dictionary as the data type of the column, choose Simple Type.
                            a.      Enter a name for the column in the Column name field.
                            b.      Choose Browse and select the simple type to use from the Simple Type Selection dialog. Choose OK. The SAP NetWeaver Developer Studio completes the Simple type package, Built-in type, JDBC type, and Length fields automatically.
       8.      If necessary, create indices for the table. For more information, see Creating Indexes.
       9.      Choose the Table Buffering tab. Here you can define the buffering type for the table. The table can be buffered entirely or row by row. If the table contains more than one key field, generic areas can be buffered. For more information, see Buffering Type.
To exclude databases you are not using, choose Advanced. When you create a table, different checks are carried out. If no database is excluded, the checks will be based on all the specified databases.

Similar Messages

  • Problem regarding the creation of Table using CSS.

    Hi ,
    Here I have a Problem regarding the creation of Table using CSS.
    In My Application i have a table with multiple rows(Rows are Dynamically added to the table).First i am setting the table with the following properties:
    width:900px;
    height : auto,
    Overflow : visible,
    Max-height: : 200px.
    If I use above properties,I'm getting a table with 5 or 6 rows(height upto 200px).After that i am getting the Vertical ScrollBar.
    The problem is when a table has many columns, Vertical and Horizontal Scrolls are coming at the time of setting the table. The table height is not Increasing dynamically.
    How can i use "height" property in CSS? (I want the table height to be increased when the columns are more.)
    Thanks & Regards
    Madhavi

    Hey humble user. Errr I'm trying to understand what ur trying to do. U want to create a section of a region destructively from an existing region right? If so select the option convert to new region (opt-comm-R or selecting it by right clicking). Check your audio bin to make sure. Whats the "merge" function? Are u refering to the glue tool?

  • Reg: Creation of Table Types

    Hi All,
    I have a small question regaridng the creation of Table type.
    Let us suppose I am creating Table type for a custom table zsample which is having 5 fields. I am generally creating a structure similar to custom table and using that structure as line type for the table type. Let us suppose if there are any changes in the custom table like change in the order of fields or if new fields are added the table type will give dump.
    My question is If I use the custom table itself as a line type, will there be any effect in the performance or some thing or I can go ahead and use it..
    Thanks,
    Ravee

    What dump are you expecting ???
    It is idea behind the creation with reference to get structures and tables which always look like
    the tables they refer to.
    I can not see a possibilty for a dump as long as you create only an internal table.
    A dump could appear, if the internal table is later used to update another db-table. But there it should be clear that the structure of an internal should be created with reference to the tables which they change.
    Siegfried

  • Creation of tables using JDBC or SQLJ in webdynpro application

    Hi,
    I am trying to create tables in javadictionary(MaxDB)using my WebDynpro application.I tried creating tables using SQLJ and JDBC.But I was not able to do it.I can select and insert data into already created tables.
    Whwn I tried creating a table using JDBC I encountered the following exception.
    com.sap.sql.log.OpenSQLException: The SQL statement "CREATE TABLE TMP_DEPID (DEPID varchar(10) NOT NULL,DEPNAME VARCHAR(25))" contains the syntax error[s]: Open SQL syntax error: CREATE ... TABLE is not supported
    SQL syntax error: "VARCHAR" is a reserved keyword and cannot be used as an unquoted identifier
    Does this mean that creating tables is not supported?
    Can anyone help me in this matter?
    Thanks in advance,
    regards
    ~Pradeep Shetty

    Hi Pradeep,
    Yes, OpenSQL does not support creation of tables. But why would you need to create tables at runtime?! The natural way is to create the model at design time of your application, i.e. with the Java DataDictionary.
    However, if for any reason you really need to create database tables at runtime, you can achieve this by using a non-OpenSQL datasource, e.g. you could create a VendorSQL one and use it to obtain JDBC connections in your app. See also http://help.sap.com/saphelp_nw04/helpdata/en/c0/3ad4d5cdc66447a188b582aad537d3/frameset.htm.
    Hope that helps!
    Vladimir

  • MDM Java API (Creation of table)

    Hi,
    can anyone help me for  creation of tables in repository using MDM java API .
    Can u Provide sample code for this.
    Edited by: Srikanth Josyula on Jun 26, 2008 8:52 AM

    Hi Srikanth,
    Check with this code.It may be useful.
    createflattable.java
    Created on June 25, 2008, 5:08 PM
    To change this template, choose Tools | Options and locate the template under
    the Source Creation and Management node. Right-click the template and choose
    Open. You can then make changes to the template in the Source Editor.
    package tabletype;
    import com.sap.mdm.commands.AuthenticateRepositorySessionCommand;
    import com.sap.mdm.commands.CommandException;
    import com.sap.mdm.commands.CreateRepositorySessionCommand;
    import com.sap.mdm.commands.GetRepositoryRegionListCommand;
    import com.sap.mdm.data.MultilingualString;
    import com.sap.mdm.data.RegionProperties;
    import com.sap.mdm.data.RegionalString;
    import com.sap.mdm.net.ConnectionException;
    import com.sap.mdm.net.ConnectionPool;
    import com.sap.mdm.net.ConnectionPoolFactory;
    import com.sap.mdm.schema.TableProperties;
    import com.sap.mdm.schema.commands.CreateTableCommand;
    import com.sap.mdm.schema.commands.GetFieldListCommand;
    import com.sap.mdm.schema.commands.GetTableListCommand;
    import com.sap.*;
    import com.sap.mdm.server.DBMSType;
    import com.sap.mdm.server.RepositoryIdentifier;
    import java.util.Locale;
    public class createflattable {
        /** Creates a new instance of createflattable */
        public createflattable() {
            private static MultilingualString createMultilingualString(RegionProperties[] regionPropertiesList, String baseString)
            MultilingualString mlString = new MultilingualString();
            for (int i = 0; i < regionPropertiesList.length; i++)
                Locale locale = regionPropertiesList<i>.getLocale();
                //Locale locale = regionPropertiesList<i>.getLocale();
                String regionCode = regionPropertiesList<i>.getRegionCode();
                String string = baseString + "_" + locale.getLanguage() + "_" + locale.getCountry();
                RegionalString regionalstring = new RegionalString(string, regionCode);
                mlString.set(regionalstring);
            return mlString;
        private static TableProperties createFlatTable(RegionProperties[] regionPropertiesList)
            //MultilingualString tableName = createMultilingualString(regionPropertiesList, "NewTable" + System.currentTimeMillis());
    MultilingualString tableName = createMultilingualString(regionPropertiesList, "first"+System.currentTimeMillis());
    System.out.println("table is" +tableName);
            TableProperties table = new TableProperties(TableProperties.FLAT);       
            table.setName(tableName);
            table.setCode("NewCode" + System.currentTimeMillis());
            table.setKeyMappable(true);
            table.setDescription("");
            return table;
          public static void main(String[] args) {
                // System Name
         String tag = "";
        ConnectionPool connections = null;
    try {
        connections = ConnectionPoolFactory.getInstance(tag);
    catch (ConnectionException e)
    e.printStackTrace();
    return;
    //////////////// specify the repository to use
    //RepositoryName
    String repositoryName = "";
    //DataBase Name
    String dbmsName = "";
    RepositoryIdentifier  reposId = new RepositoryIdentifier(repositoryName, dbmsName, DBMSType.MS_SQL);
    /////// create a repository session
    CreateRepositorySessionCommand sessionCommand = new CreateRepositorySessionCommand(connections);
    sessionCommand.setRepositoryIdentifier(reposId);
    try {
    sessionCommand.execute();
    catch (CommandException e) {
    e.printStackTrace();
    return;
    System.out.println("Currently connected to "+reposId);
    String sessionId = sessionCommand.getRepositorySession();
    /////////// authenticate the repository session
    String userName = "";
    String userPassword = "";
    AuthenticateRepositorySessionCommand authCommand = new AuthenticateRepositorySessionCommand(connections);
    authCommand.setSession(sessionId);
    authCommand.setUserName(userName);
    authCommand.setUserPassword(userPassword);
    try {
    authCommand.execute();
    catch (CommandException e) {
    e.printStackTrace();
    return;
    //////////////////// retrieve the list of tables
    GetTableListCommand tableListCommand = new GetTableListCommand(connections);
    tableListCommand.setSession(sessionId);
    try {
    tableListCommand.execute();
    catch (CommandException e) {
    e.printStackTrace();
    return;
    // get change stamp
      // this is required when we make any kind of changes to the repository
         int changeStamp = tableListCommand.getChangeStamp();
         //////get repository regionlist
    //A command for retrieving the list of regions supported by the repository.
          // retrieve the available regions (languages) for the repository
          // we need this to set up the table name for each region
      GetRepositoryRegionListCommand gm =  new GetRepositoryRegionListCommand(connections);
       gm.setRepositoryIdentifier(reposId);
            try {
               gm.execute();
            catch (CommandException e) {
                e.printStackTrace();
                return;
       //   RegionProperties[] rs = gm.getRegions();
    RegionProperties[] regionPropertiesList = gm.getRegions();
          TableProperties newtable = createFlatTable(regionPropertiesList);
          CreateTableCommand c = new CreateTableCommand (connections);
            c.setSession(sessionId);
          c.setTable(newtable);
       c.setInChangeStamp(changeStamp);
            try {
                 c.execute();
                System.out.println("sdf");
            catch (CommandException e) {
                e.printStackTrace();
                return;

  • Capacity Planning for Creation of Table

    Hello Guys,
    I just need some advise here.
    I have been told to work out the space needed for the creation of a table.
    The table in question would have three columns with datatypes [num(10), varchar(10),date] and would be loaded with 100,000 rows. How do I go about it.
    Thanks in Advance

    Try with something like this, may help you.
    Prerreqs: parameter OPTIMIZER_MODE != RULE.
    grant to execute DBMS_SPACE
    DDL Table creation:
    CREATE TABLE SAMPLE
    ID               NUMBER(9),
    NAME             VARCHAR(50),
    CREATE_DATE_TIME DATE,
    MOD_DATE_TIME    DATE,
    USER_ID          VARCHAR(15)
    set serveroutput on
    declare
       calc_used_bytes  NUMBER;
       calc_alloc_bytes NUMBER;
       cols             sys.create_table_cost_columns;
    begin
       cols := sys.create_table_cost_columns
               sys.create_table_cost_colinfo('NUMBER',   9),
               sys.create_table_cost_colinfo('VARCHAR2', 50),
               sys.create_table_cost_colinfo('VARCHAR2', 15),
               sys.create_table_cost_colinfo('DATE',     NULL),
               sys.create_table_cost_colinfo('DATE',     NULL)
       DBMS_SPACE.CREATE_TABLE_COST (
           tablespace_name => 'USERS',
           --avg_row_size    => 100,   quitar comentario para 11g
           row_count       => 5000,
           pct_free        => 10,
           used_bytes      => calc_used_bytes,
           alloc_bytes     => calc_alloc_bytes
       dbms_output.put_line('Used      (M): '||round(calc_used_bytes/(1024*1024)));
       dbms_output.put_line('Allocated (M): '||round(calc_alloc_bytes/(1024*1024)));
    end;
    /More info: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_space.htm#i1003180
    Regards.
    johnxjean
    Edited by: johnxjean on 18-Mar-2011 09:43
    Edited by: johnxjean on 18-Mar-2011 09:44

  • Creation of table in interactive form

    hai,
    any one can explain me the creation of table in interactive forms transcation code(sfp) 
    or any can send any material because i am  new to  this, how to build interactive forms
    advance thanks.
    regards,
    shravanramidi .

    Hi,
    TRy https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cacb9a7d-0c01-0010-1281-be4962c9ab3e
    Regards,
    Shiva Kumar(Reward if helpful).

  • Significance of Initial (intial_extent)parameter while creation of table

    Hi All,
    I am designing a new schema for my 10g database and I am in process of creation of tablespaces and tables.
    My Tablespace are extent management local autoallocate and auto segment space management.
    With “segment space management Auto”, I understand that I don’t have to define storage clause in tablespace and freelist will be taken care by bitmap
    My question is
    while creation of tables what’s the significance of Intial (intial_extent in user_tables) parameter.?
    Do I need to consider this parameter while defining large and small tables?
    Is this not controlled by “auto segment space management.” Parameter of tablespace.?

    While it is unlikely to make a measurable impact on anything in practice, it is almost always preferable in theory, assuming perfect knowledge of the system, to have a few different tablespaces with different uniform extent sizes and to put each object in the appropriate tablespace for its size (i.e. giant tables in the tablespace with giant extent sizes, tiny tables in the tablespace with tiny extent sizes, etc.). The problem with this, however, is that you very rarely have perfect knowledge in advance about object sizes and growth and size patterns are likely to evolve over the life of the system, so you can suck up a great deal of DBA and developer time gathering and maintaining this sort of information as well as responding to changes over time (i.e. moving objects from one tablespace to another as their usage patterns change). For most systems, the potential benefit to having a perfect setup, rather than putting everything in an AUTOALLOCATE tablespace, is far smaller than the cost of actually doing so.
    Unless you have some reason to believe that your application is in the minority where squeezing the last bit of storage efficiency is worth the hassle, I'd tend to suggest throwing everything in an AUTOALLOCATE tablespace.
    Justin

  • Creation of tables

    Good morning.
    In oracle 10g is necessary specify clause storage in creation of tables??
    thanks
    Mauricio Briñes.

    Nope, it's not required.
    scott@db> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for Solaris: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.00
    scott@db> create table sun_test
      2  ( a number);
    Table created.

  • Need Notification on creation of table

    Hi,
    I am looking for notification as soon a table is created in a document to perform some actions on it.
    I tried looking for Responder service but there is no such service available for table creation.
    Can some one suggest a way for the same? If I have to use Observer then which boss class shall I use for it and what should be the subject.

    One approach is via CTextCommandPreProcess::InsertPreProcess(), see whether the inserted char has a table bound to it.
    Note that is pretty early, e.g. at that point table attributes haven't been applied.
    Later on the kTextStoryBoss subject notifies with change kTableModelBoss, protocol IID_IPRENOTIFYTABLESTRUCTURECHANGE.
    This change is also seen on the kDocBoss subject so you can use a document observer.
    The void* data appears to be your table's IID_ITABLELAYOUT.
    The last change that I've seen with a simple table is the table style (2nd time during the bracketing kNewTableCmdBoss):
    subject kDocWorkspaceBoss, change kApplyTableStyleCmdBoss, protocol IID_ITABLEMODEL given the command.

  • Creation of Table

    Hi,
    While creation of a Z table in Development Server, it is giving compilation error that 'You donot have permission to create a table'.
    How to overcomethis problem?
    Can anyone give the solution for it?
    thanks
    Revanth

    Hello,
    Sure, talk to your basis team, they´ll give you the rigth permissions.
    Bye
    Gabriel

  • Creation of table of table dynamically

    Hi everyone,
      i have created an alv grid with a dynamic number of columns. Now i need to edit specific rows in the alv table. In the BCALV_EDIT_02 you need to create in the data table a field CELLTAB (wich is also a table), how can i do this ?
    Xavier

    Hello Frederico
    The once again revised version of my sample report demonstrates how to store PBO and PAI data. Please note the following naming convention:
    - OUTTAB ==> itab for ALV list display with CELLTAB (i.e. a complex type)
    - ITAB      ==> flat itab without CELLTAB
    *& Report  ZUS_SDN_RTTI_CREATE_STRUCTUR_2
    *& NOTE: 1st revised version of ZUS_SDN_RTTI_CREATE_STRUCTUR_1
    REPORT  zus_sdn_rtti_create_structur_2.
    TYPE-POOLS: abap.
    DATA:
      celltab          TYPE lvc_t_styl.
    DATA:
      gd_tabnam        TYPE string,
      gd_tabfield      TYPE string,
      go_table         TYPE REF TO cl_salv_table,
      go_sdescr        TYPE REF TO cl_abap_structdescr,
      go_sdescr_new    TYPE REF TO cl_abap_structdescr,
      go_tdescr        TYPE REF TO cl_abap_tabledescr,
      go_typedescr     TYPE REF TO cl_abap_typedescr,
      gdo_data         TYPE REF TO data,
      gdo_handle       TYPE REF TO data,
      gs_component     TYPE abap_compdescr,
      gs_comp          TYPE abap_componentdescr,
      gt_components    TYPE abap_component_tab.
    *    name       TYPE string,
    *    type       TYPE REF TO cl_abap_datadescr,
    *    as_include TYPE abap_bool,
    *    suffix     TYPE string,
    FIELD-SYMBOLS:
      <gd_fld>            TYPE ANY,  " single field
      <gs_outtab>         TYPE ANY,  " structure with CELLTAB
      <gs_itab>           TYPE ANY,  " structure without CELLTAB
      <gt_itab_pbo>       TYPE STANDARD TABLE,  " without CELLTAB
      <gt_itab_pai>       TYPE STANDARD TABLE,  " without CELLTAB
      <gt_outtab_pbo>     TYPE STANDARD TABLE,  " with CELLTAB
      <gt_outtab_pai>     TYPE STANDARD TABLE.  " with CELLTAB
    PARAMETER:
      p_tabnam      TYPE tabname  DEFAULT 'KNB1'.
    PARAMETERS:
      p_skip        AS CHECKBOX  DEFAULT 'X'.  " skip simulation
    START-OF-SELECTION.
      " Describe structure
      go_sdescr ?= cl_abap_structdescr=>describe_by_name( p_tabnam ).
      gd_tabnam     = go_sdescr->get_relative_name( ).
    * Simulate dynamic addition of columns to ALV list
      DO 5 TIMES.
        READ TABLE go_sdescr->components INTO gs_component INDEX syst-index.
        "   Build fieldname
        CONCATENATE gd_tabnam gs_component-name INTO gd_tabfield
                                                SEPARATED BY '-'.
        CLEAR: gs_comp.
        gs_comp-type ?= cl_abap_datadescr=>describe_by_name( gd_tabfield ).
        gs_comp-name  = gs_component-name.
        APPEND gs_comp TO gt_components.
        go_sdescr_new  = cl_abap_structdescr=>create( gt_components ).
        go_tdescr      = cl_abap_tabledescr=>create( go_sdescr_new ).
        "   Create data refence followed by table creation
        CREATE DATA gdo_handle TYPE HANDLE go_tdescr.
        ASSIGN gdo_handle->* TO <gt_outtab_pbo>.
    *   Dynamic select
        SELECT        * FROM  (p_tabnam) UP TO 10 ROWS
          INTO CORRESPONDING FIELDS OF TABLE <gt_outtab_pbo>
               WHERE  bukrs  = '2000'.
        IF ( p_skip = abap_false ).
          TRY.
              CALL METHOD cl_salv_table=>factory
                IMPORTING
                  r_salv_table = go_table
                CHANGING
                  t_table      = <gt_outtab_pbo>.
              go_table->display( ).
            CATCH cx_salv_msg .
          ENDTRY.
        ENDIF.
      ENDDO.
      TRY.
          CALL METHOD cl_salv_table=>factory
            IMPORTING
              r_salv_table = go_table
            CHANGING
              t_table      = <gt_outtab_pbo>.
          go_table->display( ).
        CATCH cx_salv_msg .
      ENDTRY.
      " Display component list in order to prove that indeed the field names
      " are used (instead of the data element names)
      TRY.
          CALL METHOD cl_salv_table=>factory
            IMPORTING
              r_salv_table = go_table
            CHANGING
              t_table      = gt_components.
          go_table->display( ).
        CATCH cx_salv_msg .
      ENDTRY.
      " Create data reference for structure (without CELLTAB)!!!
      CREATE DATA gdo_handle TYPE HANDLE go_sdescr_new.
      REFRESH: gt_components.
      CLEAR: gs_comp.
      gs_comp-type ?=
            cl_abap_structdescr=>describe_by_data_ref( gdo_handle ).
      gs_comp-name       = 'DATA'.
      gs_comp-as_include = abap_true.
      APPEND gs_comp TO gt_components.
      " Add table type as field to structure ==> complex structure
      CLEAR: gs_comp.
      gs_comp-type ?= cl_abap_typedescr=>describe_by_data( celltab ).
      gs_comp-name  = 'CELLTAB'.
      APPEND gs_comp TO gt_components.
      go_sdescr  = cl_abap_structdescr=>create( gt_components ).
      go_tdescr  = cl_abap_tabledescr=>create( go_sdescr ).
      CREATE DATA gdo_handle TYPE HANDLE go_tdescr.
      ASSIGN gdo_handle->* TO <gt_outtab_pbo>.
    *   Dynamic select
      SELECT        * FROM  (p_tabnam) UP TO 10 ROWS
        INTO CORRESPONDING FIELDS OF TABLE <gt_outtab_pbo>
             WHERE  bukrs  = '2000'.
      PERFORM fill_celltab.
      " Create second itab (PAI data)
      CREATE DATA gdo_handle TYPE HANDLE go_tdescr.
      ASSIGN gdo_handle->* TO <gt_outtab_pai>.
      <gt_outtab_pai> = <gt_outtab_pbo>.  " PAI data = PBO data
      " Renumbering of customer makes it easier to spot the differences
      LOOP AT <gt_outtab_pai> ASSIGNING <gs_outtab>.
        ASSIGN COMPONENT 'KUNNR' OF STRUCTURE <gs_outtab> TO <gd_fld>.
        <gd_fld> = syst-tabix.  " new numbering of customers
      ENDLOOP.
      LOOP AT <gt_outtab_pbo> ASSIGNING <gs_outtab>.
        ASSIGN COMPONENT 'KUNNR' OF STRUCTURE <gs_outtab> TO <gd_fld>.
        <gd_fld> = syst-tabix.  " new numbering of customers
      ENDLOOP.
      DELETE <gt_outtab_pbo> INDEX 3.  " ==>  3rd row in PAI data is new
      DELETE <gt_outtab_pai> INDEX 7.  " ==>  7th row in PBO data is DELE
      " Shuffle data from outtab to corresponding itab (w/o CELLTAB)
      PERFORM shuffle_outtab_to_itab.
      " List output
      PERFORM write_list.
      EXIT.
      " Simplified version of table creation:
      CLEAR: gdo_data.
      UNASSIGN <gt_outtab_pbo>.
      CREATE DATA gdo_data TYPE STANDARD TABLE OF (p_tabnam).
      ASSIGN gdo_data->* TO <gt_outtab_pbo>.
    END-OF-SELECTION.
    *&      Form  FILL_CELLTAB
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_celltab .
    * define local data
      DATA:
        ls_cell       TYPE lvc_s_styl,
        lt_celltab    TYPE lvc_t_styl.
      FIELD-SYMBOLS:
        <gs_struc>    TYPE ANY,
        <lt_celltab>  TYPE lvc_t_styl.
      " Create dummy entry for local CELLTAB
      ls_cell-fieldname = 'BUKRS'.
      ls_cell-style     = cl_gui_alv_grid=>mc_style_enabled.
      INSERT ls_cell INTO TABLE lt_celltab.
      LOOP AT <gt_outtab_pbo> ASSIGNING <gs_struc>.
        ASSIGN COMPONENT 'CELLTAB' OF STRUCTURE <gs_struc> TO <lt_celltab>.
        <lt_celltab> = lt_celltab.
        "   No MODIFY required because we are working with the field symbol
      ENDLOOP.
    ENDFORM.                    " FILL_CELLTAB
    *&      Form  SHUFFLE_OUTTAB_TO_ITAB
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM shuffle_outtab_to_itab .
      go_tdescr  = cl_abap_tabledescr=>create( go_sdescr_new ).
      CREATE DATA gdo_handle TYPE HANDLE go_tdescr.
      ASSIGN gdo_handle->* TO <gt_itab_pbo>.
      go_tdescr  = cl_abap_tabledescr=>create( go_sdescr_new ).
      CREATE DATA gdo_handle TYPE HANDLE go_tdescr.
      ASSIGN gdo_handle->* TO <gt_itab_pai>.
      LOOP AT <gt_outtab_pbo> ASSIGNING <gs_outtab>.
        ASSIGN COMPONENT 'DATA' OF STRUCTURE <gs_outtab> TO <gs_itab>.
        APPEND <gs_itab> TO <gt_itab_pbo>.
      ENDLOOP.
      LOOP AT <gt_outtab_pai> ASSIGNING <gs_outtab>.
        ASSIGN COMPONENT 'DATA' OF STRUCTURE <gs_outtab> TO <gs_itab>.
        APPEND <gs_itab> TO <gt_itab_pai>.
      ENDLOOP.
    ENDFORM.                    " SHUFFLE_OUTTAB_TO_ITAB
    *&      Form  WRITE_LIST
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM write_list .
      WRITE: / 'PBO data:'.
      LOOP AT <gt_itab_pbo> ASSIGNING <gs_itab>.
        WRITE: / 'Record No.=', syst-tabix, '==>'.
        DO.
          ASSIGN COMPONENT syst-index OF STRUCTURE <gs_itab> TO <gd_fld>.
          IF ( syst-subrc NE 0 ).
            EXIT.
          ENDIF.
          WRITE: <gd_fld>.
        ENDDO.
      ENDLOOP.
      SKIP 2.
      WRITE: / 'PAI data:'.
      LOOP AT <gt_itab_pai> ASSIGNING <gs_itab>.
        WRITE: / 'Record No.=', syst-tabix, '==>'.
        DO.
          ASSIGN COMPONENT syst-index OF STRUCTURE <gs_itab> TO <gd_fld>.
          IF ( syst-subrc NE 0 ).
            EXIT.
          ENDIF.
          WRITE: <gd_fld>.
        ENDDO.
      ENDLOOP.
    ENDFORM.                    " WRITE_LIST
    Finally, if you want to know the <i>differences </i>between PAI and PBO data, that is which records have been deleted, updated or inserted have a look at my code sample
    <a href="https://wiki.sdn.sap.com/wiki/display/Snippets/ComparingTwoInternalTables-AGeneric+Approach">Comparing Two Internal Tables - A Generic Approach</a>
    Regards
      Uwe

  • Error During Creation of  Table Value Request /Simple Value Request Express

    Hi,
    I am on SAP CRM ABAP 7.0 with enhancement pack 2.0.
    The requirement is to create a decision table which would have value(search helps) requests for some of the condition columns in it. For example, Value Request for condition column Y would come according to condition column X  . As per my understanding,this could only be achieved by maintaining foreign key relationship. So I tried to create a  Table Value Request  which I could assign in the domain values in the data object of the corresponding condition column.
    But,when I am trying to create a Table Value Request or Simple Value Request in BRF+ application, it is throwing an error message "Table FDT_EXPR_1950S is not part of the Customizing object FDT0001 T".
    Could you please help me out !!

    Hi Carsten,
    Thanks for your quick response.
    Just wondering whether or not I can achieve the requirement without Table Value Request. Do you have any idea on this?

  • Spatial index creation for table with more than one geometry columns?

    I have table with more than one geometry columns.
    I'v added in user_sdo_geom_metadata table record for every column in the table.
    When I try to create spatial indexes over geometry columns in the table - i get error message:
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA table
    ORA-13203: failed to read USER_SDO_GEOM_METADATA table
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 8
    ORA-06512: at line 1
    What is the the solution?

    I'v got errors in my user_sdo_geom_metadata.
    The problem does not exists!

  • Regarding creation of tables

    help me! plz,
    while i was activating the table it was displaying error that is
    'structure change at field level(convert table ZRFITAB)
    how should i proceed with this error can someone explain me how to convert table using se14.
    plz it is very urgent.

    I do hope this is useful...
    1. Cannot Activate a Table
    Syntax error in SDCC, table inconsistency between ABAP Dictionary and the database, transport error 8 during the generation of ABAP Dictionary. When you call Transaction SDCC, a termination occurs due to a putative syntax error because a table is not known or active. When you check this with the ABAP dictionary (SE11), you notice, that the table is active or inactive, however it is not possible to activate it. The activation might terminate with the error message 'Inconsistency between ABAP Dictionary and database'. A check of the affected object also delivers this error.
    Solution
    Proceed as follows:
    Log on as user DDIC
    Call Transaction SE14
    Enter the affected table name and
    select EDIT
    In the following screen, choose Table -> Reconstruct
    Confirm the execution
    Call Transaction SE11
    Enter the affected table name
    Display
    Activate
    If - after you chose EDIT -, the error message occurs that the table only exists on the database, you need to activate the source and the runtime object.
    Call Transaction SE37:
    -> Function module 'DD_TABL_ACTM' -> Single test
    Under import parameter MODE, enter the number 12 and under TABNAME the corresponding table name
    -> Execute (F8) -> Export parameter ACT_RESULT must be 0
    Call Transaction SE14 again as described above.
    -> Extras -> Database object -> Check,
    as well as
    -> Extras -> Runtime object -> Check
    inconsistencies should no longer be contained.
    If you cannot switch to the EDIT mode in Transaction SE14, which means no modifications are allowed in the customer system, then proceed as follows:
    Call function module 'DD_TABL_ACTM' as described above.
    Then call Transaction SE14 again and verify that the table has been activated.
    As a result, this ensures that the SDCC can be executed.
    The menu options in Transaction SE14 are
    -> Extras -> Database object -> Check,
    as well as
    -> Extras -> Runtime object -> Check
    inconsistencies should no longer be contained.
    If this is not the case, open a CSN message under the BC-DWB-DIC-ED component.

  • Query regarding creation of tables using AET

    Hi Experts,
    First of all is it advisable to create a assignment block (table view/ form view) using AET?
    We are going to implement an upgrade project from  CRM 5.0 to CRM 7.0. In CRM 5.0 there was a two custom tables which needs to implemented in CRM 7.0 as an assignment block. One view will be form view and the other table view. The custom tables has data. What is the best way to go about it?
    If we create assignment block using AET by using the option 'CREATE TABLE' a new database table is created which has three fields 'RECORD_ID' 'OBJECT_ID' and 'PARENT_ID'. Object ID stores the External ID of the campaign as GUID (RAW 16). Parent ID stores the Campaign GUID value. How is the Record ID generated?
    Now the challenge is to move the data from the custom table to the table created using AET. Is there a standard function module to take care of it or we have to write a one time report?
    Thanks in advance.
    Regards,
    Sayan
    Edited by: jana6586 on Nov 23, 2011 12:14 PM

    Hi Sayan,
    I had to do the same story with the aet and the data we need to transfer into the Z table.
    I have been looking for a function that takes care of it, but unfortunately i didnt found one.
    If you didnt found one until now, i higherly recommand you to right a report that handles the transfer between the two tables in a generic way, and mabye even to share it
    The Recoed id is simply a guid that is generetad behind the scenes, in order to keep a PK for each and each row of the Z table.
    I hope that the answer helped you !
    Regards,
    mapatz.

Maybe you are looking for

  • Remote.app -No gesture control TV (Gen1)

    I've deleted and re-added my iTunes library on the TV as well as deleting and re-adding my iPhone 4S as a remote and still do not have the option to gesture control within the App. AppleTV says it's software is up to date and this is with the curren

  • Acrobat Pro X - memory reference error

    I am running XP Pro x86. I have Adobe Acrobat Pro X installed w/the lastest patches. Every time I open a document for review, I click on the comments button and get the following error: "Acrobat.exe -Application Error" The instruction at "0x00000000"

  • Third party Certificate not showing up in SQL configuration manager drop down box

    Hi, I have an SQL instance that needs to use a third party SSL certificate for all communications to that SQL instance. I have installed my third party certificate via MMC and it is showing under the Personal Folder. However, when i go into the SQL c

  • [Solved] avidemux2_qt4: /usr/lib/libstdc++.so.6: `GLIBCXX_3.4.15'

    I suddenly cannot run my avidemux2_qt4 $ avidemux2_qt4 avidemux2_qt4: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by avidemux2_qt4) $ pacman -Q avidemux-qt avidemux-qt 2.5.4-3 $ pacman -Q gcc gcc 4.5.2-6 $ pacman -Q glibc gl

  • Incremental Backup question

    Hi, I have a hot backup taken every wednesday and archive log backups taken every day. (using RMAN and netbackup). Oracle is 10.2.0.3 and OS is RHEL4. Do I still need or (will it be helpful to have ) incremental backups? What is its purpose? Will the