Table field sizes

Hi,
Our application has been developed for single user mode only. Now it is being changed to work in multi user mode with oracle9.2.0.1.0.
Some of the fileds in the GUI are text fields and text areas where the client can enter any amount of data.
How shuold I declare the sizes of those fields in my table creation scripts.
I am novice to this.
Thanks in advance.
Regards
Jagannadham

hi there
what is the gui used and hope there will some limit on the text size whatever he enters how you used to store it in a single user env? file is it ?
if the text is within 4000 then you can go for varchar2

Similar Messages

  • Changing LOV's  table-field size

    Hi,
    I'm using Jdeveloper 11g.
    Knowing that the tag below is used in LOV, Now I need to know how to change the LOV's table-field sizes? (I'm using the model-based LOV, and it's reading the attributes from the view object)
    <af:inputListOfValues
    model="#{bindings. .listOfValuesModel}"/>
    I need to customize the size of LOV's table-field manually, or based on the attribute's UI hint.
    To do so, I have written the code below in the backing-bean:
    RichInputListOfValues lov = (RichInputListOfValues)launchPopupEvent.getComponent();
    FacesCtrlLOVBinding.ListOfValuesModelImpl lovModel = null;
    lovModel = (FacesCtrlLOVBinding.ListOfValuesModelImpl) lov.getModel();
    TableModel tm = lovModel.getTableModel();
    java.util.List<oracle.adf.view.rich.model.ColumnDescriptor> l = lovModel.getItemDescriptors();
    But the "ColumnDescriptor" is an abstract class, and I cannot customize the size of the table.
    I need to know if it's possible to do it or not?
    Thanks in advance,
    Shadi Khani
    Thank you in advance,
    Shadi Khani
    Edited by: ShadiKhani on Aug 10, 2010 6:07 AM

    Hi ,
    i Know my answer is too late , just today i see the post .
    You can change content Size for LOV by going to look up view object --> then to attribute ---> UI hint ---> form UI hint but the size of component in "Dispaly width"

  • Change Field Size of CodeItem In OITM Table

    All,
    Could I Change Field Size of CodeItem in OITM table (Default is 20 Characters)  to 30 Characters?
    Thanks

    Hi,
    You can request changes in Business One through the Product Collaboration Forum here on the SDN, or by contacting your local SAP field office for more assistance.
    SAP note 1028874 has more information about this.
    Regards,
    Niall

  • How to increase field size in Internal table

    Hi friends,
    I want to concatenate around 20 fields in one internal table field,
    i declared the destination filed as character, now i am able to get around 12 to 13 fileds only , how to increase the length of this field to include all fields ?
    or how can i do this ? can any body help me ?
    I concatenate this to create a file  which will be send as email attachment.
    its very urgent issue, kindly help me to resolve as early as possible.
    Thanks in advance.
    Joseph

    Hi,
    Use the string data type..
    Example
    DATA: IT_STRING TYPE STRING OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF WA,
                 MATNR(18),
                 WERKS(4),
                 VBELN(10),
               END OF WA.
    CONCATENATE WA-MATNR WA-WERKS WA-VBELN INTO IT_STRING.
    APPEND IT_STRING.
    Thanks,
    Naren

  • An internal table field has been defined too small

    Hi,
    We are getting a dump when trying to get the Financial Statements.
    The error in the dump is u201CAn internal table field has been defined too smallu201D.
    The field with the problem is u201CYou should define the field "HSL03" larger in program "SAPLFAGL_GLT0".The maximum size allowed for fields of type P is 16 (31 digits).
    Itu2019s caused by a list of documents where the exchange rate must to be u201D/699,94001u201D  but it was entered without the forward slash and it caused very big numbers
    The biggest number in one document is 99,401,074,527.31  USD
    The sum of all them is 13,008,701,915,208.50
    Any ideas to fix this?
    Thanks in advance
    Jorge

    have you reversed those documents with fb08  and post it with the correct exchange rate???
    have you searched in SMP for similar problems - I think you've to correct the DB-values- but only in agreement with your audit firm / revision
    A.
    Edited by: Andreas Mann on Apr 6, 2010 3:13 PM
    Edited by: Andreas Mann on Apr 6, 2010 3:16 PM

  • How to change field size using SQL against an oracle Database

    I am an admitted novice user, looking to become more proficient.
    I have a field in a table that I need to expand the field size. The table is called Inquiries. The data type is text. The current Field Size is 10. I want to increase it, to either the max, or somethign long enough to fit TECHNOLOGY LEADERSHIP PROGRAM.
    What is the SQL command to change the field size, and what is the max for a Text Field Size

    And/Or, an even better question might be,
    Do I need to use SQL*PLUS to do this, or are there better tools. I.e, I like how in Access, you can open up a database in Design view and just change the amount for the field size. Is there a similar "easy" method to do something like that with an Oracle database.
    My current version of the server/database is:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    I was thinking I had to do SQL commands to perform the action, but there may be another way that I am not thinking about with all of the tools at my disposal. When I installed Oracle on my desktop, I installed most of the management tools and networking services, if that helps

  • Is it possible to change dynamicaly VC table view size (width/heigth)?

    Hi gurus!
    So the question is: Is it possible to change dynamicaly Visual Composer table view size?
    Particularly I'm interested in changing table-view height; the objective is not to use table-view paging option, instead to show all returned data rows at once.
    Thanks in advance!
    --- Kaspars

    Hi Kaspars,
    I would say there is atm no possibility to change the table view size dynamicly, because you can't input a formula into the size field so the size is fixed as you enter it.
    Best Regards,
    Marcel

  • How to get table fields programatically?

    I am using a table component with associated data provider. In the same form, I need to have a drop down with the values same as the columns/fields of the table. I am looking at the APIs to find a way to access the table fields/columns, so that I can have them in the drop down, but I can't find out.
    Please note that I need to access the field names (i.e First_Name, Last_Name, User_Name, etc.) not the field values (i.e Joe, Bloe, jbloe, etc.) If it was field values, there are tons of example out there. Actually, I am trying to build searhing, where users can pick a field from the drop down, and type text to search on that field. See the screenshots here:
    http://bedriven.blogspot.com/2006/08/filtering-data-table-in-java-studio.html

    I tried this:
    tableRowGroup.getSourceData().getFieldKeys()but, the problem is, it gives me the field names, but not the display values. I want to use the display values (i.e Last Name) for dropdown text, and field keys (i.e user_last_name) for dropdown values.
    I ended up using this code to get the list of column fileds (field name in database) and the column header (display value in table header):
            Iterator it=getTableRowGroup1().getTableColumnChildren();
            Option options[]=new Option[getTableRowGroup1().getColumnCount()];
            int i=0;
            while (it.hasNext()){
                TableColumn column=(TableColumn)it.next();
                if (column.getSort()!=null){
                    options=new Option(column.getSort().toString(), column.getHeaderText());
    }else{
    options[i]=new Option(column.getHeaderText(), column.getHeaderText());
    i++;
    This approach works fine. The only problem is that getTableColumnChildren returns size 0 when the page is loaded the first time. It works fine on the subsequent post backs. You can see this reported by other users as well:
    http://swforum.sun.com/jive/thread.jspa?threadID=101630&tstart=0

  • Regarding spliting of the data in the internal table fields

    TYPES :BEGIN OF X_flat_file,
           banks LIKE lfbk-banks,
           bankl LIKE lfbk-bankl,
           bankn LIKE lfbk-bankn,
           koinh LIKE lfbk-koinh,
           bkont LIKE lfbk-bkont,
           END OF X_flat_file.
    DATA: t_itab TYPE STANDARD TABLE OF X_flat_file INITIAL SIZE 0,
          wa_itab TYPE X_flat_file,
    Now data in internal table is as follows:
    t_itab-banks is AD,DE, AB
    t_itab-bankl is 123456578,123456588,123456579
    t_itab-bankn is 12345666,12345677,12345688
    t_itab-koinh is vinod1,vinod2,vinod3
    t_itab-bkont is 01,01,01
    TYPES :BEGIN OF X_banks1,
           banks LIKE lfbk-banks,
           bankl LIKE lfbk-bankl,
           bankn LIKE lfbk-bankn,
           koinh LIKE lfbk-koinh,
           bkont LIKE lfbk-bkont,
           END OF X_banks1.
    DATA: T_BANKS1 TYPE STANDARD TABLE OF X_BANKS1 INITIAL SIZE 0,
          WA_BANKS1 TYPE X_BANKS1,
    Now i want internal table t_itab data should split at commas and transfered to internal table t_banks1.
    ex : t_itab-banks is AD,DE, AB should transfered to
    t_banks:   AD  ( 1 record)
                   DE  (2 record)
                   AB ( 3 record).
    I used following coding ......
       SPLIT wa_itab-BANKS AT ',' INTO  T_BANKS1-BANKS.
         SPLIT wa_itab-BANKL AT ',' INTO TABLE T_BANKS1-BANKL.
         SPLIT wa_itab-BANKN AT ',' INTO TABLE T_BANKS1-BANKN.
         SPLIT wa_itab-KOINH AT ',' INTO TABLE T_banks1-KOINH.
         SPLIT wa_itab-BKONT AT ',' INTO TABLE T_BANKS1-BKONT.
         SPLIT wa_itab-BANKA AT ',' INTO TABLE T_BANKA1-BANKA.
    But its not working.

    Dear Sarvesh,
    I have closed all the previous threads and only this one is open.
    My coding is like this.
    DATA:X(2),N(2) TYPE N.
    N = 0.
    LOOP AT T_BANKS INTO WA_BANKS.
    N = N + 1.
    ENDLOOP.
    X = 1.
    perform bdc_dynpro using 'SAPMF02K' '0130' 'X'.
    CNT = 1.
    DO N TIMES.
    IF CNT > 5.
    perform bdc_field using 'BDC_OKCODE' '=P+'. "*LOGIC FOR EXTENDING TABLE CONTROL
    perform bdc_field using 'BDC_OKCODE' '/00'.
    perform bdc_field using 'BDC_CURSOR' 'BANKNAM(01)'.
    CNT = 1.
    ENDIF.
    LOOP AT T_BANKS INTO WA_BANKS FROM X TO X.
    CONCATENATE 'LFBK-BANKS(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKS-BANKS.
    ENDLOOP.
    LOOP AT T_BANKL INTO WA_BANKL FROM X TO X.
    CONCATENATE 'LFBK-BANKL(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKL-BANKL.
    ENDLOOP.
    LOOP AT T_BANKN INTO WA_BANKN FROM X TO X.
    CONCATENATE 'LFBK-BANKN(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKN-BANKN.
    ENDLOOP.
    LOOP AT T_KOINH INTO WA_KOINH FROM X TO X.
    CONCATENATE 'LFBK-KOINH(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_KOINH-KOINH.
    ENDLOOP.
    LOOP AT T_BKONT INTO WA_BKONT FROM X TO X.
    CONCATENATE 'LFBK-BKONT(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BKONT-BKONT.
    ENDLOOP.
    perform bdc_field using 'BDC_CURSOR' 'LFBK-bkont'.
    perform bdc_field using 'BDC_OKCODE' '=BANK'.
    perform bdc_dynpro using 'SAPLBANK' '0100' 'X'.
    LOOP AT T_BANKA INTO WA_BANKA FROM X TO X.
    CONCATENATE 'BNKA-BANKA(' CNT ')' INTO FLD.
    perform bdc_field using FLD wa_BANKA-BANKA.
    ENDLOOP.
    perform bdc_field using 'BDC_CURSOR' 'BNKA-BANKA'.
    perform bdc_field using 'BDC_OKCODE' '=ENTR'.
    CNT = CNT + 1.
    X = X + 1.
    ENDDO.
    My problem is that first table control data is getting loaded in the table fields BANKS, BANKL, BANKN, KOINH, BKONT . But next screen ('SAPLBANK' '0100' 'X'.) is not getting called and BANKA data is not getting filled..
    Pls help.
    As per the recording, first BANKS, BANKL, BANKN, KOINH, BKONT table control data should be filled and next screen should be called and then BANKA  data should be filled and again cursor should come back to screen ('SAPMF02K' '0130' 'X'.).
    similarly second table control data.

  • Generic Extraction By Using function Module with Three Table fields?

    Hi,
    I need to bring the data from three tables by using function module.
    Tables: VBAK, VBAP, VBUK.
    Fields are: VBELN, ERDAT, NETWR, WEARK, POSNR, MATNR, FKART, FKTYP.
    i referred some of the documents in SDN, it explained by using two table fields.
    Please help me.

    hi, the below pseudo code should help you on creating the logic. It's based on the how to paper. So i just used the parts of intrest. You need to copy the rest form the document. Please notice that this is pseudo code. if you just copy/paste, it will not work.
    IF s_counter_datapakid = 0.
    OPEN CURSOR WITH HOLD s_cursor FOR
           SELECT fields       FROM table1         WHERE condition
          ENDIF.                             "First data package ?
    * Fetch records into interface table.
    *   named E_T_'Name of extract structure'.
          FETCH NEXT CURSOR s_cursor
                    INTO  TABLE e_t_data
                    PACKAGE SIZE s_s_if-maxsize.
         IF sy-subrc EQ 0.
           SELECT fields      FROM table2      WHERE condition into itab2 for all entries in e_t_data
           SELECT fields      FROM table3       WHERE condition into itab3 for all entries in e_t_data    
         loop at e_t_data
              read itab2. move corresponding fields to e_t_data
              read itab3. move corresponding fields to e_t_data
              collect e_t_data.
         endif.
    IF sy-subrc <> 0.
           CLOSE CURSOR s_cursor.
           RAISE no_more_data.
         ENDIF.
         s_counter_datapakid = s_counter_datapakid + 1.
       ENDIF.              "Initialization mode or data extraction ?

  • Account field Size

    Hello Forum,
    by default Account field size is only 30, what is not a lot at all.
    Is it possible to change this size? Sure one can do it in the database, won't it cause any difficulties later on?
    Regards,
    Gulnara

    If you alter the database, be sure to do it for every table... people do this all the time for content ID.
    This can cause problems if you try to migrate content from one system to another, and forget to alter the field sizes in the new system. But, with the replication exceptions component, this isn't nearly as painful as it used to be!

  • Write Back field size

    Hi,
    I created a table with a write back field. I have set up everything according to the guide, tested it and it all works. Data is written back to the database.
    When I select from the write back field the Column Properties -> Column Format -> Value interaction -> Field Size you can set the field length. My question is....is it also possible to set the height of the field?
    One of our customers wants to use this as a field to enter remarks and follow up actions. So I actually want a square field, so the text entered in it is more readable on the screen.
    Any suggestions?
    Thanks and Regards,
    Jeroen

    Hi Venkat,
    Thanks for your reply. It's been a while ago since i posted this question, but this write back feature is now actual for a customer. In the beginning it didn't seem that necessary, but now it is.
    I have tried to modify my writeback template, but i cannot manage to make it work. Or do I have to make another custom xml message? Do you maybe have a suggestion on which way to handle this?
    Thanks in advance!!
    Regards,
    Jeroen

  • Changeing the Database Field Size

    Dear All,
    In Incomeing Payment i want to increase Databse Field size of Journal Remarks upto 250 character.
    I updated from backend but in Incomeing Payment layout means when i move the courser on that field it
    shows 50 character.
    Means i chaged from bakend but it is not changing from system.
    Can anybody tell me how to solve this problem ?
    Swapnil

    Dear SWAPNIL PATIL,
    SAP does not allow to change the table structure and
    as a workaround you could add a User Defined Field in Payments > Title to save the remarks.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Unable to access the data and table fields from handheld

    Hi,
    I've created a Testing.sdf file on the local pc using SQL Server Management Studio, creating table, fields and insert some data. in local pc i can access the the data as normal. the problem is after i moved the file to handheld device i
    cannot access the data within the table, it shown error 'Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)' . I tried to google it, but still got no solution.
    Thanks,

    'Name Space
    Imports System.Data.SqlServerCe
    'String Connection
    'Data Source = D:\SKUDWN3 .sdf'
    Public Sub CreateDB(ByVal StrConn As String)
            'Declaration
            Dim cn As SqlCeConnection = Nothing
            Dim cm As SqlCeCommand = Nothing
            Dim SQLEngine As SqlCeEngine = Nothing
            Dim rs As SqlCeResultSet = Nothing
            Dim rec As SqlServerCe.SqlCeUpdatableRecord = Nothing
            'Tables -
            Const TB_SKUDWN3 As String = "SKUDWN3"
            'Fields TB_SKUDWN3
            Const FL_SKUDWN3_UPC As String = "UPC"
            Const FL_SKUDWN3_SKU As String = "SKU"
            Const FL_SKUDWN3_LD As String = "LD"
            Const FL_SKUDWN3_SD As String = "SD"
            Const FL_SKUDWN3_AN As String = "AN"
            Const FL_SKUDWN3_Price As String = "Price"
            Const FL_SKUDWN3_GST_FLAG As String = "GSTFLAG"
            'Create Database
            SQLEngine = New SqlCeEngine(StrConn)
            SQLEngine.CreateDatabase()
            SQLEngine.Dispose()
            'Open Connection
            If IsNothing(cn) Then cn = New SqlCeConnection(StrConn)
            If cn.State = Data.ConnectionState.Closed Then cn.Open()
            cm = cn.CreateCommand
            'Create Table, Fields
            cm.CommandText = "CREATE TABLE " & TB_SKUDWN3 & " (" & FL_SKUDWN3_UPC & " NVARCHAR (13)," & _
                " " & FL_SKUDWN3_SKU & " NVARCHAR (9), " & FL_SKUDWN3_LD & " NVARCHAR(30)," & _
                " " & FL_SKUDWN3_SD & " NVARCHAR (18), " & FL_SKUDWN3_AN & " NVARCHAR(15), " & _
                " " & FL_SKUDWN3_Price & " NVARCHAR (10), " & FL_SKUDWN3_GST_FLAG & " BIT)"
            cm.ExecuteNonQuery()
            'Close Connection
            cm = Nothing
            If Not IsNothing(cn) Then
                If cn.State = ConnectionState.Open Then cn.Close()
                cn.Close()
                cn.Dispose()
            End If
        End Sub
    'The DB was successfully created, but after moving to Handheld the fields of table can't be accessed

  • How do I write a select statement to see if table field is in variable list

    I was wondering if someone knew the best way to write a query to pull back rows where a table field is found in a a variable string.  I'm using Cold Fusion 10 on Microsoft SQL Server.
    The table has a series of fields such as
    carcode          carname
    G                Garage
    C                Carport
    A               Attached
    D               Detached
    And another query pulls back a field that stores as text all the abbreviations that apply
    I want to pull back all the carnames that would match the abbreviations stored in that field.  I thought I could use a contains line but that does not work.  How do I pull back matches against a variable string... I tried an IN statment but that didn't work.
    CFQUERY...
    Select carname from CarTable WHERE CONTAINS (carcode, '#query.carlist#') does not work. 
       select carname from CarTable WHERE CONTAINS(carcode, 'G,A')
    I'm stumped.  The list of abbreviations could be very LOOOONG or short and I just need to translate those abbreviations into the full names by grabbing it from another table.  It isn't just one abbreviation so I can't use LIKE in the one to one sense.
    Thank you so much.

    If you have records with these values,
    G,A
    0
    then your first mistake is that you designed your database poorly.  Storing lists in a single field is essentially stroring unuseable data.  A one to many relationship is better.  If you don't know what that is, I've heard good things about the book, Database Design for Mere Mortals.
    Next, this syntax, #queryname.car_storage#, only returns the first record.  To get all the records, use the valuelist function.
    Next, in sql, if you have a list of strings, each one has to be quoted.  Something like this.
    where myfield in ('a', 'b', 'c')
    The best way to achieve this in ColdFusion is to use the cfqueryparam tag with the list attribute set to yes.

Maybe you are looking for