Dictionary, Table, Counter Question

Hi,
I'm trying to create a special customer table (SE11) with the following fields and have question regarding TYPE etc:
Fields of table
CUST_ID    
CUST_NAME
CUST_DESC
1. CUST_ID should work as a counter (increment by 1 every time.) What kind of TYPE should I use ?
(How do i do the increment stuff...)
2. CUST_DESC should be able to take approx 5 kb of data and be searchable in WHERE clause. What kind of TYPE should I use ?
3. Is there any advantages of creating/using Data Element instead of Build-in type ?
//Martin
Message was edited by: Martin Andersson

Hi Martin,
1. SE11 will help you only to create a table, but not to add any special functionality (as far as i have known) the CUST_ID can be made as counter only by programming. while moving data use a variable to get the previous maximum CUST_ID value from the tabel and increment it before you insert the value into the table.
2. To give long descriptions declare the CUST_DESC as LCHR or LRAW types, i am not sure whether it will hold 5kb of data. Then searching for a particular word will not be a problem  you can use,
SEARCH <c> FOR <str> <options>.
<option> in the SEARCH FOR statement can be any of the following:
ABBREVIATED
STARTING AT <n1>
ENDING AT <n2>
AND MARK
can be used to find the required word.
3. I think this is what you meant -  if a data element is created by a domain, the technical attributes of the domain are inherited by data elements and these domains can be used by any number of data elements, besides you can also create data elements by refering to the existing data elements using 'TYPE'.
Hope this helps.
Regards,
Kathirvel

