Database Table Fields Display - Alpha only?

When you are working with dynamic sites, and have the
database tables interface open.. if you click a table, the fields
come up in alphabetic order, rather than table order. This is very
different than most tools. Is there a way to disable the
alphabetizing and just show the table fields in table order (i.e
keys first, etc) ??
Thanks/

Hi Swarna
Try this code.
DATA:
T_ITAB LIKE TABLE OF ZTABLE,
FS_ITAB LIKE LINE OF T_ITAB,
WA_ITAB TYPE ZTABLE-REVIEW_CYCLE .
SELECT * FROM ZTABLE INTO TABLE T_ITAB.
SORT T_ITAB DESCENDING BY REVIEW_CYCLE .
READ TABLE T_ITAB INTO FS_ITAB INDEX 1.
MOVE FS_ITAB-REVIEW_CYCLE TO WA_ITAB.
LOOP AT T_ITAB INTO FS_ITAB.
  IF FS_ITAB-REVIEW_CYCLE EQ WA_ITAB.
    WRITE:/
       FS_ITAB-REVIEW_CYCLE ,
       FS_ITAB-REVIEW_STEP,
       FS_ITAB-GUID.
  ENDIF.
ENDLOOP.
Regards
Hareesh Menon

Similar Messages

  • Looking for a value in a list stored in a database table field

    Hello,
    I have a field in a database table that contains a comma
    separated list on numbers. In my CFQUERY I am attempting to extract
    records from the database table where a parsed number is present in
    the comma separated list. I have tried the code below, but it is
    throwing an error.
    variables.publicationID is the number that I am looking for
    in the database table field.
    publicationList is the name of the database table field
    containing the comma separated list of numbers.
    where <cfqueryparam value="#variables.publicationID#"
    cfsqltype="cf_sql_integer"> in publicationList
    Can anybody help?
    Many thanks,
    smnbin

    The only way to do it with the data model you currently have
    is as follows:
    WHERE publicationList LIKE '#variables.publicationID#' OR
    publicationList LIKE '#variables.publicationID#,%' OR
    publicationList LIKE '%,#variables.publicationID#,%' OR
    publicationList LIKE '%,#variables.publicationID#'
    You need to check for 4 cases:
    it's the only ID in the list
    it's the first ID in the list
    it's in the middle of the list
    it's the last ID in the list.
    The better solution would be to replace this comma-delimited
    list with a mapping table, where each row in this mapping table
    contains a reference to the main table as well as a single
    publicationID.

  • How to Transfer Database Table Field to Data Type in XI

    Dear All,
    Dear All,
    I am working on scenario to transfer data(Database Table) from Non SAP System to SAP system through XI.
    While Defining "Data Type" in XI i want to create Data Type as of Database table in my(Oracle Database).There is any direct method to import Database Table field into "Data Type" in XI.
    thanks,
    RP

    Hi;
    Edit plus is a tool using which you can edit your file and make changes to it.
    You can download it from net ,just search for it on google.
    this will help you to get in the field names of the table by editing the file .
    Mudit

  • How to get the database table field names from program

    Hi,
    Can any one tell me,whether any function module is there which can get the table field name and its details ,when we pass database table name to it.
    Thanks in Advance
    <REMOVED BY MODERATOR>
    Regards
    Shibin
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 12:41 PM

    Hi,
    DD02L Table contains the SAP Tables.
    DD02T Table contains the SAP Table Texts.
    DD01L Table contains the Domains
    DD01T Table contains the Domain Texts.
    DD03L Table contains the Table Fields.
    DD03T Table contains the Table Field Texts. (Language Dependent)
    DD04L Table contains the Data Elements.
    DD04T Table contains the Data Element Texts.
    DD05s Table contains the Foreign Key Fields
    last words with L and T only. L->Database Fetch T-> Text
    For ur question use table DD03L or DD03T.
    Regards,
    Chandru

  • How to make data entries in a database table field as a hyperlink?

    Hello all,
    I am designing an application in BSP. The requirement is to  make some of the entries in the database
    tables as hyperlink values.
    I have a database table which has a field "country feature". The scenario is  that the user can enter any value in this field through view. The value can be a hyperlink or a free text, depending on the user requirement.
    Is there any way by which the user can enter hyperlink values in the particular field in a database table?
    Thanks in advance for your help.
    Gurmahima.

    Hey Gurmahima ,
    This is sample code for Selecting and deselecting all the checkboxes .
    All you have to do is Set a pf-status and follow the code logic .
    Here w_check is the check box field , w_line is the line your raeding and w_lines is the total number of lines(entries ) you have in table .
    set pf-status 'SELECT' .
    case sy-ucomm .
        when 'SELECTALL' .
          set pf-status 'SELECT' excluding 'SELECTALL' immediately.
          w_line = w_line + 3  .
          do w_lines times .
            read line w_line field value w_check .
            if w_check = space .
              w_check = 'X' .
              modify line w_line field value w_check.   
              add 1 to w_line .
            endif .                        " IF W_CHECK = ' '
          enddo .                          " DO W_LINES TIMES
          clear w_line .
        when 'DESELECT' .
          set pf-status 'SELECT' excluding 'DESELECT' immediately.
          w_line = w_line + 3  .
          do w_lines times .
            read line w_line field value w_check .
            if w_check = 'X' .
              w_check = space .
              modify line w_line field value w_check .
              add 1 to w_line .
            endif .                        " IF W_CHECK = 'X' .
          enddo .                          " DO W_LINES TIMES
          clear w_line .
    Hope you get it!
    Much Regards ,
    Amuktha .
    Edited by: Amuktha Naraparaju on Feb 5, 2009 6:22 AM

  • Maximum length that a database table field can hold

    Hello All,
    I am creating a database table to store different values corresponding to a particular feature coming under different countries. Some of the values have to hold more than 700characters, which is basically like a paragraph. I have found that the maximum length a table field can hold is 255characters.
    Is there any way by which i can enter more than 500 characters.
    Thanks In Advance,
    Shino

    Hi,
    If the Max length that is required is 700 characters then:
    1) Isn't it possible in your case to divide the same into mutiple Fields of having 255 length each.
    2) In sap there are some tables which store whole Code like table for storing Code for reports in SAP is
        REPOSRC  But the whole code is first stored in Hexadecimal format and not in terms of direct characters.
    May be on same lines you can change the CHARACTER format and then store it and again convertt he same for further use.
    You can have look into the Table REPOSRC . May be it helps.
    Regards,
    Vishal

  • Checking of database table field and then update that field

    hello there,
    In my program I want to check the field 'XRUEM' of  database table MARV, If that field is check i.e. 'X' in table then I want to clear that field and then I have to proceed can anyone please guide  me in this.

    Chetan,
    Do you have to clear the field XRUEM from database table MARV if it is 'X'   ???
    or you just want to clear this field in the report?? Please do specify.
    To clear field from database table MARV us UPDATE command (Please be careful... one should not make changes in master tables using reports)
    To clear runtime contents of a filed in the report use CLEAR command.
    Let me know if this doesnt clear your doubt.
    Thanks.

  • Noftification or warning after change of one database table field

    HI
    i want to send a warning or notification , when one field in a table changed with a database after update trigger and show the message to user in application layer
    in more detaile
    when user insert or update table1 then a trigger changes table2. and i want after this change,if the value of one attribute of table2 was equal  to a query result then it send a message to user in application layer
    what can i send this message
    jdeveloper 11.1.2.2.0
    database 11

    HI
    i want to send a warning or notification , when one field in a table changed with a database after update trigger and show the message to user in application layer
    in more detaile
    when user insert or update table1 then a trigger changes table2. and i want after this change,if the value of one attribute of table2 was equal  to a query result then it send a message to user in application layer
    what can i send this message
    jdeveloper 11.1.2.2.0
    database 11

  • Mapping entire XML message to a database table field

    I receive a XML message from a topic. I want to store that entire XML message in database field of XMLType. My components are lined like this.
    JMS Adapter (Consumer) ---> Mediator ---DBAdapter
    My question is how will I use XSL tranformation in this case to put the XML message I receive to the XML type data field. Should I be using any other approach.
    Regarsd
    Thomas

    have a look at this code for reference. Not sure what you mean my map the whole message. It should be such a matter of dragging the route element to the blob object of the DB adapter.
    create or replace PROCEDURE INSERT_INBOUND_MESSAGE (
           p_ID       in out nocopy varchar2
        ,  p_Payload  in out nocopy blob
        ,  p_Date     in date
        ,  p_Error   out varchar2
        ,  p_Status  out varchar2)
    IS
    l_clob        CLOB;
    l_dest_offset NUMBER          := 1;
    l_src_offset  NUMBER          := 1;
    l_amount      INTEGER         := dbms_lob.lobmaxsize;
    l_blob_csid   NUMBER          := dbms_lob.default_csid;
    l_lang_ctx    INTEGER         := dbms_lob.default_lang_ctx;
    l_warning     INTEGER;
    l_length      BINARY_INTEGER;
    l_error_text  VARCHAR2(80);
    BEGIN
      p_Error  := 'SUCCESS';
      p_Status := 'S';
      dbms_lob.createtemporary( lob_loc => l_clob
                              , cache   => TRUE
                              , dur     => dbms_lob.session);
      dbms_lob.converttoclob  ( l_clob
                              , p_Payload
                              , l_amount
                              , l_dest_offset
                              , l_src_offset
                              , l_blob_csid
                              , l_lang_ctx
                              , l_warning);
      Begin
        Insert Into inbound_message values (p_ID, p_Payload, p_Date);
      Exception
        When others Then
          p_Status := 'E';
          p_Error  := SQLERRM;
      End;
    END INSERT_INBOUND_MESSAGE;
    --EXIT

  • How to download Database Table Field names to local system..?

    Hi
    I want to download Feild names and their data types to local excel sheet...
    How to do it..???
    Pavan Sanganal

    Hi,
    Use this code.
    REPORT ZTEST_TEST02 .
    data: begin of itab occurs 0,
          tabname type tabname,
          fieldname type fieldname,
          datatype type datatype_d,
          leng      type ddleng,
          end of itab.
    parameters: p_tbl like dd03l-tabname.
    select tabname fieldname datatype leng into table itab
            from dd03l where tabname = p_tbl.
    loop at itab.
    write:/ itab-tabname ,
            itab-fieldname,
            itab-datatype,
            itab-leng.
    endloop.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                  =
        filename                      = 'c:table.txt'
       FILETYPE                      = 'ASC'
    *   APPEND                        = ' '
    *   WRITE_FIELD_SEPARATOR         = '9'
    *   HEADER                        = '00'
    *   TRUNC_TRAILING_BLANKS         = ' '
    *   WRITE_LF                      = 'X'
    *   COL_SELECT                    = ' '
    *   COL_SELECT_MASK               = ' '
    *   DAT_MODE                      = ' '
    * IMPORTING
    *   FILELENGTH                    =
      tables
        data_tab                      = ITAB
    * EXCEPTIONS
    *   FILE_WRITE_ERROR              = 1
    *   NO_BATCH                      = 2
    *   GUI_REFUSE_FILETRANSFER       = 3
    *   INVALID_TYPE                  = 4
    *   NO_AUTHORITY                  = 5
    *   UNKNOWN_ERROR                 = 6
    *   HEADER_NOT_ALLOWED            = 7
    *   SEPARATOR_NOT_ALLOWED         = 8
    *   FILESIZE_NOT_ALLOWED          = 9
    *   HEADER_TOO_LONG               = 10
    *   DP_ERROR_CREATE               = 11
    *   DP_ERROR_SEND                 = 12
    *   DP_ERROR_WRITE                = 13
    *   UNKNOWN_DP_ERROR              = 14
    *   ACCESS_DENIED                 = 15
    *   DP_OUT_OF_MEMORY              = 16
    *   DISK_FULL                     = 17
    *   DP_TIMEOUT                    = 18
    *   FILE_NOT_FOUND                = 19
    *   DATAPROVIDER_EXCEPTION        = 20
    *   CONTROL_FLUSH_ERROR           = 21
    *   OTHERS                        = 22
    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,
    Raghav

  • Sorting by non-base table fields in Oracle Forms

    I have a form with a block that associated with a table.
    There are several base table fields and several non-base table fields displaying information in this block.
    I need to sort the data in this block by non-base table fields.
    Is this possible without rewriting the form so that the block is not associated with a base table, and then manually populating the block?

    Hi mark
    You could do the following
    Create a database function on the server,
    The function should return the value that you want to order by.
    In your form update the ORDER BY clause to use the function
    Example:
    Assume you have a block base on the employee table,
    and you want to order by the department name not the department no (The employee table only contains the department no)
    The function will be
    CREATE OR REPLACE FUNCTION "TEST_ORDER" (pDEPT_NO NUMBER) RETURN VARCHAR2 AS
    DptName VARCHAR2(100);
    BEGIN
    SELECT DEPT_NAME
    INTO DptName
    FROM DEPT
    WHERE DEPT_NO = pDEPT_NO;
    RETURN DptName;
    END;
    The form block ORDER BY Clause will be
    TEST_ORDER(DEPT_NO)
    Hope this will solve your problem
    Regards

  • How to get multiple rows from database table?

    hello !
    I need to get multiple rows from a OLEDB database table and display them on a table object.
    I did "Wrap in subfrom" on the table,  set  subform of the table to "flowed", and checked "Repeat row for each data item" of Row1 of the table.
    But I can get only one row on the table object.
    I need your help.
    Thanks

    Hi,
    best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
    Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
    Frank

  • Sorting by non-base table fields - Is it possible?

    I have a form with a block that associated with a table.
    There are several base table fields and several non-base table fields displaying information in this block.
    I need to sort the data in this block by non-base table fields.
    Is this possible without rewriting the form so that the block is not associated with a base table, and then manually populating the block?

    This may help you.
    Example
    I have a customer_id in my base table, but I want the data ordered by customer_name which is from another table.
    Answer
    You need to create a function in the database with an associated
    pragma to specify the level of purity of the function
    WNDS (write no database state)
    WNPS (write no package state)
    PRAGMA RESTRICT_REFERENCES(fn_get_dname, WNDS, WNPS);
    Function fn_get_dname (p_empno in number) return varchar2 is
    v_dept_name varchar2(40);
    begin
    select dname into v_dept_name
    from dept, emp
    where dept.deptno = emp.deptno
    and emp.emp_no = p_emp_no;
    return v_dept_name;
    end;
    order by in a block based on the emp table (assuming you want a list of employees by department name)
    order by fn_get_dname(empno), empno

  • How to input data in a database table without knowing in advance table and column configurations

    Hi,
    I have a problem using LabVIEW for input data (manually) in a SQL database. I have about 40 tables in the database, each of them is related to a specific engine component. I need to create a user interface (maybe visualizing the table with a table control) where the users can insert data in the database table fields. Could someone give me some suggestion on how to do it?
    Using the  DB tools insert data.vi I need to know in advance the column configuration of the table, but in my database each table has its own structure! So do I have to create 40 different masks, one for every different table?
    Thanks in advance.
    Michela

    I have not actually used the LV SQL Toolkit, but I will try and offer high level ideas :-)
    when you have retrieved the construction data for a table, you should be able to use array and cluster indexing to aquire the names of the fieds, enough to create a labelled table on the LV Front panel.
    After completing a new entry you can INSERT the entry into the database using the same data.
    Is the SQL toolkit an additional purchase, or included in newer versions as standard? If you post a sample of the cluster/array that you retrieve, I could give you a sample VI to give you some pointers in creating the User Interface table 
    - Cheers, Ed

  • Access key needed when creating a new database table with SE11

    Hi,
    I'm using SAP Testdrive (evaluation) on linux in order to learn a bit about ABAP programming. I want to create a new database table in the  dictionary to be used in my programs. I proceed in the following way:
    1) I run the SE11 transaction
    2) At the first entry I write the name of the table to be created (in the Database Table field)
    3) I click on the create button.
    But then the system asks me an Access Key to register, where can I get this?
    Thanks in advance,
    Kind Regards,
    Dariyoosh

    Ok I found the answer to my question in another thread
    Developer Key
    Make sure that your program names starts with "Z" or "Y", otherwise the system will ask you to register the object because it thinks you are creating/changing in the SAP namespace.
    In fact this was my error, my table name didn't start with neither "Z" nor "Y".
    Kind Regards,
    Dariyoosh
    Edited by: dariyoosh on Nov 13, 2010 12:34 PM

Maybe you are looking for

  • Sort table of objects by object attribute

    Hi all, I would like to write method for sorting table of objects. Sorting will be according selected attribute of object. My problem is that when I have dynamic data, I'm not able to access attributes of object. Here is example in code. Problematic

  • Case when null statement

    Afternoon Folks, The line highlighted in Bold is where I have the issue. I want it to pick up NULL or Blanks in the method type has well as types E,G,T. I've tried NULL is the statement, "", and '' put none of these work. What am I doing wrong? I'm u

  • Usb not detected on post

    Does anyone have this problem whereby your usb devices are not detected by the system during post? the only way to get it recognized is by quickly unplugging and plugging back in when the reset button is pressed.

  • Solo Bus (s)es / Comparing speaker systems

    Hullo I have a single stereo track which I'm trying to compare on several different speaker systems - not an unusual task for those that frequent this forum I'd expect. Edit: It's a wee bit more complex than that. The track has a lot of processing (e

  • Supplier list clarification

    Hello Guys I came to know that in Supplier list creation, we can display backend ECC contracts. And this is possible only with Classic scenario. If we activate extended, the SAP documentation says itu2019s not possible to do that. I want to know why?