T Table field attributes

Hi All,
Is there any function module to get the custom table fields and associated T table fields
I have requirement to get the fieldname and its full attributes and if any T table is associated the custom table, the i need to get the fieldname and attributes of T table also.
Thanks
aRs

Please check the modified code.
report zrich_0001 .
data: idfies type table of  dfies  with header line.
data: p_txttable type dd08v-tabname.
parameters: p_table type  ddobjname.
call function 'DDIF_FIELDINFO_GET'
     exporting
          tabname        = p_table
     tables
          dfies_tab      = idfies
     exceptions
          not_found      = 1
          internal_error = 2
          others         = 3.
loop at idfies.
  write:/ idfies-fieldname, idfies-position,
         idfies-rollname, idfies-fieldtext.
endloop.
call function 'DDUT_TEXTTABLE_GET'
  exporting
    tabname          = p_table
importing
   texttable        = p_txttable
*   CHECKFIELD       =
skip 3.
call function 'DDIF_FIELDINFO_GET'
     exporting
          tabname        = p_txttable
     tables
          dfies_tab      = idfies
     exceptions
          not_found      = 1
          internal_error = 2
          others         = 3.
loop at idfies.
  write:/ idfies-fieldname, idfies-position,
         idfies-rollname, idfies-fieldtext.
endloop.
Regards,
Rich Heilman