Similar Messages

  • Problems with Java Dictionary Tables

    Hi Experts,
    I have some problems with the Java Dictionary tables that I have created for my
    application. There are around 15 dictionary tables, each one of them having
    several hundred records, added in due course.
    As much as I understand these tables (created using the dictionary perspective)
    are stored in the default schema of the J2EE engine where the dictionary project
    is deployed and there is no direct way to insert records into these tables, we have
    to separately write methods to insert, update and delete records.
    I've already done this. Now the problem is that i have moved my project DC from
    development to testing. Now here the tables are existing, but not the data that i
    inserted during development.
    NOW, the main question: IS THERE ANY WAY IN WHICH I CAN TRANSFER
    THE CONTENTS OF THESE JAVA DICTIONARY TABLES??
    I have tried solutions like creating a DBLINK between the databases, but it is
    tedious, and unpredictable in behaviour. Also Please do not advise to first
    download them to excel and then upload using jxlapi, etc.
    Thanx in Advance.
    Alka.

    Hi Alka,
    The dblink is a good solution, but just a bit slow. You can also use a SQL Loader, first export the data from the source table in a text file (i.e. using a tool like TOAD), then sql loader loads the data in the destination table. This is more fast.
    Hope this help,
    Vito

  • Dictionary table showing history of parameter changes ... fact or fiction?

    Guten Tag
    I understand there is a dictionary table/view/object that tracks changes to database parameter values but I can't seem to be able to find it.
    A co-worked mentioned that information is available in OEM so I figured there must be a table somewhere that is storing it.
    Any thoughts or documentation references are most welcome.
    Thanks very much!
    -gary

    >
    I assume the SNAP_ID in that table must be a reference to an AWR snap of database information?
    >
    Why assume? Not the definitive source but see this blog about the dba_hist tables
    http://it.toolbox.com/blogs/living-happy-oracle/oracle-the-dba_hist-tables-30168
    >
    The information in most of the DBA_HIST tables corresponds to the AWR snapshots (the SNAP_ID column tells us to which snapshot the information is relevant to) so they are populated with new information when a snapshot is taken and old information is purged along with the AWR snapshot according to the AWR retention settings.
    >
    The last bullet point in the article may answer your initial question. This is just the start - there is also a query you can use
    >
    ■Did you ever wonder if someone had changed a system parameter and did not inform you? No more, the DBA_HIST_PARAMETER keeps system parameter information for all snapshots and helps the DBA track any parameter.

  • How to create dictionary table using web dynpro?

    Dear Experts,
    Please clarify my doubts.Im new in this EP development.
    Im using EP6 portal with NWDS6 for dev.
    My Doubts are :
    Im trying to develop a web dynpro application which captures some data and insert/update in Table.
    => If we create a structure Dictionary in web dynpro application will that automatically create the table in Portal database?
    => If it is automatically created how to insert or update that table.
    can any one plz help.
    thanks and regards,
    Viswes.

    Hi Visweswara
    This will use the concept of EJB.
    Refer these for creating Dictionary tables...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    As far as answer to your second question is concerned,
    => If u create a structure Dictionary in web dynpro application  it will not create the table in Portal database..
    You can access that table via creating a web dynpro iview in Portal..
    Only application can accessed after deployment via iviews in Portal..
    Thanks...
    Rewards Appreciated...

  • How to download Dictionary Tables to Local system(pc) [including Structure]

    Hi everyone,
    I am in need of a program that downloads a given table and stores that in the local system. I already got some programs to download report programs but didnt get one to download a table.
    Please let me know if there is any SAP Standard Program for that or anyone's own coding.
    Thanks in advance....
    Regards...
    Karthik D

    Hi vasanth,
    I mean to say, iam now working in IDES server and my company is moving to a new server. So is there any posibility to store my dictionary tables(Z* tables) in some Local filesystem format(Something like Access or Excel)?.
    I need a Report program which gets the table name as the input and stores it in some location in the local system. The table definition is enough but its better if it stores the records too.
    Think i clearly explained my question...
    Hope to get a good solution..
    Regards...

  • SSIS Loading SSIS Dictionary Tables

    I am trying to load the dictionary tables. The package executes but they do not load in the table.  Please review my package below for any corrections I can make. Thanks

    The lookup construction with the OLE DB Command is a bit slow when you have a lot of updates.
    2 considerations:
    1) instead of using a Data Flow Task for this you could use the much faster
    TSQL Merge statement in an Execute SQL Task.
    2) if you want to stick with the Data Flow Task you could replace the update statement with an OLE DB Destination and store all updates in a temporary table. After the Data Flow Task you can do a single mass update with an Execute SQL Task. Then you only
    have one update statement instead of a lot of single updates
    and check out the naming conventions on the bottum of this page:
    http://sqlblog.com/blogs/jamie_thomson/archive/2012/01/29/suggested-best-practises-and-naming-conventions.aspx
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • How to find out the aligning Data dictionary table for a structure.

    Hi
    As the table controls are associated with strucures, the data input goes to the data dictionary table aligned to that structure. Is there any way we can find out the table related to that particular structure ?
    Thanks,
    Dhareppa

    Hi,
    The structure and its fields may be associated with multiple database tables.
    You can try by where-used list of the structure/field and then you can look and determine the table by hit and try method.
    Also as suggested above you can try get the SQL trace and then ypu can look for table associated behind the structure/fields I believe this is the best way to find the DB table.
    Thanks,
    Ravi

  • Help required in creation of Dictionary table dynamically

    Hello All,
    I have created DDIC table created dynamically.
    But what i require is! the dictionary table which i have created should be under the package name as given by the customer.
    I have seen in FM DDIF_TABL_PUT  the parameter dd02v-APPLCLASS is the write parameter to create the table under the required package. This field is of length char 4 only.
    Normally the package name will be greater than char4 and also it happend in my case that the package name is more than char4.
    Now i am unable to create the table dynamically under the specified pacakage of the customer
    How can i solve this problem?
    Can any one help me in this issue?
    Regards,
    Gupta

    Hi Lakshman,
    Thank you for your reply,
    I have used the FM which you have mentioned but i didn't work. I mean when i see the attributes of the table, package is still empty.
    Can you help me to solve the problem.
      CALL FUNCTION 'TR_TADIR_INTERFACE'
        EXPORTING
    *     WI_DELETE_TADIR_ENTRY                = ' '
    *     WI_REMOVE_REPAIR_FLAG                = ' '
    *     WI_SET_REPAIR_FLAG                   = ' '
    *     WI_TEST_MODUS                        = 'X'
          wi_tadir_pgmid                       = 'R3TR'
          wi_tadir_object                      = 'TABL'
          wi_tadir_obj_name                    = lv_objname
    *     WI_TADIR_KORRNUM                     = ' '
    *     WI_TADIR_SRCSYSTEM                   = ' '
    *     WI_TADIR_AUTHOR                      = ' '
         wi_tadir_devclass                    = 'ZV/HF/PLANNING'
    *     WI_TADIR_MASTERLANG                  = ' '
    *     WI_TADIR_CPROJECT                    = ' '
    *     WI_TADIR_VERSID                      = ' '
    *     WI_REMOVE_GENFLAG                    = ' '
    *     WI_SET_GENFLAG                       = ' '
    *     WI_READ_ONLY                         = ' '
    *     IV_SET_EDTFLAG                       = ' '
    *   IMPORTING
    *     NEW_GTADIR_ENTRY                     =
    *     NEW_TADIR_ENTRY                      =
       EXCEPTIONS
         tadir_entry_not_existing             = 1
         tadir_entry_ill_type                 = 2
         no_systemname                        = 3
         no_systemtype                        = 4
         original_system_conflict             = 5
         object_reserved_for_devclass         = 6
         object_exists_global                 = 7
         object_exists_local                  = 8
         object_is_distributed                = 9
         obj_specification_not_unique         = 10
         no_authorization_to_delete           = 11
         devclass_not_existing                = 12
         simultanious_set_remove_repair       = 13
         order_missing                        = 14
         no_modification_of_head_syst         = 15
         pgmid_object_not_allowed             = 16
         masterlanguage_not_specified         = 17
         devclass_not_specified               = 18
         specify_owner_unique                 = 19
         loc_priv_objs_no_repair              = 20
         gtadir_not_reached                   = 21
         object_locked_for_order              = 22
         change_of_class_not_allowed          = 23
         no_change_from_sap_to_tmp            = 24
         OTHERS                               = 25
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Regards,
    Lisa
    Edited by: Lisa Roy on Apr 9, 2008 11:37 AM

  • How to store variable length of data in data dictionary table

    hi friends
        i want to store variable length of text in one of field of table which is created in data dictionary.
        i tried it by declaring table field type as string,
    include that table using table statement and try to insert data in abap program . but it gives error something
    "cannot use table having deep structure " i don't remember it exactly.
          can you help me how to insert variable length of data in text data dictionary table.

    Hi,
        define field with type LRAW in your table to store
        string more than 255 characters.
          LRAW                                                                               
    Uninterpreted byte string of arbitrary length, but with a minimum                   
          length of 256. Fields of this type must be located at the end of                    
          tables and must be preceded by a length field of type INT2. LRAW                    
          fields cannot be used in the WHERE condition. LRAW is functional from               
          Release 3.0.                                                                        
    Regards
    amole

  • Icons in data dictionary table

    how do i get icons in a data dictionary table.
    i make this:
      DATA: BEGIN OF ls_structure,
            list TYPE TABLE OF dictionarytable,
            END OF ls_structure.
      DATA: wa_list LIKE LINE OF ls_structure-list.
      LOOP AT ls_structure-list INTO wa_list.
        wa_list-zdate = wa_list-datatime(8).
        wa_list-ztime = wa_list-datatime+8.
        wa_list-zlights = '@5C@'.
        INSERT dictionarytable FROM wa_list.
      ENDLOOP.
    my dictionary table has a field with zlight which is type icon_d.
    but when i look in the table the column is empty..........

    Hi,
    I wrote a sample code for your reference:
    include <icon>.
    tables zicon.
    zicon-id = '111111'.
    zicon-icon = icon_checked  .
    insert into zicon values zicon.
    for icon, I also used the type icon_d.
    Hope it helps.
    Regards,
    Chris Gu
    Edited by: Gu Chris on Nov 20, 2008 3:33 AM

  • Collection of stats prior to 10g upgrade for dictionary tables

    Collection of stats prior to 10g upgrade for dictionary tables is required? I thought if you are upgrading from 9i to 10g the stats in 9i become stale in 10g.
    I read a document that says you need to collect stats prior to upgrade and import them once your upgrade is done. Can someone guide me?

    I don't know where did you get these? There's some optimizer improvement and new feature in 10g. Collecting stats before upgrade and import later is unheard of.
    I suggest you check this article
    Choosing An Optimal Stats Gathering Strategy
    http://structureddata.org/2008/03/26/choosing-an-optimal-stats-gathering-strategy/
    and the white paper mentioned,
    White Paper entitled Upgrading from Oracle Database 9i to 10g: What to expect from the Optimizer.

  • ALV fields which are not referenced to data dictionary table fields

    Hello,
    I am using function module reuse_alv_popup_to_select.
    How do I display fields in ALV which are not referenced to
    data dictionary table fields.
    I am showing 4 columns in alv out of which first column is checkbox
    and remaining 3 columns are from data dictionary and it works fine.
    Now I need to add one more column which is of type checkbox.
    I have added this field in my ITAB as flag(1) type C.
    When I add this flag field in the field catalog, I get exception.
    Regards,
    Vishal.

    Hey guys,
    Finally I got rid of such a stupid problem.
    There were no problem in the code.
    while assigning fieldname to field catalog I had given fieldname
    in lowercase.
    I changed it to uppercase and problem got solved.
    Thanks,
    Vishal.

  • Accessing dictionary tables from dynpro?

    Hi all
    As far as i know, there are 4 approches to access dictionary tables from webdynpro.
    -entity bean
    -sqlj
    -jdbc
    what are the advantages and disadvantages for all above?
    and which one to go for?

    Hi swathi
    See the persistence API--Adv and Disadvantages what ever you mentioned come under the persistence API
    Relational Persistence
    =================
    SQL-based coding: expressive!
    SQLJ: for static SQL, checked at design time,
    recommended
    JDBC: for dynamic SQL, can be combined with SQLJ
    =======================
    Object-relational Persistence
    ======================
    SQL-free! Portable!
    JDO: light-weight object persistence, Java-like dynamic
    query language
    EJB CMP: part of J2EE standard, relatively heavy-weight,SQL-like static query language
    Regards,
    Venkata Kalyan Karanam

  • System Variable For Internal table count

    Can anybody tell me what the system variable for internal table count?
    I just wants to know how many recoreds are there in my internal table ?
    Regards,
    pandu.

    Hi ,
    DESCRIBE TABLE <itab> [LINES <l>] [OCCURS <n>] [KIND <k>].
    If you use the LINES parameter, the number of filled lines is written to the variable <lin>. If parameter, the you use the OCCURS value of the INITIAL SIZE of the table is returned to the variable <n>. If you use the KIND parameter, the table type is returned to the variable <k>: ‘T’ for standard table, ‘S’ for sorted table, and ‘H’ for hashed table.
    using variable
    SY-TFILL
    After the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, SY-TFILL contains the number of lines in the relevant internal table.
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3798358411d1829f0000e829fbfe/content.htm
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 21, 2008 4:53 PM

  • Issue with data dictionary -Table maintanance generator

    Hi all,
    I have an issue with Data dictionary, table maintenance generator. I have entered some records in a custom table (ZBCSECROLETOGRP) and changed the delivery class from C to A. When I create the table maintainance generator, I am encountered with the following errors:
    1)Field ZBCSECROLETOGRP-PORTALGROUP shortened (new visible length: 000032)
    2)0012 could not be generated
    3)In TCTRL_ZBCSECROLETOGRP field LENGTH has the invalid value 01
    My main motto is to create the table maintainace generator and transport to the furthur systems .
    Please help.
    ThnX in advance,
    Vishal..

    HI,
    Regenerate the table maintenance by selecting the checkbox of "Modified field structure" => new entry & then save.
    Also ensure that the new changes are not affecting old data bcz of data type changes. If that is the case, then delete the old records, regenerate table maint. & re-enter those records which you had deleted.
    Thanks,
    Best regards,
    Prashant

