Limitation on column characters for a field name in a view ?

Hi ,
Is there any limitation for a column name in a view ?
e.g create or replace view testing as
select to_char(to_date(must_have_field1 , 'dd/mm/yyyy') , 'dd-mon-yyyy')
gives me an error until i put an ailias
ques :
1. is it due to the column name too long or an alias is a MUST for a view ?
kindly advise
tks & rdgs

Yes, since you are using an expression, you need to give a valid identifier for the expression.

Similar Messages

  • Special Characters in a Field name

    I am having trouble with creating a SQL statement for a field name that has special characters. I get SQL errors when I run the code below:
                   ResultSet rec = st.executeQuery(
                        "SELECT * " +
                        "FROM F55EXL1 " +
                        "WHERE " +
                        "(SK$#TY = 'UPC' AND " +
                        "SK$#MS = '7107-42' AND " +
                        "SK$#F1 = 'J468-4' AND " +
                        "SK$#F2 = 'JX67-4')");
                   while (rec.next()) {
                        upcCode = (rec.getString(3));
                   }What can I do to make it accept these field names?

    Hi
    Can you try this..
    ResultSet rec = st.executeQuery(
                        "SELECT * " +
                        "FROM F55EXL1 " +
                        "WHERE " +
                        "SK$#TY = \'UPC\' AND " +
                        "SK$#MS = \'7107-42\' AND " +
                        "SK$#F1 = \'J468-4\' AND " +
                        "SK$#F2 = \'JX67-4\' ");
                   while (rec.next()) {
                        upcCode = rec.getString(3);
                   }Thanks
    Srinivas

  • How to programmatically retrieve the real field name from a view object ?

    Dear all,
    when I map a business component (a database table) to a view, the fields are automatically converted by JDeveloper, for example, a field named 'user_id' in the oracle table definition, becomes 'userid' in the view.
    The question: how can I retrieve the right table column name from within a backing bean ? Please explain also what should I bind and how; should I use an iterator ?
    Another more: since we can change the label of a field on a view, how can then I get the mapping between the column name on the view and the column name on the table in the database ?
    Thanks in advance,
    Sergio.

    Hi Timo,
    many thanks for your answer.
    The rest of my question: you know we can drop a view from the DataControls onto a ADF page, with each field of the table having a label.
    That label is initially set like the internal table field name, so for instance, if user_id is the real table field name, userid will be the (by JDeveloper) internal renamed table field name, and the label would be userid too.
    If I then change the label text to, for example, "myUserid", the question is: how can I know which real table field does "myUserid" point to ?
    In other words, when my form is submitted, I want to know which field name has been changed and prepare an update sql in a bean.
    For this purpose I bind each view field to a validator function in the bean, and collect al the pairs "label_name + submitted value" in an hash table.
    Now inorder to build up that update query, I need the mapping between the label_name ("myUserid") and the real table field name ("user_id"). The question: how to map the label to the real table field name ?
    By the way, I'm using JDeveloper 11g rel. 2.
    Regards,
    Sergio.

  • APEX 4.0 Report Query column limitation, 43 column maximum for the result!

    Hi there,
    I'm trying to generate report from Apex 4.0.1, but I got stucked with column limitation when I'm executing the report query.
    Case:
    Environment: oracle 11g, apex 4.0.1, oracle BI 11, windows xp
    Table: My test table is quite simple, by creating a sample table with 44 columns, the column name is random, i.e. column1..column44, column data type is varchar2 (20)
    report query:my report query is also simple, by "select * from testtable"
    Data: no data in my sample table
    Error: then I'll get the error: "HelpORA-06502: PL/SQL: numeric or value error: character string buffer too small"
    solution: If I shrink the table column from 44 to 43, then the report can be generated to xls, pdf, etc.
    Question: Is there any column limitation for Apex report query? I know there's a 32k row size limitation for varchar, but since there's no single data in my table, it shouldn't be the case.
    Does anybody get this issue before? Thanks for any generous input!! :)
    Horatio

    hi marko,
    Thanks for the reply, but i can't find the 45 column limitation from report query and report printing. any clue for this call?
    Regards
    Horatio

  • Af:column (tr:column) sortProperty for multiple field sort

    I'm using JDeveloper 10.1.3.5, but this ought to apply to Trinidad in 11g as well. In ADF Faces 10g there is a sortProperty attribute of af:column (or in Trinidad, tr:column) that takes the name of the field to use to re-sort the table, if the user clicks the column header. But I have a column that contains an entire address: Street Address, City, State, and Zip-Code as separate af:outputText components. Is there a way to tell it to sort the address on State, then City, then Zip-Code? The best I can do now is to set sortProperty to "zipCode", but that isn't really right.

    Hi,
    Yes and no, sadly. We reimplemented the table component partly for that on our project. Anyway, the workaround is to create a transient attribute on your row instance that returns a Comparable containing, or able to refer to, all three values (state, city, zip) and set the sortProperty on that dummy property (it does not have to be the same as the one actually shown in the page).
    Regards,
    ~ Simon

  • Limitation of 60 characters for namespace?

    Hi,
    I try to upload an external message definition (XSD) with a message belonging to a namespace with a name longer than 60 characters. Doing this, the Message does not appear on the "Messages" tab. If I manually edit the namespace and shorten it to under 60 characters it seems to work. This leads to the questions:
    Is there a hard limit for name space names of 60 characters?
    Is there a workaround available other than edit the original XSD (not an option since the XSD is controlled by another party...)
    Kind regards Johan

    Hi Johan,
    This will help you
    http://help.sap.com/saphelp_nw04/helpdata/en/bd/ddbe08ac5c11d2850e0000e8a57770/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/53/ec2c37b995184890c6d8ba5b668a86/frameset.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/bd/ddbe08ac5c11d2850e0000e8a57770/content.htm
    Thanks & Regards
    Agasthuri Doss

  • SAP Query column sequence for Totalling fields

    Hi all
    We have a custom query in 4.6C in which the output displays only the total of Totaling fields maintained in the sequence Amount > Withholding Tax > Net Amount  (all currency related fields).
    However after upgrade to ECC 6.0, we notice that we are no longer able to sequence the output list to Amount > Withholding Tax > Net Amount
    Though we maintain the Totaling fields in the sequence Amount > Withholding Tax > Net Amount , the list is generated in the sequence Amount > Net Amount > Withholding Tax  and the sequence is changed accordingly in the Basic List after a test display of the Output.
    Is anyone aware if the sequencing control is removed in ECC based for the Totaling Fields?
    Kindly help share.
    Thanks in Advance
    Vinodh S

    Hi Faheem,
    After changing the column sequence i clicked configuration button and click save button and again clicked Configuration and selected Administrative button there i can see the column sequence change and clicked activate button .now if i close and reopen the transaction my column sequence is same with out changes that i made .
    you asked me to save the changes where i can do exactly ? Could you please tell in briefway from scratch so that i can trace where i done mistake.
    Thanking you in advance.
    Regards,
    narasimha.

  • Re: search help for distribution field name

    hi to all,
    i had written like this
    select-options: s_manif for sood-objnam no intervals.i want a search help for this so that i want to select a distibution list names.
    how i can go head.
    please help me in this regard
    thanks
    sun
    Message was edited by: sun deep

    Hi,
    Get the distribution list names(OBJNAM) from table SOOD with OBJTP = 'DLI' and then call your own F4 help based on selected values.
    code :
    select-options: s_OBJNAM for sood-OBJNAM no intervals.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_OBJNAM-low.
    DATA: BEGIN OF li_OBJNAM OCCURS 0,
             OBJNAM like sood-OBJNAM,
            END OF li_OBJNAM.
      DATA: li_ret_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.
      DATA: lt_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE.
    select objnam from sood
           into table li_OBJNAM
                  where objtp = 'DLI'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'OBJNAM'
          dynpnr          = sy-dynnr
          dynpprog        = sy-repid
          dynprofield     = text-044
          value_org       = 'S'
        TABLES
          value_tab       = li_OBJNAM
          return_tab      = li_ret_tab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      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
    Appana

  • Error while creating a hyperlink for a field in a table view

    Hi all,
    I have created a table view to display the lead information.Now i wanted to make the lead number to be made as a hyperlink.I have tried the delow code
    <htmlb:tableView id = "tvX"
    headerText = "Leads Details"
    headerVisible = "true"
    design = "alternating"
    visibleRowCount = "5"
    visibleFirstRow = "<%= firstvisiblerow %>"
    fillUpEmptyRows = "true"
    onHeaderClick = "MyEventHeaderClick"
    onRowSelection = "select"
    selectionMode = "singleselect"
    table = "<%= activities %>"
    iterator = "<%= z_it %>"
    sort = "SERVER" >
    <htmlb:tableViewColumns>
    <htmlb:tableViewColumn
    columnName = "object_id"
    type = "link" >
    </htmlb:tableViewColumn>
    </htmlb:tableViewColumns>
    </htmlb:tableView>
    But am getting the following error whlle am activating the code
    Internal error occured during runtime generation
    of Class CL_O2D59X6KFES8AMMPAFQ6AV1R3WF (Dump ID:
    DBIF_REPO_SQL_ERROR).
    When i remove the code for <htmlb:tableViewColumns> this error does not exist
    Can canyone help me in solving this?
    Thanks

    Hi,
    in iterator method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
    you need to call method  cl_hrrcf_iterator=>get_bee_link to define the link for a specific filed.
    for example check the below code.
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
      CASE p_column_key.
        WHEN 'PERNR'.
        CALL METHOD cl_hrrcf_iterator=>get_bee_link
            EXPORTING
              p_cell_id       = p_cell_id
              p_onclientclick =link_url
              p_column_key    = p_column_key
              p_row_data_ref  = p_row_data_ref
              p_tooltip_alias = l_alias
            IMPORTING
              po_bee          = p_replacement_bee.
        ENDCASE.
    endmethod.
    vijay

  • Maximum number of characters for Host name..

    Is there a limit to the number of characters for the host name of adobe lifecycle?
    Is 15 characters to much?

    What makes you believe that 32 characters is remotely necessary?  As Ralph indicates, a shorter password is equally secure, in realistic terms.  Keep in mind that even if some hacker set up a script to repeatedly try random passwords on your account, they're never going to get in because there are limits on the number of times one can enter an incorrect password before being blocked on any decent system.  You can have a much shorter password, and as long as a human can't guess it from what is publicly known about you, it's secure.

  • Which table stored  description for field name

    hi,
    for example,
    field name is  LIFNR , description (vendor number),
    which table stored this description (vendor number)  for that field name(LIFNR) ?

    1. From table DD03L, give your tablename and get all of its field names and corresponding data element names. 
    2. From table DD03T, get the description of each data element you have got in step 1. 
    3. Then Use Function Module DDIF_FIELDINFO_GET 
    DD02L : ALL SAP TABLE NAMES
    DD02T : DESCRIPTION OF TABLE NAMES
    DD03L : FIELDS IN A TABLE.
    Check the below link for more information.
    http://www.sap-img.com/abap/how-to-get-the-field-descriptions-of-a-table.htm
    Thanks,
    Balaji

  • Standards for creating fields & table names

    Hi All,
    I need to know if there are any SAP standards or standards from clients to be followed in creating new fields, tables & description.
    If there are any such data, please share with me.
    Urgent.
    Regards,
    Pramod

    Hi Pramod,
    mostly we're using a common Term for the field name. The field code is the field name in uppercase using MDM_ as prefix. As you have to replace blanks (a field code does not allow blanks) we use an _ instead. Note: if you want to distinguish between SAP created and custom fields, we recommend using a different prefix! Maybe you can start your Custom field codes with ZMDM or a prefix describing your customer? Currently we cannot enforce this in MDM as the MDM_ prefix is not yet protected. But if you follow our recommendation, it'll ease up your life and of course ours, too, as we can differentiate between SAP and customer fields in OSS messages.
    Edit: regarding descriptions
    If your field is somehow linked with a ERP field, you could reuse the description of ERP for example!
    Cheers
    Michael
    Edited by: Michael Theis on Jul 25, 2008 10:57 AM

  • "Find and Replace" for field names in a fillable PDF

    Is it possible to do a "Find and Replace" for the field names in a fillable PDF? For example, I have multiple fields that contain the word "Proposed Insured" as part of the field name and would like to find and replace all of them with "Owner". Is there an easy way to do this?

    Not really. Even a script can't just rename a field. It needs to create a
    new field on top of the old one, but then you lose all the associated
    settings, like validation, calculation, format, keystroke, etc.

  • Multiple writers for a field

    I get an error indicating that i have multiple writers for a field table_a.item_key. I have 3 classes that use this field as shown below.
    @Entity @Inheritance(strategy=InheritanceType.SINGLE_TABLE) ...
    @Table(name="table_a")
    @DiscriminatorColumn(name="item_Type")
    abstract class A {
    @Id, @Column(name="item_key")
    public String getItemKey(){
    @Inheritance(discriminatorValue="B")
    class B extends A {
    @OneToOne
    @JoinColumn(name="item_key", updatable=false, insertable=false)
    public C getC(){
    @Entity
    @Table(name="table_c")
    class C {
    @Id, @Column(name="item_key")
    public String getItemKey(){
    Note that when i remove the relationship between B and C everything works fine. It looks like TopLink gets confused when a one-to-one relationship is mapped on a column used for another field.

    In the scenario you mention (the Vendor repository), both the Phone Number and Fax Number fields are links to corresponding Qualified Lookup tables. These are inherently multi-value fields.
    Just for the sake of clarity - with the exception of Measurement type fields, it is only lookup fields that can be set to have multiple values. Refer to the matrix <a href="http://help.sap.com/saphelp_mdm550/helpdata/en/1f/2ddb4203d82b78e10000000a155106/content.htm">here</a>.
    Mark

  • How to find table name and field name in JSP FORM

    Hi
    In JSP form's like XML publisher responsibility>templet
    In that form how can we see the system-last query . and how to see the table name

    hi yamini,
    plz go to help->record history (for fining table name)
    and
    help->diagnostic->examine (for finding field name)& enter last_query
    in JSP form also same above only i think.
    or check in back end & apply who columns
    Edited by: raghava bandi on Nov 7, 2008 2:05 AM

Maybe you are looking for

  • How to use standard BADi?

    Good day experts. I have a requirement which I need to save details (such as amount, description, doc. no. etc) on F-22 (screen 0700) into a ztable which I will going to create. Since F-22 is a SAP standard, I need to use Exits or BADi to accomplish

  • Will KillWhite run on Photoshop CS6 64-bit?

    So - now that I am in need of what looks like just the most perfect and amazing solution... am stymied about getting it to work with CS6 Photoshop Extended (64-bit) - what am I missing? When I run the filter (in CS6 64-bit), white isn't removed, inst

  • Need help deleting unused swatches in CS4

    I upgraded from CS3 to CS4, and simultaneously switched platforms from windows to mac osx. Now I can't find the option for deleting all unused swatches in the swatch palette menu and I'm starting to feel insane because I've run several searches and n

  • Flex Spark Datagrid - Scalable (font size) with No scroll Bars

    I was wondering what would be the most optimized way to scale (increase/decrease) the fonts size in a Spark DataGrid with NO Scroller, so as to make it when the User Resizes the DataGrid, the Fonts inside the Grid would increase/decrease.  Is there a

  • Kodo.jdbc.meta.MappingInfoNotFoundException:

    Hi, I am getting following error when iam executing my application. kodo.jdbc.meta.MappingInfoNotFoundException: The "column" attribute/extension for field "com.ejgallo.winemanager.domain.impl.equipment.SiteBoImpl._bottling" names a column whose type