Fetch field names & Description for Table

Hi,
   My requirement is if i enter the Table name i have to get all the field names and description .Please tell me how to do.
Thanks,
Mohan

Hi,
TABLES: DFIES,
        X030L.
DATA: BEGIN OF INTTAB OCCURS 100.
        INCLUDE STRUCTURE DFIES.
DATA: END OF INTTAB.
PARAMETERS: TABLENM TYPE DDOBJNAME       DEFAULT 'MSEG',
            FIELDNM TYPE DFIES-FIELDNAME DEFAULT 'MENGE'.
      call function 'DDIF_FIELDINFO_GET'
        exporting
          tabname              = TABLENM
          FIELDNAME            = FIELDNM
          LANGU                = SY-LANGU
*         LFIELDNAME           = ' '
*         ALL_TYPES            = ' '
*       IMPORTING
*         X030L_WA             = WATAB
*         DDOBJTYPE            =
*         DFIES_WA             =
*         LINES_DESCR          =
        TABLES
          DFIES_TAB            = INTTAB
*         FIXED_VALUES         =
        EXCEPTIONS
          NOT_FOUND            = 1
          INTERNAL_ERROR       = 2
          OTHERS               = 3.
      if sy-subrc <> 0.
         WRITE:/ 'Field name not found'.
      endif.
      LOOP AT INTTAB.
         WRITE:/ INTTAB-TABNAME, INTTAB-FIELDNAME, INTTAB-FIELDTEXT.
      ENDLOOP.
Thanks and regards,
Ramani N