Maybe you are looking for

  • Can we add button in query region  along with go and clear

    Hi Friends, i have a requirement as below steps- 1)i have developed search pgae by using query regiion 2) in pgae,first we have search items,go and clear(submit buttons), table region. 3)here go and clear buttons came automatically. 4) i can able to

  • Using J2EE 1.4 Beta 2 on Windows 98 and Windows Me

    I know J2EE isn't supported on Windows 98 and Windows Me, but like many others I've been able to get J2EE 1.3.1 and J2EE 1.4 Beta to work quite well on Windows 98 and Windows Me. However, no such luck when I tried to do the same with J2EE 1.4 Beta 2.

  • Copy and paste (gif/jpg file)

    I need to copy a gif/jpg file from one folder and paste it into another folder. The java.io package does not provide any method to do this. How do I achieve this? Does Java 1.4 provide anything? Is there any sample code available anywhere?

  • Ability to add metadata or label folders

    Maybe I'm missing something, but I can't understand why folders (Mac OS) can't be tagged with metadata. If I have 20 folders - some of which are client A and some are Client B - I'd like to be able to keyword those folders. At the least I should be a

  • Total of Time Stamps before or after a particular time

    Hi, I am trying to get a running total of time stamps that are either before or after a particular time. For instance, how many times did employee A punch in after 8:00. Or, how many times did employee A punch out before 5:00 Thanks, Mike