Similar Messages

  • Table field attribute - nullable

    Hi gurus!!
    We have a problem with an attribute of a table field.
    When we create a table field, depending on the data type we specifiy (CHAR, RAW, NUMC...) the system indicates the nullable attribute to YES or NO.
    We don't know if the nullable attribute depends of the data type and if we can change the value of this attribute from SAP.
    We see the nullable attribute value directly from DB2 console.
    We would like to change this value from SAP, we don't know if we must do something when we create the table field...
    Thank you very much in advanced,
    Edorta

    Hi Edorta.
    I suggest, This issue needs to be taken great interest and research.
    To initiate, I suggest.
    We must must not include any default values as they may lead to nullablility.
    By Java, maybe Webdypro integration this problem can be tackled.
    I am still researching on this problem you are facing.
    Regards Harsh

  • Usage of TRM Field attributes: table name in BRF+

    Hi,
    in the customizing activity SM34 - VC_FMCA_TRM_SCENARIO (Define Forms) you can define in the "TRM Fields Attributes" folder for each field the Setting for BRFPLUS where you should write a Table Name.
    The name you enter in this field is used by BRFPLUS_MANAGER.
    Could you please explain for what and when is useful this customizing?
    Thanks.
    Miroslav

    As explained in the IMG activity documentation:
    " To compare values from different versions of a form in your Tax Processing Web Dynpro application, you select the form view field, double-click the TRM Fields Attribute entry on the left-hand side and make the required entries.
    7. In the TRM Fields Attribute area you can also define which form fields you want to analysis in BW. If you mark the extraction-relevant field, the system automatically defaults the field name. The derivation of this field name is done via event P343. The system shows this field name in the DataSource as well as in the program that generates the DataSource for an ISR form. For more information, about this program, follow this link.
    If you are using BRFplus as the rules engine for tax returns validation and tax calculation you can enter a table name for form fields. Customizing activity Define BRFplus Objects for Form Bundles generates one BRFplus data object of the type 'table' for all fields assigned to one table name.
    Caution:
    Be very careful when assigning fields to table names as you can neither undo the assignment nor use this field for any other assignment."
    I think it's self explanatory....
    Kind regards

  • How do I write a select statement to see if table field is in variable list

    I was wondering if someone knew the best way to write a query to pull back rows where a table field is found in a a variable string.  I'm using Cold Fusion 10 on Microsoft SQL Server.
    The table has a series of fields such as
    carcode          carname
    G                Garage
    C                Carport
    A               Attached
    D               Detached
    And another query pulls back a field that stores as text all the abbreviations that apply
    I want to pull back all the carnames that would match the abbreviations stored in that field.  I thought I could use a contains line but that does not work.  How do I pull back matches against a variable string... I tried an IN statment but that didn't work.
    CFQUERY...
    Select carname from CarTable WHERE CONTAINS (carcode, '#query.carlist#') does not work. 
       select carname from CarTable WHERE CONTAINS(carcode, 'G,A')
    I'm stumped.  The list of abbreviations could be very LOOOONG or short and I just need to translate those abbreviations into the full names by grabbing it from another table.  It isn't just one abbreviation so I can't use LIKE in the one to one sense.
    Thank you so much.

    If you have records with these values,
    G,A
    0
    then your first mistake is that you designed your database poorly.  Storing lists in a single field is essentially stroring unuseable data.  A one to many relationship is better.  If you don't know what that is, I've heard good things about the book, Database Design for Mere Mortals.
    Next, this syntax, #queryname.car_storage#, only returns the first record.  To get all the records, use the valuelist function.
    Next, in sql, if you have a list of strings, each one has to be quoted.  Something like this.
    where myfield in ('a', 'b', 'c')
    The best way to achieve this in ColdFusion is to use the cfqueryparam tag with the list attribute set to yes.

  • Dynamic value help for a table field to fill two fields, how to?

    Hi all gurus,
    In SRM 7 I defined a dynamic value help for a single field (ZZ_PROLE_R3) of my header custom table.
    That's the code from WDDOMODIFYVIEW in the webdynpro /SAPSRM/WDC_DODC_CT, view V_DODC_CT:
    DATA: lo_tabnode        TYPE REF TO IF_WD_CONTEXT_NODE.
          DATA: lo_tabnode_info   TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
          DATA: tab_value         TYPE WDR_CONTEXT_ATTR_VALUE_LIST,
                wa_value          TYPE WDR_CONTEXT_ATTR_VALUE.
          lo_tabnode = wd_context->GET_CHILD_NODE( name = 'THCUS' ). "the custom table node
          lo_tabnode_info = lo_tabnode->get_node_info( ).
          wd_this->GET_VALHELP_ZZ_PROLE_R3( EXPORTING iv_guid = lv_guid
                                            IMPORTING ZZ_PROLE_R3_VALHELP = tab_value ). "this method returns the dyn value table
          lo_tabnode_info->set_attribute_value_set( name = 'ZZ_PROLE_R3'
                                                     value_set = tab_value ).
    The method GET_VALHELP_ZZ_PROLE_R3 dynamically builds the value help table tab_value; such table is made up by two fields:
    value : contains the value of the field
    text   : contains a description of the value
    The above solution works; now I'd like to enhance it. The custom table THCUS contains also a field called ZZ_PROLE_R3_DESC, which represents the description of ZZ_PROLE_R3. It is, exactly, the TEXT field in tab_value.
    So I'd like to do as follows:
    - the user clicks on the search help for ZZ_PROLE_R3 field of the table;
    - the above described value help appears;
    - after the selection, both ZZ_PROLE_R3 and ZZ_PROLE_R3_DESC are filled with the selected couple value - text chosen from the value help.
    Could anyone help me achieving such a behaviour?
    Again, a little request... when I open the above value help dialog box, the window itself has a label "Floorplan Manager application for OIF.." that obviously I'd like to redefine (e.g. "Role selection value help"). Is there any way to do that?
    Thanks in advance

    Chris Paine wrote:
    It seems to me - given that your code is in wddomodifyview that you are trying to have different dropdowns per row
    - I'm not sure where you are populating lv_guid - but I'd guess it is an attribute of the row selected? If it isn't then I can't see any reason that you would do this code in wddomodifyview and not wddoinit.
    Hi Chris and thanks for your help,
    lv_guid is the GUID of the document's header; I need to pass it to the method that populates my value help table because the values in it are derived from some fields on the document. (the situation actually is more complex; there's an RFC call on the backend for which the document is intended for to retrieve the data that populate the value help...).
    I'm quite unexperienced on webdynpro and terminology; if dropdown menus are fixed selection option that appears on a field, I guess this is not my case. I did a pair of screenshot to provide an idea of what the solution by now is, and what "I would like to have":
    [Pre-selection (F4 icon on the field in table)|http://imagebin.ca/view/npIsaqF.html]
    [Value Help popup for the field ZZ_PROLE_R3|http://imagebin.ca/view/8fZUh3T.html]
    [Result by now |http://imagebin.ca/view/3PaqdvE.html]
    [Result I'd like to have.|http://imagebin.ca/view/dExR0J.html]
    Chris Paine wrote:
    However - by your comment on the "value help dialog box" I am guessing you are using an input field? If this is the case then I would strongly suggest that you change/enhance the structure of the context node THCUS (btw, better coding practise to refer to it as wd_this->wdctx_thcus when using the get child node construct) so that you refer to an actual SAP ddic search help, if you then associate in the structure the value and text fields then populating the text field should happen automatically. Also you'd have the nice side effect that your value help dialog would be named after the associated ddic search help.
    Thanks for the code suggestion, I'll apply that. For what concerns the context node THCUS... It is, by standard, a node which I can't explictly find in the context for the view V_DODC_CT. The problem is that ZZ_PROLE_R3 and the corresponding description field ZZ_PROLE_R3_DESC of the table must be filled with data retrieved dynamically @ runtime from the backend. So I guess I can't populate a val help referring to a dictionary table/field; I'd rather do as follows:
    - retrieve what's the target backend for the document (to do so, I have to process the document .. that's why the header guid passed to my method);
    - RFC call to a custom method that extracts possible values for the specific backend;
    - bind the ammissible values to the value help.
    Chris Paine wrote:
    I realise that this is rather a lot - so if you have any specific question please do respond - hopefully I or someone else will be able to clarify.
    Thanks again for your help; additional info as well as code examples would be highly appreciated

  • How to know the corresponding Table-fields in R/3 for fields in BW

    Hi,
    We need to enhance the extractor for 0CUSTOMER_ATTR. We have added some new attributes in 0CUSTOMER in BW and we want to know the corresponding Table-Fields in R/3 from where we can populate the values.
    The list of fields in BW is as follws. All are 0CUSTOMER attributes.
    I am searching on the internet. If you know any link/place where I can find the corresponding fields, please let me know.
    0AF_CUSTDC
    0AF_CUSTID
    0CITY_2
    0DB87SIC1
    0DBANSALES
    0DBAREACOD
    0DBCTRYCOD
    0DBCTYNAM
    0DBCUSTAT
    0DBDISTRCOD
    0DBEMPBND
    0DBEMPTOT
    0DBGUDUNS
    0DBHQDUNS
    0DBBLGLSTAT
    0DBLOCACOD
    0DBREGCOD
    0DBSALBND
    0DBSECTCOD
    0DBYRSBND
    0DBYRSTD
    0DB_MAKTCOD
    0DB_MATCDS
    0FAX_NUM
    0ID_TXNUMB3
    0ID_XCPD
    0LANGU
    0POBOX_LOC
    0SORTL
    0TAX_NUMB2
    0DBTRDSTYL
    0DBADDRES1
    0DBADDRES2
    0DBCTRYNA
    0DBSTPRCOD
    0DBPOSTCOD
    0DBNATID
    0DBNATIDCO
    0DBTELPHON
    0DBCEONAME
    0DBLNOFBUS
    0DBANSLUS
    0DBCURNCCO
    0DBEMPHERE
    0DBSUBCODE
    0DBHQNAME
    0DBHQCTYNM
    0DBHQSTPR
    0DBHQCTRYN
    0DBULDUNS
    0DBULNAME
    0DBULCTYNM
    0DBGUCTRYN
    0DBGUCTRYC
    0DBGUNAME
    0DBNUMFAM
    0DBHIERCO
    0DBFAMUPDT
    0DBBUSNAME
    0DB_MATCH
    Thanks,
    Naveen Choudhary

    Naveen,
    Check http://help.sap.com/search/highlightContent.jsp
    Also see Re: 0customer_attr enhancement
    If the source fields in R/3 are standard, you should be able to find the mapping in the help documentation. If its extension field, then you got to see which extractor (based on the base table extension) suits the best and extend it accordingly else create a new generic extractor.
    Hope it helps

  • List of SQL tables and attributes used in SSRS reports

    Hi,
    I have around 450-500 reports deployed in SSRS reporting server.
    All these reports are built on SQL from multiple databases, and these databases are having unnecessary tables and attributes.
    My requirement is to clean the unused tables and attributes from the databases. For this, I need the list of SQL tables and attributes used in these 450-500 SSRS reports.
    Is there any way to get this data?
    Regards,
    RK

    Hi RK,
    According to your description, you want to get a list of the tables and attributes used in all reports.
    In your scenario, you can query the ReportServer.dbo.Catalog table to get Report name, data source name, dataset name, and query used in the dataset with query below:
    WITH XMLNAMESPACES ( DEFAULT 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition', 'http://schemas.microsoft.com/SQLServer/reporting/reportdesigner' AS rd )
    SELECT ReportName = name
    ,DataSetName = x.value('(@Name)[1]', 'VARCHAR(250)')
    ,DataSourceName = x.value('(Query/DataSourceName)[1]','VARCHAR(250)')
    ,CommandText = x.value('(Query/CommandText)[1]','VARCHAR(250)')
    ,Fields = df.value('(@Name)[1]','VARCHAR(250)')
    ,DataField = df.value('(DataField)[1]','VARCHAR(250)')
    ,DataType = df.value('(rd:TypeName)[1]','VARCHAR(250)')
    --,ConnectionString = x.value('(ConnectionProperties/ConnectString)[1]','VARCHAR(250)')
    FROM ( SELECT C.Name,CONVERT(XML,CONVERT(VARBINARY(MAX),C.Content)) AS reportXML
    FROM ReportServer.dbo.Catalog C
    WHERE C.Content is not null
    AND C.Type = 2
    ) a
    CROSS APPLY reportXML.nodes('/Report/DataSets/DataSet') r ( x )
    CROSS APPLY x.nodes('Fields/Field') f(df)
    ORDER BY name
    For more information, please refer to this similar thread:
    Extract metadata from report server database
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Specification table & Field

    can any body guide me  what is  table & field for specification
    what is table and field  for  specification and  attribute characteristics ( selected set) in result recording  screen,because i want to data in alv report numerical and non numaricals

    Hi,
    From your problem statement it is not very clear as what you are expecting. Are you talking about Functional Specification Requirements which will be later analyzed by Technical Consultants to covert them in to Technical Specification.
    It would be great if you give some more details so that it will be possible to give some more light on your query.
    Hope this helps.
    Thanks,
    Samantak

  • Changing LOV's  table-field size

    Hi,
    I'm using Jdeveloper 11g.
    Knowing that the tag below is used in LOV, Now I need to know how to change the LOV's table-field sizes? (I'm using the model-based LOV, and it's reading the attributes from the view object)
    <af:inputListOfValues
    model="#{bindings. .listOfValuesModel}"/>
    I need to customize the size of LOV's table-field manually, or based on the attribute's UI hint.
    To do so, I have written the code below in the backing-bean:
    RichInputListOfValues lov = (RichInputListOfValues)launchPopupEvent.getComponent();
    FacesCtrlLOVBinding.ListOfValuesModelImpl lovModel = null;
    lovModel = (FacesCtrlLOVBinding.ListOfValuesModelImpl) lov.getModel();
    TableModel tm = lovModel.getTableModel();
    java.util.List<oracle.adf.view.rich.model.ColumnDescriptor> l = lovModel.getItemDescriptors();
    But the "ColumnDescriptor" is an abstract class, and I cannot customize the size of the table.
    I need to know if it's possible to do it or not?
    Thanks in advance,
    Shadi Khani
    Thank you in advance,
    Shadi Khani
    Edited by: ShadiKhani on Aug 10, 2010 6:07 AM

    Hi ,
    i Know my answer is too late , just today i see the post .
    You can change content Size for LOV by going to look up view object --> then to attribute ---> UI hint ---> form UI hint but the size of component in "Dispaly width"

  • Field Attribute Error

    Hi All,
    i am working on a upgrade project from 46c to ECC 6.
    we are facing field attribute error "No write access to reference CONTROL takes place".
    the error is been pointed in data declaration ' DATA: CONTROL  TYPE REF TO I_OI_OLE_CONTAINER_CONTROL."
    can anyone suggest solution for this?

    Hi,
    I am using table element, I would like to explain my problem with an example.
    now suppose there are 5 rows and 3 columns in my table element with all the fields mandatory, and at runtime i fill up the table columns while keeping any fields empty. Now my requirement is to highlight those perticular cells which are empty.
    I have written my validation code in one of the component controller method.
    Pls suggest.
    I am pasting teh code snippet.
    * get all declared attributes
      node_t_bknvi->get_static_attributes_table(
        IMPORTING
          table = tabl_t_bknvi ).
      LOOP AT tabl_t_bknvi INTO stru_t_bknvi.
        IF stru_t_bknvi-taxkd IS INITIAL.
    *     report message
          CALL METHOD l_message_manager->report_attribute_error_message
            EXPORTING
              message_text   = 'Input Required Fields'
              element        = elem_t_bknvi
              attribute_name = 'TAXKD'
    *        PARAMS         =
    *        MSG_USER_DATA  =
        ENDIF.
      ENDLOOP.

  • Only multiple entries in BP when creating a new table/field with EEW

    Hi,
    I am creating new tables/fields for BP in CRM 4.0 using transaction EEWB.
    This is working quite well but the fields that appear allows multiple entries per BP. I just want one single entry per BP.
    The wizard talks about multiple options but I cannot see how I define that if it should be a single entry or multiple.
    Any idea how to achieve that?
    Thanks,
    //anders

    Hi
    As i know the fields will be multiple only, u can try for 'default'
    and also try in the wizard in step 2
    The Process of EEW will be like this
    1. To add new fields to the business partner, use the business object Business Partner (BUPA) and create an enhancement of the type "Add New Fields". A wizard helps you define the individual enhancements and provides you with the necessary information for each step.
    2 For each field, you must define the field name, data type and, if necessary, the field length.
    3 For each field, define whether a check table should be available.
    4 For each field, you must also determine whether it should be transferred to SAP BI or to CRM Field Applications.
    5 In the last wizard screen, the system shows you an overview of the fields you defined, together with their associated attributes.
    6 To start generation, choose Complete.
    I hope u can solve ur prob in Step 2 data type
    cheers
    Manohar

  • Unable to access the data and table fields from handheld

    Hi,
    I've created a Testing.sdf file on the local pc using SQL Server Management Studio, creating table, fields and insert some data. in local pc i can access the the data as normal. the problem is after i moved the file to handheld device i
    cannot access the data within the table, it shown error 'Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)' . I tried to google it, but still got no solution.
    Thanks,

    'Name Space
    Imports System.Data.SqlServerCe
    'String Connection
    'Data Source = D:\SKUDWN3 .sdf'
    Public Sub CreateDB(ByVal StrConn As String)
            'Declaration
            Dim cn As SqlCeConnection = Nothing
            Dim cm As SqlCeCommand = Nothing
            Dim SQLEngine As SqlCeEngine = Nothing
            Dim rs As SqlCeResultSet = Nothing
            Dim rec As SqlServerCe.SqlCeUpdatableRecord = Nothing
            'Tables -
            Const TB_SKUDWN3 As String = "SKUDWN3"
            'Fields TB_SKUDWN3
            Const FL_SKUDWN3_UPC As String = "UPC"
            Const FL_SKUDWN3_SKU As String = "SKU"
            Const FL_SKUDWN3_LD As String = "LD"
            Const FL_SKUDWN3_SD As String = "SD"
            Const FL_SKUDWN3_AN As String = "AN"
            Const FL_SKUDWN3_Price As String = "Price"
            Const FL_SKUDWN3_GST_FLAG As String = "GSTFLAG"
            'Create Database
            SQLEngine = New SqlCeEngine(StrConn)
            SQLEngine.CreateDatabase()
            SQLEngine.Dispose()
            'Open Connection
            If IsNothing(cn) Then cn = New SqlCeConnection(StrConn)
            If cn.State = Data.ConnectionState.Closed Then cn.Open()
            cm = cn.CreateCommand
            'Create Table, Fields
            cm.CommandText = "CREATE TABLE " & TB_SKUDWN3 & " (" & FL_SKUDWN3_UPC & " NVARCHAR (13)," & _
                " " & FL_SKUDWN3_SKU & " NVARCHAR (9), " & FL_SKUDWN3_LD & " NVARCHAR(30)," & _
                " " & FL_SKUDWN3_SD & " NVARCHAR (18), " & FL_SKUDWN3_AN & " NVARCHAR(15), " & _
                " " & FL_SKUDWN3_Price & " NVARCHAR (10), " & FL_SKUDWN3_GST_FLAG & " BIT)"
            cm.ExecuteNonQuery()
            'Close Connection
            cm = Nothing
            If Not IsNothing(cn) Then
                If cn.State = ConnectionState.Open Then cn.Close()
                cn.Close()
                cn.Dispose()
            End If
        End Sub
    'The DB was successfully created, but after moving to Handheld the fields of table can't be accessed

  • Which table field I can confirm if the PO has done invoice receipt

    Hi,
    From which table field, I can confirm the PO has done invoice receipt. and in case of that with reference a PO, I have done the IR, but it was reversed, which means PO has not done invoice receipt.
    For this case, I don't want to read table EKBE to retrieve the invoice number, the read table RBKP to judge if there is a reverse IR for it.
    If there any status table field which indicate if the PO has done invoice receipt.
    Many thanks,
    Aries

    Hi Raj,
    For invoice receipt and credit memo, EKBE-BEWTP is all set with 'Q', so if there is reversed invoice. Also you can retrieve data from EKBE. But actually the PO also needs a invoice receipt. So it can not meets the requirement.
    Regards,
    Aries

  • How to Track the changes made to the custom table field value

    I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
    Thanks & Regards,
    Kranti

    Hi Satya,
    These are the steps you've to do.
    1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
    2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
    3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
    4. You can keep track of the changes made to the table by monitoring these tables.
    Regards
    Anil Madhavan

  • F110 - Grouping the vendor invoices by BSEG table fields

    Hi,
    I want to group the vendor invoices while making the payment through F110,  based on a BSEG table field. The settings in Grouping Key configuration (OBAP) only allows me to choose the fileds from BSIK table and not possible to select the fields from BSEG table.  Is there any other way to group the vendor invoices based on BSEG fileds?  How can we achieve this requirement in SAP?
    Thanks and Regards
    Koteswararao padarti

    Hi,
    I created the substitution and also grouping key based on the BSIK-KIDNO filed. But the system is not able to group the vendor invoices by payment reference.  I already tried the following options
    Seperate Payments for each Ref in FBZP settings
    Can anyone let me know what is missing in the configuration to group the invoices for payment by payment reference.
    Regards
    Koteswararao Padarti

Maybe you are looking for