Similar Messages

  • "Table Name" in customizing SUS:"make field control settings for tables"?

    Hi Gurus,
    In the following customizing node, I can find the table name such as :
         ORDER.DET.EDIT
    +     ORDER.DET.VIEW+
    +     ORDER.HISTORY.DETAIL+
    +     ORDER.ITEM.EDITH+
    +     ORDER.ITEM.EDITL+
    +     ORDER.ITEM.EDITL.WO.OR+
    +     ORDER.ITEM.EDITM+
    +     ORDER.ITEM.EDITM.WO.OR+
    +     ORDER.ITEM.EDITS+
    +     ORDER.ITEM.EDITS.WO.OR+
    +     ORDER.ITEM.VIEWH+
    +     ORDER.ITEM.VIEWL+
    +     ORDER.ITEM.VIEWL.WO.OR+
    +     ORDER.ITEM.VIEWM+
    +     ORDER.ITEM.VIEWM.WO.OR+
    +     ORDER.ITEM.VIEWS+
    +     ORDER.ITEM.VIEWS.WO.OR+
    +     ORDER.LIST+
    +     ORDER.SDLN.EDIT+
    +     ORDER.SDLN.VIEW+
    It's difficult to know the difference for these so-called "table name"...
    "SAP implementaion --> supplier relationship management --> supplier self-service --> settings for user interface --> make field control settings for tables"+
    What's actual meaning for these table names? Where can I find related document and actual corresponding transparent tables for these so-called talbes?
    Thanks and best regards
    Jack

    Hi Neelima,
    Thanks a lot.
    Checked the SAP note, but I could not find corresponding infomation about that, kindly please advise again.
    Best regards
    jack

  • How to retrieve the Field Name of a Table

    Hi guys,
    I'm trying to retrieve the field name of a table in java, but i don't know how to do it. Could somebody help me?Let say i have a table name Itemmaster, then
    i want to retrieve its field and display to dos prompt.
    Example :
    Item No.
    Description
    Quantity
    It is possible to retrieve the fields?
    What could be the possible command in java using packages Java.sql.*?
    Thanks in advanced...
    Best regards,
    Dharry

    The ResultSet class, which is how query results are returned in JDBC, has methods to get at the metadata for the table queried, including column names:
    ResultSet resultSet=statement.executeQuery("select * from table");
    resultSetMetadata=resultSet.getMetaData();
    resultSetMetadata.getColumnLabel(column+1);

  • How to return all field names in a table

    How do you write a report to return all field names in a table? I prefer the field names in a column.
    Thanks
    Wayne

    Hi,
    In Oracle it is,
    Select column_name from user_tab_cols where table_name  = 'Table_Name';
    Note: Table_Name should be in capital letters
    In MS SQL Server it is,
    SELECT Column_Name + ', '
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'Table_Name'
    Hope this helps!
    Thanks
    -Azhar

  • How to get the field names of a table

    hi all,
    i need to get all field names of a table. here i dont need any data. i need only field names.
    initially i used this query, select * from tname;
    the problem is if table have 1000 records, all records will be in memory.
    how to get this one.
    regards
    pavan.

    hi all,
    thanks a lot. the query is working.
    initially i given this query
    select column_name from user_tab_columns where table_name='mytable';
    but no rows selected.
    and i tried with this,
    select column_name from user_tab_columns where table_name='MYTABLE';
    this is working fine.
    thanks
    pavan.

  • Change All Field Names in a Table to have a Lowercase First Letter

    I have an SQL database with many tables.  All of the field names in each table start with an Uppercase letter. I would like to programmatically change all of the field names in each table to start with a lowercase letter.  Can this be done?
    E.g.:  "FieldName" to "fieldname"
    Thanks.

    O.K.  Just in case anyone else runs into this, I used Carl's answer to guide me in the right direction. This is my final code that created the commands I needed to run a batch (where TMaster is my schema name and the WHERE statement contains
    the datatypes in your tables):
    SELECT
    'EXEC SP_RENAME ''TMaster.'+TABLE_NAME+'.'+COLUMN_NAME+''',
    '''+LOWER(SUBSTRING(COLUMN_NAME,1,1))+SUBSTRING(COLUMN_NAME,2,255) 
    +''',
    ''COLUMN'''
    FROMINFORMATION_SCHEMA.COLUMNS
    WHEREDATA_TYPE='int'.

  • Field name in database table

    Hi,
    Can we give the filed names start with '/' character, (like /name)? I saw like these field names in standard table MARA. How we create those fields in Z tables?
    Thanks.

    That are fields in Include structure.
    Yes u can create field with / in ur ztable.
    first create a structure by selection data type radio button in se11.
    in that structure create fields with /.
    NOTE: field must have 2 /.
    i.e ur field must be /str/struct1.
    activate it.
    now in ur database table goto edit menu select
    include->insert
    Give ur structure name .
    Message was edited by:
            Kalpanashri Rajendran

  • Transporting of Value field name/description translation in COPA

    Hi,
    I have a problem with Value field name/description translation in COPA. In English language all user defined value field names are defined properly with name and description.
    In my native language their names are blank and its hard to use COPA reports as we don't see the description of particular value fields.
    Is it possible to tranport the names of value fields from DEV system to PRD system? I have altready translated value fields on DEV but there is no option to create transport with the translations or changes in the names I made.
    If it is possible to transport it to PRD, do I have to refresh and regenerate Operating concern in PRD?
    I am not confident with refreshing Operating Concer on PRD client - as it might be generated with errors and stop all sales.
    What would you advice?
    Kind regards,
    Karol

    Hi Nakul,
    Kindly check if you have reset the value field in KE4W. If this does not help then please provide us more details about the document that you have posted.
    Regards,
    Abhisek

  • How to make Form Field names appear for User??

    Hi im creating a form template that will be sent to over 150 stores so I need this to work and be easier for my stores.
    Is is possible to make the field names visable for the user so they know what details are need in the fields?
    Please if anybody can help!!

    Sorry I forgot to mention I need it to visible on Text boxes, doesnt seem to be working

  • Displaying Field name in a table

    Hi,
    I want to display the field names in a table.
    Is it possible to achieve this through coding?
    Regards,
    Ram.

    Hi,
    Please explain the requirement clearly.
    Where you want to display the field names of the table.
    Regards,
    Umasankar

  • Table name  and  field name needed for delivery note

    Hi  Experts
    I need to extract the following fields for Delivery.
    company code
    Sales organization
    plant code
    shipping point
    DDL No (VBELN)
    Sales order
    Customer PO
    Customer request date
    planned GI date
    sold to code
    ship to code
    ship to name1
    ship to name 2
    ship to address1
    ship to address2
    ship to address3
    DDL Line item(posnr)
    matnr
    DDL Doc. date
    DDL Doc. Created by
    anybody knows the field name and table name for above fileds pls help me.

    Hi,
    It is possible to get the data ship-to adress of delivery.
    step1:
             Go to LIKP table which is header data.Select the record from DB for delivery you want into one field string.
    step2:
           Get the customer number of the ship-to party (in field KUNNR IN LIKP Table) into one variable.
    step3:
           Using that customer number you can get the address of ship-to party of particular delivery in KNA1 table.
      Here is some peice of code.
      TABLES: kna1 , likp.
    PARAMETERS: p_del TYPE likp-vbeln.
    DATA:
         w_ship_to_num TYPE likp-kunnr.
    SELECT SINGLE * FROM likp
    WHERE vbeln EQ p_del.
    w_ship_to_num = likp-kunnr.
    SELECT SINGLE * FROM kna1 WHERE kunnr EQ w_ship_to_num.
    WRITE : 'Name :' ,  kna1-name1,
              'City   :'  , kna1-ort01,
              'State :'   ,kna1-regio.

  • Field Names within a table

    Is there a document that will show the filed names in each table and what would be the valid layout for DTW?

    Hi John........
    Else you can do one thing.
    Login to SAP B1 and then go to Tools> Query> Query Generator--> Press Tab on yellow field where cursor is initially focused.
    The moment you put tab this will give you the list of All the tables with its Descriptions.
    Once you select any of the table this will display all the fields in the database in that table......
    hope this will help you......
    Regards,
    Rahul

  • Mapping authorization field IDs to field names (description)

    Hello Folks,
    I am trying to map the authorization field (technical ) names to field descriptions (long names)
    Backgroud: I do not have enough input from the functional team yet on restrictions at data level. I have pulled out a list of orgfield values from USORG. Now i am trying to map the other authorization fields to their descriptions.
    Table AUTHX only maps the field to the data element and while table DD04V lists the long field names for a given data element, i need to drill down before i get the description and thats for each fieldname / data element.
    Question: Is going through SU20 for each object the best way to map the field description or is there a better way to map the auth field IDs to their description. And i mean for multiple input as there are scores of auth fields...
    Regards,
    Prashant

    Thanks Jurjen, that helped a lot.
    I downloaded the authorizations into an excel tough, (did not use uncoverted format).
    Solution in Excel: Since there are a lot of blank cell values
    -- name the columns clearly
    create a pivot table
    In the pivot select only the field technical name and field description columns
    For some reason when the other columns are selected, everything is going blank for values
    I am sure others are better with Excel than i am
    Regards,
    Prashant

  • Field names from which table???

    Abapers,
    I have a question regarding a table used for retrieving the field names based on the message type?? Does anybody has any idea which table is used for this purpose.
    Any solution is really appreciated.
    Thanks,
    Naren

    You going to have to give us more than that......please.
    Need more input.
    Regards,
    Rich Heilman

  • Retrieve the fields name of a table

    HI,
    I need to write a loop to get the name of each fields in a table. I nedd something like
    for each field.fieldname do something
    thanks,
    Mandana

    select * from yourtable where 1 = 2
    The resulting columnlist will give you all the field names.

Maybe you are looking for

  • Nested tables causes trouble in RoboHelp FM Import

    May be someone here in this forum knows a solution or a workaround for my trouble with a FrameMaker Import in RoboHelp. Background: To generate context sensitive Windows HTML-Help a FrameMaker document is imported into RoboHelp. There are lots of nes

  • BT Desktop Help will not install on 64-bit Windows...

    I had BT Infinity installed yesterday. I cannot get BT Desktop Help to install properly on my system; Windows 7 64-bit. It seems to install but when it runs I get a message that the software is out of date, but it will not download a newer version. I

  • How to filter based on two keywords (using And)?

    Something that seems so simple but I just can't figure it out. I've added keywords to a lot of my photos. Now I want to find all the keywords that match multiple pictures -- like with Snow AND Tree. When I select multiple keywords using shift, it bui

  • Start up disk full need help freeing up space.

    My start up disk almost full.  Shows 137 GB in "other category"  Have been able to locate 75 GB but not 137GB.  what makes up "Other"?

  • How to create list of string from set of parameters?

    Hey, I have query methods who gets set of parameters for example: getUser(String userName, int userAge)I use in int because this field is not null!!! I want to create a general auditing method - the auditing method get list of query param names and q