Read data element given field name

Hello All,
   I have a DB table and field name, with this information how can i find the data element for this perticular field.
  is tehre any Funtion Modules exists for teh same.
Thanks in advance
Amarender Reddy B

Hi Amar,
You can get the data element for a field in a database table using DD03L table.
Check this code.
DATA V_ROLLNAME TYPE DD03L-ROLLNAME.
SELECT ROLLNAME
   FROM DDO3L
     INTO V_ROLLNAME
WHERE TABNAME = 'MARA'  -->Provide table name
     AND FIELDNAME = 'PSTAT'. -->Provide field name
WRITE:/ 'Data element is: ', V_ROLLNAME.
Otherwise, use function module KL_TABLE_INFO_GET to get the data element for a field of a database table. Provide table name to I_TABNAME and field name to I_FIELDNAME and you will get the data elemet in the export parameter E_TABFIELD_W-ROLLNAME.
Thanks,
Vinay

Similar Messages

  • How to add new data element to field list

    Hi,
    I am implementing Succession Planning 3.0 SP1.
    To make new data element was successful.
    I want to use them as sort field, however I don't know how to add them to the list of fields with caption.
    (i.e. to setting Visualize>My Org Units>Sort Fields)
    If you know how to config data elements usw. Please advise.
    Best Regards,
    Hiroshi Takimoto

    Hi Hiroshi,
    There are 2 ways to do this, both involving some customization of the application.
    1) Extend your HR-OCI views (TMC_O_SUCC_T & TMC_O_SUCC_B for My Org Units and TMC_IN_REP_T_DT & TMC_IN_REP_B_DT) to include Short Name. You probalby want to seek help from an OM consultant if this is not your area of expertise.
    2) Create a linked data element that links together the existing data elements and a new data element which includes Short Name. Your new data element must have the name of the existing data elements or you should change the hierarchy configuration that uses these data elements. Beware that this can prove troublesome for the Position Hierarchy because of the "virtual root" that is created - sometimes the join does not work because of this.
    Best regards,
    Luke

  • Read data from CLOB field

    Hello,
    I have table ( table1 ) with clob field ( clob1 ).
    Content of clob1 field is :
    data01 data02 data03 12345 data04
    data05 data06 data07 32131 data08
    data09 data10 data11 43422 data12
    data13 data14 data15 54534 data16
    Content of clob1 field is imported from ASCII file. Number of records in ASCII file is variable.
    How can I read each row separately from clob1 field?
    Thanks

    Here is an example of how it can be done.
    Note you will have to have an end of line marker on each line including the last line.
    In my case I have used the '@' symbol as a line delimiter
    declare
    v_clob clob := 'This is my@clob string which@is over a number@of lines@';
    v_clob_length number;
    v_read_pos number := 1;
    v_subclob clob;
    v_line varchar2(4000);
    v_marker number;
    begin
    v_clob_length := dbms_lob.getlength(v_clob);
    while  v_read_pos <= v_clob_length
    loop
    v_subclob := empty_clob();
    -- make a clob of the smaller piece of data
    v_subclob := dbms_lob.substr(v_clob,v_clob_length,v_read_pos);
    -- find the position of the end of line marker
    v_marker  := dbms_lob.instr(v_subclob,'@');
    -- build a line from the subclob, removing the trailing end of line marker
    v_line    := dbms_lob.substr(v_subclob,v_marker-1,1);
    dbms_output.put_line(v_line);
    --  increment the position from where to start reading the original clob
    v_read_pos := v_read_pos+length(v_line)+1;
    end loop;
    end;This produces the following
    This is my
    clob string which
    is over a number
    of lines

  • Help.. to read data from 4 fields ..concatenate it ..and write in one?

    i want to read from 4 fields of a form, concatenate it and write them into once field and write in one column in database..how to

    I am getting data from the table Pt_types. The columns are pt_a, pt_b, pt_c, pt_d.
    PURPOSE of the form: the viewer will select the types and press submit.
    Next action: To submit the four fields (pt_a, pt_b, pt_c, pt_d.) into the column (pt_eq) in the table problem.
    This is done to keep record of the reports entered by the staff. The (problem) table provides information to generate report, for maintainance.
    ..Did you understand what I want to do?
    Please let me know if you need more information.
    Thanx cardwellcupp...

  • Finding field name

    Hi friends,
    I have to add two fields in a customer based report , i know only the description of field name 'Customer comments' and 'contact notes'.
    in which table i have to search for getting SAP database field. i have searched in customer master data but  unable to get the data.
    could any one help on this please.

    Hi Kumar,
          Here is the other method to get the field name with description.
          Go to se11 &#61664; select the Data type radio button &#61664; place your cursor in the text box and press F4 &#61664; choose search for data elements &#61664; enter your description short description box press enter &#61664; then double click on the data element &#61664; then click on where used list.
            Then you will get in which table you are using the data element and field names.
    Regards,
    Ramakrishna kotha.

  • TABLE-FIELD NAME FOR AGENT (SALES ORDER)

    HI
    I am making despatch report agent wise .
    Can any one tell me the table-field name for agent it is used in saleorder
    t.code va01 .
    Regards
    Rakesh Kumar Singh

    Whereever you can see that Input Field for Agent..Click F1, click Technical Information..You can see the Table and Data Element and Field Name..
    Incase it is a structure, click on the data element..click Where Used List..You will get a list of tables.

  • Use of table for field names

    hi guru's
    is there any way to check the table if i am having the data elements.
    i am having some data elements or field name, i just wanted to know, what are all the table which are using this fields.
    se16 is for checking the table, but i want to check the data element or field names.
    ex: i wanted to know what are all the tables is using the BUDAT fields.

    Hi,
    Table <b>DD03L</b> can be used to find out all the tables which are using a particular field.
    Regards,
    Amit
    *Always reward points for helpful answers

  • Data Element of MSGFN field in IDOC (DEBMAS)

    May I know which data element the field MSGFN belongs to. I couldn't find the corresponding in the table KNA1 for example.
    Please help

    Hi
    MSGFN belongs to no structure.
    It defines what to do with each segment.
    Look at WE60 with DEBMAS* you may see the possible values or WE31 with whatever segment.
    eg: E1KNVPM-MSGFN = '003' would mean delete the partner function related in this segment.
    Hope this helps.
    Alain

  • How to find all tables that are associated with a given domain name.

    I want to find all table, excluding the structures, of a given domain name, say, waers.
    Some of the tables are directly contains the domains while others are related with a data element which is connected to that domain.
    I want to find tables for all two case -either tables connected directly to the domain or connected via data element- and exclude the structures.
    thanks in advance.

    Hi,
    The following thing may help you.
    in se11-> search for tables having names like 'DD*'.
    From this list of tables you can find the required table to get domain, data element nad table name.
    one way of doing it:
    SELECT rollname domname
      FROM dd04l
      INTO CORRESPONDING FIELDS OF TABLE it_tab.
    SELECT rollname tabname
      FROM dd03l
      INTO CORRESPONDING FIELDS OF TABLE it_tab1
      FOR ALL ENTRIES IN it_tab
      WHERE rollname = it_tab-rollname.
    SORT it_tab1.
    DELETE ADJACENT DUPLICATES FROM it_tab1.
    LOOP AT it_tab1 INTO wa_tab.
      MODIFY it_tab FROM wa_tab
      TRANSPORTING tabname
      WHERE rollname = wa_tab-rollname.
    ENDLOOP.
    LOOP AT it_tab INTO wa_tab.
      WRITE:/ wa_tab-domname,
              wa_tab-tabname.
    ENDLOOP.
    Regards,
    Manoj Kumar P

  • Problem when using a different data element in Employee Tab Contact Info

    Hello,
    My version: Nakisa OrgChart 4.1
    I created a data element whose fields I wanted to show in the Position details (in the Employee Profile panel, which use the default Static layout 'Employee Tabs'). I am trying to display some contact info, and I used the Employee Tab Contact Info section within Employee Tabs to do it. Somehow the fields captions do not show once I do that (see picture attached). I tried using the 'Employee Tab Data Sheet' section to display the same information, and it works fine.
    Any thoughts what could cause this behavior? All the fields captions have values that were configured in the data element.
    Thanks
    M.E.

    Sorry, just re-reading from the start, you are saying this is purely dependent on the type of section you select. Right?
    With "Employee Tab Contact Info", you say it doesn't show; Have you tried using Field/Value Section (Multiple)?
    Also, when it doesn't work, what <presentation> is referenced in your custom section within "OrgUnitPositionEmployeeDetail.xml" (in \.delta\AppResources\detailconfiguration)?
    Stephen

  • Changing the field names in a CFQUERY object

    Hello, I wonder whether you know the answer to this?
    I want to change the names of the fields in a CFQUERY result
    set after I have retrieved the results from the database (ie. I
    can't use "AS" in the original SQL statement). I can think of 2
    ways to do this - use the query-a-query (CFSQL) feature or just
    build and populate a new query object, as set out below:
    <cfquery name="CustList" datasource="name">
    SELECT CustId,CustName,CustAddress FROM Customers
    WHERE OrderStatus='P'
    </cfquery>
    OPTION#1:
    <cfqueryname="GenericList" type="query">
    SELECT CustId AS Id,CustName AS Name,CustAddress AS Address
    FROM CustList
    </cfquery>
    OPTION#2:
    <cfset GenericList = QueryNew("Id,Name,Address")>
    <cfloop query="CustList">
    <cfset unused = QueryAddRow(GenericList)>
    <cfset unused =
    QuerySetCell(GenericList,"Id",CustList.CustId)>
    <cfset unused =
    QuerySetCell(GenericList,"Name",CustList.CustName)>
    <cfset unused =
    QuerySetCell(GenericList,"Address",CustList.CustAddress)>
    </cfloop>
    Do you know which of these would be more efficient? And is
    there a better way, whereby I can maniplulate the names of the
    columns in the original query (ie. so that I can rename the
    "CustName" field to "Name" and then use "CustList.Name" directly)?
    Thanks!

    Thanks guys!
    If there is a close to zero overhead to the simple
    query-a-query then that seems like the way to go, with no need to
    look for a means of manipulating or modifying the original query.
    The reason I want to change the field names is so that the
    rest of my code can contain references to "CustList.Name" whereas
    otherwise I would have to do something like
    "Evaluate('CustList.#NameField#')" which is horribly messy. And the
    way the original query is generated means I can't use "AS" in it,
    but I still want to use the same code to work with that query
    result and other query results that share similar/related data with
    different field names.

  • How to  Read data base table at runtime

    Hi,
      i have an internal table with two fields they are
       tablename and field name.
    itab has some entries.
    like :
      itab-table name   itab-fieldname
      kna1              kunnr
      mara              matnr
      vbuk              vbeln
      tvak              auart
      i want to read these tables with field names.
    like :
    loop at itab
       select singe * from <itab-tablename> into <jtab>
          where <itab-fieldname > = <dyanmic value from       prog>.
    endloop.
    Is it possible to read the db table in the above scenario.
    Please try to give me the solution.
    Thanks,
    srik

    Hi, try this example program.
    report zrich_0002 .
    data: begin of itab occurs 0,
          tabname(20) type c,
          fldname(20) type c,
          end of itab.
    data: ref_descr type ref to cl_abap_structdescr.
    data: where_clause(100) type c occurs 0 with header line.
    data: it_details type abap_compdescr_tab,
          wa_details type abap_compdescr.
    data: new_table type ref to data,
          new_line  type ref to data,
          it_fldcat type lvc_t_fcat,
          wa_it_fldcat type lvc_s_fcat.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>,
                   <dyn_field>.
    start-of-selection.
      itab-tabname = 'T000'.
      itab-fldname = 'MANDT'.
      append itab.
      itab-tabname = 'T001'.
      itab-fldname = 'BUKRS'.
      append itab.
      loop at itab.
    * Get the structure of the table.
        refresh it_fldcat.
        refresh where_clause.
        ref_descr ?= cl_abap_typedescr=>describe_by_name( itab-tabname ).
        it_details[] = ref_descr->components[].
        loop at it_details into wa_details.
          clear wa_it_fldcat.
          wa_it_fldcat-fieldname = wa_details-name .
          wa_it_fldcat-datatype = wa_details-type_kind.
          wa_it_fldcat-inttype = wa_details-type_kind.
          wa_it_fldcat-intlen = wa_details-length.
          wa_it_fldcat-decimals = wa_details-decimals.
          append wa_it_fldcat to it_fldcat .
        endloop.
        if <dyn_table> is assigned.
          refresh <dyn_table>.
          unassign <dyn_table>.
        endif.
    * Create dynamic internal table and assign to FS
        call method cl_alv_table_create=>create_dynamic_table
                     exporting
                        it_fieldcatalog = it_fldcat
                     importing
                        ep_table        = new_table.
        assign new_table->* to <dyn_table>.
        concatenate itab-fldname '<> ''' '''' into where_clause
                        separated by space.
        append where_clause.
        select * from (itab-tabname) into table <dyn_table>
                      where (where_clause).
      endloop.
    Regards,
    Rich Heilman

  • Converting char data element to curr data element?

    Hi,
    In one of the transaction we have a custom field (Amount field) - but they used char data element  for this currency field.  And now in this field if we don’t supply amount value in Currency  format then the program is dumping.
    I need to solve this situation.
    1. This data element is using in lot of various tables, views and structures. So If I change this data element then how to handle rest of the object?
    Do we have any other solution to solve this issue?
    Please share your opinions.
    Thanks a lot.
    Venkat.

    Hi thanks for your information.
    What ever the field I am talking about in the transaction, the same field has been created in several SAP tables,structures and views. So If I change the data element for this field its going to impact all other objects?
    But I am in the process of finding  why this data element(currency field) has been created in char fomat.
    So if I change in the data element all other tables,views do I need to activate again? or when I activate this data element is it take cares?
    If I want to use field exit, as this is a custom field we can create field exit for this?
    Thanks  a lot for ur information.
    Venkat.

  • Without data element can we create table

    without data element is it possible to create table
    if it is possible how ?
      could u plz expain steps.

    Hi,
    Yes u can create table without data element.
    In that case in place of Data element u need to specify the Predefined type.
    Enter the name of field and the press on Built-In type button. This will disable the data element entry fields and enable the Built-in type field where in u can put the predefined type like CHAR, INT1 etc.
    Regards,
    Himanshu

  • Reading from select-options field into the internal table

    Hi,
      I have to read the low and high ranges from the select-options fields into a field in the internal table in order to update the same field in line item table. since the user may change the screen fields, i need to pass the values directly from the screen and store it in a variable in the internal table. Is there a way to pass both ranges, low and high to one variable which holds the entire range?
    Thanks,
    Sruthy

    Hi,
    In the Selection screen you can directly read the field(Select-option)value using read statement as follows:
    READ TABLE <SELECT-OPTIONS field name> [using index] INTO <work area>.
    After reading you can directly access all the values as follows and can store them in the variables:
    var1 = <work area>-LOW
    var2 = <work area>-HIGH
    var3 = <work area>-SIGN
    var4 = <work area>-OPTION
    as per your requirement.
    I think this will help you.
    <b>Kindly reward if helpful.</b>
    Regards,
    Shakuntala.

Maybe you are looking for

  • ACD 30" Dual Link DVI and MacBook Pro Unibody

    I have the following configuration: ACD 30" Dual Link DVI and MacBook Pro Unibody I am exhibiting some intermittent problems with the 30" display not coming up when I reboot for example and here are some more: 1. MacBook Pro not in clam-shell mode an

  • CRM_ORDER_READ giving no output when it is called in RFC.

    Hi , I have written a FM in CRM which is to be called from R3 and further processing logic is there  in R3. I am facing problem when i call this function from R3.. I am getting no output in pridoc i.e. it is blank. I have checked connection also it i

  • How to print from a kindle fire

    How do you print a webpage from a Kindle Fire

  • HELP PLEASE!!! Computer won't start up

    Help Please! My computer won't start up, when I click the start up button the light comes only once, sounds click (once) and that's it, no power up. Because of the age, I knew that the battery could be the reason, so I ordered the exact same battery

  • Implementing a data guard on VMs

    Hi all, probably this is not the place where I have to post this question, but I need your help about interconnecting two VMs running on separated hosts. My problem is that I can't connect to my VMs (redhat 6.4 32 bit) from a remote host(ping is also