DESCRIBE TABLE or similar to get number and name of a table fields

Hi experts,
I want to use a sentence to get the number and name of the fields contained on a table or structure, and i cannot use DESCRIBE TABLE. I cannot find a way to get that info, does anybody know a sentence or method/funcion for this?
Thanks!!!
Artur.

use this FM GET_COMPONENT_LIST.
can get list of fields also from variable which is not defined in DDIC. But has to be global.
Michal

Similar Messages

  • To get number and name of groups() existing in AD

    Dear Fouramites,
    I got the program from this forum to retrive the number of users in a group given the name of the group in search filter.
    String searchFilter = "(&(objectClass=group)(CN=pluto*))";
    My requirement is to get the names of all the the groups(aliases) created by admin. Can any one plz help me out in getting this info.
    Thanks & Regards
    Kaavyanjali jena

    use this FM GET_COMPONENT_LIST.
    can get list of fields also from variable which is not defined in DDIC. But has to be global.
    Michal

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • Importing CD to Artist folder\Album folder\file with track number and name:

    I have a problem then importing my cd’s to my harddisk using iTunes.
    On my previous pc I got what I want, Artist folder, Album folder and file with track number and name:
    e.g.
    D:\My Music\B.B. King\Blues On The Bayou\01 Blues Boys Tune.mp3
    D:\My Music\B.B. King\Blues On The Bayou\02 Bad Case Of Love.mp3
    D:\My Music\B.B. King\Blues On The Bayou\03 I'll Survive.mp3
    But now I get:
    D:\My Music\Compilations\Blues On The Bayou\01 Blues Boys Tune.mp3
    D:\My Music\ Compilations \02 Bad Case Of Love.mp3
    D:\My Music\ Compilations \03 I'll Survive.mp3
    In iTunes my settings are Edit -> Preferences -> Advanced: iTunes Music folder: D:\My Music and checkmark in both: “Keep iTunes Music folder organized” and “Copy files to iTunes Music folder when adding to library”.
    My version of iTunes is 8.0.1.11
    Thanks in advance
    Peter

    It will depend on the album. Gracenote considers anthologies, a collection of tracks by the same artist taken from different albums, as a compilation. In iTunes the compliation setting should really only be applied to a collection of tracks by different artists.
    tt2

  • How can I create a random number and letter in a text field...

    Hi All,
    I am using application express. I want to get a random number and letter for a text field but not sure how to do this. Say I have a licence form and I want to get the licence number automatically when user wants to create a new licence and it needs to be unique. The format I am looking for is - HQ2631 something like this.
    I am thinking I have to create a trigger but not sure how to go about this....
    advanced thanks,
    Tajuddin

    Something to play with:
    Your method can generate 26 * 26 * 10000 different licence_ids
    Generating one million ids takes 20 seconds but produces between 70000 and 80000 duplicates and is rapidly getting worse (if that is something over 7%, doubling the ids generated that grows to something under 30%)
    Just see if you can live with that.
    select sum(collisions) all_duplicates,count(*) distinct_duplicates,max(collisions) max_multiple
      from (select licence_id,count(*) - 1 collisions
              from (select DBMS_RANDOM.STRING('',2) || trunc(DBMS_RANDOM.VALUE(1000,9999)) licence_id
                      from dual
                     connect by level <= :to_generate
             group by licence_id
             having count(*) > 1
           )Regards
    Etbin

  • I delete people in my phone number but when I go to messages I found their number and name how I can delete them

    I delete people in my phone number but when I go to messages I found their number and name how I can delete them

    There's no option to edit/delete the iPhone cache, the cache will be overwritten in time.
    If you can't wait, only restore as new can get rid of it.

  • Portal infomration System Number  and Name required

    Hi all,
    I need to know few details about the portal information. I am looking for System Number  and Name of portal mainly through WD program program . Could you please help me how to find this. I promise to award points. Do I need to have any Lib/Jar files required to get this info. Program tips are most helpfull and appreciated as well.
    General way to find in portal
    Log into Portal- >System Information -> Name info (Under Database)
    Log into Portal- >System Information -> System Number info  (under Licenses)
    Thank you,
    Regards
    Maruti

    System.getProperty("SAPSYSTEMNAME");  // System ID
    System.getProperty("SAPSYSTEM");   // System Number

  • Output SAP Mail Message - Payer Number and Name

    Hi,
    I'm trying to set up our sap system to output a message if a sales order goes into credit block. I have all this working and the last part of the request is to include the payer number and name for the sales order on the mail.
    I have set up the following against my output
    Replacement of Text Symbols
    Program: SAPMV45A
    Form Routine: TEXT_SYMBOL_REPLACE
    and then I have the following mail title:
    Sales Order on Credit Block - PAYER:&XVBAK-KNKLI&
    I would like to include the name in this, or in the text for the message but I do not know how to extract this. Any ideas?
    Many thanks,
    Steph.

    Christopher,
    if you now have set up the WSMessageListener, this one can also be called by external functions. Alternatively you can call any MII transaction as a webservice.
    For example, you can use something like this:
    http://<server>:<port>/XMII/WSDLGen/<folder>/<tran>
    You can also user the runner service (the example gives a pdf output):
    http://<server>:<port>/XMII/Runner?Transaction=<folder>/<Transaction-name>
    &<InpuParamName1>=<value1>
    &<InpuParamName n>=<value n>
    &OutputParameter=pdfOutput
    &Content-Type=application/pdf
    &isBinary=true
    &XacuteLoginName=<username>&XacuteLoginPassword=<password>
    Michael

  • Dynamically add and modify listbox columns number and names

    I need to dynamically modify number and names of columns in a listbox.
    What should I do for this? And is it even possible?

    Frank-
    Thanks for the suggestion -- I hadn't tried that but just did and it still doesn't seem to work. Would the binding cache AttrDefs separately from results?

  • Retreive IDOC number and map it to a field in Target XML

    Hi Experts,
    IDOC to file scenario
    I have a requirement where I have to retreive the number of the IDOC generated and map it to a field ID in the target XML.
    Do i have to use a UDF for this? can ne one pls explain?
    Regards,
    Teja

    Hi Ravi,
    You dont need use a UDF for this.
    this is a very simple requiremen.
    You can get the IDOC number from source IDOc
    under EDI_DC40 node field name DOCNUM.
    This DOCNUM fielsd will contain the IDOC number
    Map this DOCNUM field from source IDOC to target XML structure.

  • Number and name of rows

    Is there any way to know the total number and the names of the rows in a table?

    Sample:
    private void loadMetaData() {
    int i = 0;
    try {
    metaData = rs.getMetaData();
    int singleHtColumnType;
    columnCount = metaData.getColumnCount();
    for (i = 1; i <= columnCount; i++) {
    columnNames[i-1] = new String(metaData.getColumnName(i));
    // System.out.println("meta-look " + columnNames[i-1]);
    // System.out.println(metaData.getColumnLabel(i)); // on AS/400 == columnName :-((
    // System.out.println("ColumnDisplaySize: " + metaData.getColumnDisplaySize(i));
    singleHtColumnType = metaData.getColumnType(i);
    if (readBigDecimalAsInt & singleHtColumnType == 8) singleHtColumnType = 4;
    columnType[i-1] = singleHtColumnType;
    if (singleHtColumnType == 8
    || (databaseType == ConnectionHolder.DB2_400 && singleHtColumnType == 3)) {
    columnScale[i-1] = metaData.getScale(i);
    htColumnType.put(columnNames[i-1], new Integer(singleHtColumnType));
    if (singleHtColumnType == 1 | singleHtColumnType == 12) maxFieldSize.put(columnNames[i-1], new Integer(getColumnDisplaySize(i)));
    catch (SQLException e2) {
    System.out.println("loadMetaData caught " + e2);
    System.out.println("Index was " + i);
    catch (Exception e) {
    System.out.println("loadMetaData caught " + e);
    System.out.println("Index was " + i);

  • Generate random number and letter in a text field ...

    Hi All,
    I having a bit trouble when trying to generate random number and letter in application express in a text field. Say I have a licence form and when user wants to create a licence, it will provide a random licence number in the licence number field but it has to be unique. the number should be something like HQ2345. I was trying to set the following sql in default value for that text field but it is not working -
    select DBMS_RANDOM.STRING('',2) || trunc(DBMS_RANDOM.VALUE(1000,9999))
    from dual;
    any suggesion !!!!
    thanks

    Put this as default value for your text-item
    DBMS_RANDOM.STRING('',2) || trunc(DBMS_RANDOM.VALUE(1000,9999))
    with type PL/SQL Expression. It have tested it and it works fine.
    DickDral

  • How do I change custom field description and name on the project fields PDP

    I'm creating a custom PDP for a workflow process and I need to add the folloiwng fields "Project Name" and "Description"
    When I try to create Project Name custom field under server settings I get the following message "The custom field name cannot match the name of any intrinsic fields."
    So I went to the PDP web part Project fields and I found a field named " Project Name". I added it to the Proejct Fields web part, but it displays as "Name".
    How can I change this field that's out of the box? I don't see "Project Name" and "Description" under server settings > Enterprise Custom Fields and Lookup Tables to modify them.
    Thank you

    Hi there,
    Project Name & description fields are internal fields in project server which you cannot view in Enterprise custom fields in PWA. You will not be able to create with the similar name. There is no way to change these fields as far as I know. 
    I would suggest to have the new fields name something like  Project_Name/ ProjName or Project_Description/ProjDescription . 
    Hope that helps.Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

  • Find number and name of sales person

    Hi, 
    I have a table, which lists the number of sales made by sales person for the year 2013. How do I list the number of sales and the name of sales person, whose sales are less than 4 for the year 2013.
    Name
    Gender
    Won Oppty
    Sales ( in Value USD)
    Sold Month and Year
    Year
    KFM WMM
    F
    2
    $1,279,310
    72013
    2013
    FSOR DPK
    M
    2
    $965,445
    92013
    2013
    JCS QJA
    M
    3
    $1,892,919
    52013
    2013
    YQFT NNOPI
    F
    4
    $2,205,713
    102013
    2013
    ZGZRS XSV
    M
    4
    $1,516,615
    52013
    2013
    AQOH KEYOZ
    M
    4
    $1,908,883
    52013
    2013
    DWE XSV
    M
    5
    $1,356,954
    102013
    2013
    YFE JDP
    F
    6
    $2,767,863
    82013
    2013
    KCRXF XSV
    F
    6
    $2,037,738
    42013
    2013
    OVEL LZS
    F
    6
    $2,276,738
    72013
    2013
    The answer I should get is
    2
    KFM WMM
    2
    FSOR DPK
    3
    JCS QJA
    Nirmal

    Hi~
    Formula cannot complete your needs.
    You can use criteria parameters (like "<4" and "=2013") in VBA code:
    Option Explicit
    Sub GetFilteredData()
    With ActiveSheet
    With .UsedRange
    .AutoFilter Field:=3, Criteria1:="<4"
    .AutoFilter Field:=6, Criteria1:="=2013"
    End With
    .Columns(2).Hidden = True
    .Columns("$D:$F").Hidden = True
    End With
    End Sub
    Sub RestoreData()
    With ActiveSheet
    If .AutoFilterMode Then
    .AutoFilterMode = False
    End If
    With .Columns(2)
    If .Hidden Then
    .Hidden = False
    End If
    End With
    With .Columns("$D:$F")
    If .Hidden Then
    .Hidden = False
    End If
    End With
    End With
    End Sub
    In Sheet1, insert two shapes and assign macro names to them, here's the result by clicking GetFilteredData and RestoreData:
    Regards,
    Cristin Yan

  • How to get value and name of the n'th parameter in a pl/sql funct./proced.

    procedure test(name varchar2, birthdate date, zip number, country varchar2);
    in procedure x I do
    test('Michael Postmann', to_date('03.01.1983', 'DD.MM.YYYY'), 7461, 'AUSTRIA');
    And this should htp.print the following:
    test: name=Michael Postmann,birthdate=1983/01/03,zip=7461,country=AUSTRIA
    In procedure test I want to know:
    *) What is the name of myself (the procedure)
    *) Optionally: Am I a procedure or a function?
    *) How many Parameters do I have?
    *) What are the values of them?
    *) What are the names of them?
    *) Optionally: What are the types of them?
    What I actually want to do is:
    I have a procedure for logging errors. So in my program I call this function frequently and I want it to log the current time, a string passed to the logging function, the client's ip, etc.... but it should also log a list of the parametrs and values of the procedure/function where the error occoured.
    Is there any way to do this (I think in C this is done by argc and argv, but a string containing all the information (as you get it from the WebDb when something goes wrong) would be enough)?
    Thx in advance,
    Nomike aka Michael Postmann

    Name of procedure or function can be retrieved using DBMS_UTILITY.FORMAT_CALL_STACK:
    CREATE OR REPLACE FUNCTION fn_whoami (v_in varchar2)
    RETURN varchar2
    AS
    v_stack varchar2(1000) DEFAULT DBMS_UTILITY.FORMAT_CALL_STACK;
    v_job varchar2(500);
    v_name varchar2(100);
    BEGIN
    v_job := SUBSTR(v_stack,INSTR(v_stack,'function'),256);
    v_name := SUBSTR(v_job,1,INSTR(v_job,CHR(10))-1);
    return v_name;
    END fn_whoami;
    select fn_whoami('1') from dual;
    CREATE OR REPLACE PROCEDURE pr_whoami
    AS
    v_stack varchar2(1000) DEFAULT DBMS_UTILITY.FORMAT_CALL_STACK;
    v_job varchar2(500);
    v_name varchar2(100);
    BEGIN
    v_job := SUBSTR(v_stack,INSTR(v_stack,'procedure'),256);
    v_name := SUBSTR(v_job,1,INSTR(v_job,CHR(10))-1);
    dbms_output.put_line(v_name);
    END pr_whoami;
    exec pr_whoami;

Maybe you are looking for