Replacement of Function module in ECC 6.0

Hello All,
The Function module 'NAMETAB_GET' is shown to be obsolete in ECC 6.0 .
Please suggest which of the function modules among 'DDIF_FIELDINFO_GET'  and 'DDIF_NAMETAB_GET' can be used as a replacement for the same.
Also ,it would be helpful if the use of these function modules is mentioned.
Best Regards,
Lavanya.

use          'DDIF_NAMETAB_GET'
Functionality
This function module reads the runtime information (nametab) of a table or in general of any type of the ABAP Dictionary. However, the runtime information does not contain any text. You should use the function module DDIF_FIELDINFO_GET to read the runtime information including text (or to determine the domain for table fields).
The types of the ABAP Dictionary are divided into data elements, structured types and table types.
A structured type consists of a sequence of components that are each identified by a unique name. A type is defined for each of these components. In addition to the types of the ABAP Dictionary, you can also use the built-in types of the R/3 System (CHAR, NUMC,...) to define the types of the components.
All its components as well as the fields of its structured components are called the fields of a structured type. The name of a field no longer uniquely identifies it within a structured type. For example, a structured type S could have a structured component F, which itself has a component called F. In this case S would have two fields with the name F. For this reason, its long field name is used to identify a field within a structured type. The long field name is the same as the name of the components for the components of the structured type itself. For the fields of a structured component, the long field name is a concatenation of the name of this structured component, the separator '-' and the long field name of the field in the structured component.
A field whose type is defined by a data element or a built-in type is also called an elementary type. A structured type whose components are all defined as elementary types is called flat. All other structured types are called deep.
This module gets the runtime information for the type whose name is defined in the IMPORT parameter TABNAME. If there is no such type, the exception NOT_FOUND is triggered.
Caution: If the IMPORT parameter ALL_TYPES is not set, only flat structured types are taken into consideration. In this case the exception is also triggered if the specified type is a data element, deep structure or a table type.
If the IMPORT parameter LFIELDNAME is not initial, only structured types having a field with the long name defined by LFIELDNAME are taken into consideration. The exception NOT_FOUND is triggered for all other types.
The internal representation of the runtime object is returned in parameters X030L_WA and X031L_TAB. Depending on the type category, this information is then edited in the corresponding parameters (see documentation about the parameters).
Notes
1. If parameter LFIELDNAME is not initial, X031L_TAB nevertheless contains the description of all fields of the structured type. The decoded form is only determined for the specified field, and the result is copied to DFIES_WA instead of DFIES_TAB. Since decoding for all the fields often takes up most of the runtime for this module, you should set parameter LFIELDNAME if you only need information about one field of the structured type.
This module gets the runtime information about a type. This means that only the currently active version of the type is taken into consideration. If none exists, the exception NOT_FOUND is triggered.
The corresponding function module DDIF_<object type>_GET is used to read the actual definition of a type of the ABAP Dictionary.
Caution: These read modules are much less efficient than the modules for defining the runtime information. You should therefore only use them if the runtime information is not sufficient.
2. The documentation for IMPORT parameter GROUP_NAMES describes how to handle named includes.

Similar Messages

  • Replacement for Function Module 'SEND_TABLE_TO_EXCEL' in ECC 6.0

    Hi Friends,
    Can anybody help me to find the replacement of Function Module <b>'SEND_TABLE_TO_EXCEL'</b> in ECC 6.0.
    The Function Module exists in 4.6b. But it is no longer available in ECC 6.0.
    Regards,
    Vaitheeswaran.

    If you want to download an internal table to excel format you can use the <b>"GUI_DOWNLOAD"</b> function.Some sample code is as below.
    types: begin of gs_xcel,
            vkorg      type vbak-vkorg,
            del1(1)    type c,
            vtweg      type vbak-vtweg,
            del2(1)    type c,
            zzposmgr   type zzsdacspo-zzposmgr,
            del3(1)    type c,
            zz_region  type zzsdaregn-zz_region,
            del4(1)    type c,
            ename2     type pa0001-ename,
            del5(1)    type c,
            zzcsospos  type vbak-zzcsospos,
            del6(1)    type c,
            ename      type pa0001-ename,
            del7(1)    type c,
            vbeln      type vbfs-vbeln,
            del8(1)    type c,
            text       type t100-text,
            del9(1)    type c,
            msgv1      type vbfs-msgv1,
            del10(1)   type c,
            auart      type vbak-auart,
            del11(1)   type c,
            erdat      type vbsk-erdat,
            del12(1)   type c,
            wadat_ist  type likp-wadat_ist,
           end of gs_xcel.
    data: gt_xcel type table of gs_xcel,
          gws_xcel type gs_xcel.
    data: v_tmp_name type string,
    v_tmp_name = 'c:\sdrinver.xls'.
        call function 'GUI_DOWNLOAD'
         exporting
         BIN_FILESIZE                    =
           filename                        = v_tmp_name
          FILETYPE                        = 'ASC'
         APPEND                          = ' '
          WRITE_FIELD_SEPARATOR           = ','
         HEADER                          = '00'
         TRUNC_TRAILING_BLANKS           = ' '
         WRITE_LF                        = 'X'
         COL_SELECT                      = ' '
         COL_SELECT_MASK                 = ' '
         DAT_MODE                        = ' '
         CONFIRM_OVERWRITE               = ' '
         NO_AUTH_CHECK                   = ' '
         CODEPAGE                        = ' '
         IGNORE_CERR                     = ABAP_TRUE
         REPLACEMENT                     = '#'
         WRITE_BOM                       = ' '
         TRUNC_TRAILING_BLANKS_EOL       = 'X'
         WK1_N_FORMAT                    = ' '
         WK1_N_SIZE                      = ' '
         WK1_T_FORMAT                    = ' '
         WK1_T_SIZE                      = ' '
       IMPORTING
         FILELENGTH                      =
         tables
           data_tab                        = gt_xcel
         FIELDNAMES                      =
        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

  • Alternative Function module in ECC 6.0

    Hi,
    The function module FI_DOCUMENT_ARCH_JUMP_HEAD_SGL  and FI_DOCUMENT_ARCH_READ_DETAILS  is available in 4.6c but is not available in ECC 6.0.
    I have to import a progam from 4.6 to ECC 6.0.with uses this function module .
    Please let me know alternative function module in ECC 6.0
    Thanks
    Deepa

    That's why it's never recommended to use the FMs that have not been released to the customer... You might be able to copy FMs as Z... objects from 4.6 into ECC 6.0. However, it's possible that underlying functionality has changed a lot and it just won't work.
    Instead of asking for a replacement FM you might want to explain what exactly you're trying to achieve, then someone might be able to provide an alternative (not necessarily an FM).

  • Error while creating webservice from function module in ECC

    Hi
    while creating a web service out of a function module in ECC, in the configure service section we get a message saying ' Remember that the service does not have any runtime configuration and therefore cannot be used. Create the Web service configuration in the NetWeaver Admninistrator (transaction WSADMIN2).'
    instead of check box 'release for runtime'.
    Our ECC at release 7 patch level 22.
    Checked in SCICM, SICF teh service and the folder are active.
    Please suggest if we are missing on anything
    Regards
    Kumar

    In new version on ECC, the runtime configurations needs to be performed in transaction SOAMANGER.
    On executing the transaction, it opens a browser. The important configurations to be performed are:
    1. Configure J2EE server and host. You can choose to provide the ECC server and host
    2. Administration of the service in "Single Service Administration". The navigation path may differ depending of the ECC versions. But it is related to administration of the services.
    Once done, check the WSDL generated.
    Use this WSDL in the NWDS.
    Regards,
    Sharath

  • /CAB* function modules in ECC 6.0 DIMP

    Hi all,
           The /CAB 4.6 objects are does not exist in ECC 6.0. I am working on upgradation project. There are many /CAB function modules used in 4.6 version. How can i get the compatable function modules in ecc 6.0. Is there anyway to find the compatable funciton modules in ECC?
    list of missing function modules:
    /CAB/MM_MAT_PRUEFEN
    /CAB/J_4CM_READ_SINGLE
    /CAB/J_3CB_READ_SINGLE
    /CAB/READ_MRP_ALLOCATION
    /CAB/J_5CL_READ_SINGLE
    /CAB/PP_MD_MCHB_J_5CO_FILL
    /CAB/PP_MD_BDBS_ENQUEUE
    /CAB/CHANGE_MRP_STATUS
    /CAB/PP_MD_FAUF_WM_BEARBEITEN
    /CAB/READ_MRP_ALLOCATION
    /CAB/CAFM_J_5CO_AUS_J_5CX
    /CAB/PP_MD_MSKA_J_5CO_FILL_ALL
    /CAB/SYNC_ENTRIES_SELECT
    /CAB/J_5CO_READ_SINGLE
    /CAB/J_5CX_READ_SINGLE
    /CAB/PP_MD_BDBS_ENQUEUE
    /CAB/PP_MD_BDBS_CHECK_RES
    /CAB/CHANGE_MRP_STATUS
    /CAB/MRP_CONTROL_2
    /CAB/J_2CS_READ_SINGLE
    /CAB/MSLB_READ_SINGLE
    /CAB/MSKA_READ_SINGLE
    /CAB/MSKU_READ_SINGLE
    /CAB/MKOL_READ_SINGLE
    /CAB/MCHB_READ_SINGLE
    thanks,
    Prakash.
    Edited by: Prakash Reddy on Apr 28, 2010 10:32 AM

    Hi,
    Theses function modules are Cable specific as i said before. i have solved the issues by using the existing ECC function modules and is working fne.
    Thanks & Regards,
    Prakash .s

  • Function module in ECC 6.0

    Hi Experts ,
          I have an issue in using Function module  in ECC 6.0 , while passing data in table parameter is showing an error as ' Table parameter is obselete'. Can u please suggest any other way of passing   table in function module.
    <removed_by_moderator>
    Edited by: Julius Bussche on Oct 20, 2008 10:35 AM

    use table types:
    types: ty_struc type ...,
           ty_tab type standard table of ty_struc.
    data: it_tab type ty_tab.
    call function ...
      changing it_tab
    Don't use TABLES parameters any more, they have implicit header lines, which is a no-no in ABAP Objects context.
    Thomas

  • WS_FILENAME_GET is obsolete function module in ECC 6.0

    Hi Guys,
    The function module "WS_FILENAME_GET" was obsolete in ECC 6.0, could you please suggest me which is relevant function module in ECC 6.0.
    Thanks,
    Gourisankar.

    Hello,
    Take a look at class CL_GUI_FRONTEND_SERVICES.
    Regards,
    John.

  • Absolete Function Modules for ECC 6.0

    Hi guys,
    iam doing upgrade project, i want know absolete for this function modules
    CALL FUNCTION 'NAMETAB_GET'
    EXPORTING
    TABNAME = 'BKPF'
    TABLES
    NAMETAB = HNAMTAB
    EXCEPTIONS
    OTHERS = 0.
    CALL FUNCTION 'WWW_USER_AUTH_MESSAG'
    plz give me suggestion for me.

    Hi Veera,
    To find obsolete function modules in ECC 6.0.
    The table is RODIR.
    Go to SE11.
    Give table name as RODIR.
    click on display.
    Then , in the selection criteria.......
    For the field OBJECT TYPE give FUNC
    and for OBSOLETE give 'X'
    Execute and you will be able to see all the function modules which are obsolete.
    Regards,
    Hari Kiran

  • Obsolete function module in ECC 6.0  - BAPI_COSTESTIMATE_CREATE_SPLIT

    Hi Guys,
    The above function module obsoleted in ECC 6.0, I need related function module in ECC 6.0.
    Could you please suggest me, which is the related function module in ECC 6.0?
    Please take a high priority. Advance thanks guys.
    Thanks,
    Gourisankar.

    Hello,
    Take a look at class CL_GUI_FRONTEND_SERVICES.
    Regards,
    John.

  • How to replace ws_filename_get function module to file_open_dialog

    how to replace ws_filename_get function module to file_open_dialog

    Here it is,
    DATA: i_file_name TYPE FILETABLE,
          w_file_name TYPE FILE_TABLE,
          v_rc TYPE i.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      EXPORTING
        INITIAL_DIRECTORY       = 'C:\'
      CHANGING
        file_table              = i_file_name
        rc                      = v_rc
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        others                  = 4.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE i_file_name INTO w_file_name INDEX 1.
    No wthe w_file_name will contain the file name.
    Regards
    Kathirvel

  • Function Module - SAP ECC to BODS

    Hi Experts - I have one function module in ECC system which is RFC enabeled and I have imported that in BODS.
    Its showing me under function under ECC Data Store.
    I am not able to drag it into normal data flow  ,,,, Why ?
    Is there any special data flow is required to use this.
    I want to put the output of this function module in a flat file ? can i achieve this ? so function module to transform and then flat file.
    Thanks
    R

    You need to call the function via a Schema Out function within a Query transform just like you would call a custom function, i.e. right-click in the Schema Out panel and select 'New Function Call' then in the function wizard you must select your ECC datastore from the 'Function Categories' list and then you should see your imported function on the right, then follow the wizard to define the input parameters and choose which output parameters you want output as colums in the query (and can then write to a flat file).  Just be aware that if one of the output parameters is a table then you will need to unnest the table schema in a second query transform before wrtiting to the file.  Oh and just use a 'Row_Generation' transformation to generate one dummy row as a source.

  • Replacement of Function Module 'www_get_mime_object' in ECC 6.0

    HI,
    I need an exact replacement for the Function Module 'www_get_mime_object' in ECC 6.0.
    Please help it out.
    Regards,
    Ashok.

    hey

  • Need Help in Replacement of Function Modules

    Hello all,
    I am working on Upgrade project from ECC 5.0 to ECC 6.0. I am facing problems for Replacement of two Obsolete Function Modules. Please give me a solution. FM's  are as follows.
    1) SET_AUTHORITY : This FM is obsolete in ECC 6.0 and there is not alternative FM present in help.sap.com or any other web portal.
    2) WS_QUERY : Here as per my knowledge we use class CL_GUI_FRONTEND_SERVICES and methods FILE_EXIST or DIRECTORY_EXIST as per the parameters in old FM. For parameter 'FS' we use 'FILE_EXIST' and 'DS' we use 'DIRECTORY EXIST'.
    But in our program prev. FM has parameter 'OS' i.e. Operating System.
    But there is not method called 'OS EXIST' or similar. Please suggest suitable method.
    Thanking you all in anticipation.
    Best Regards,
    Harish

    Hi Harish,
                       I too could not find any replacement for SET_AUTHORITY
    Obsolete Modules can be used in newer versions, but it is not supported by SAP in case of any technical issues.If you still need a replacement, you can replace it by the source code in the FM SET_AUTHORITY itself and modify according to your needs.
    Below is the source code of FM SET_AUTHORITY, so you can modify it according to your requirement.
      DATA: l_actvt  TYPE tact-actvt,
            l_hier   TYPE STANDARD TABLE OF sethier WITH HEADER LINE.
      CASE action.
        WHEN 'A    '.
          l_actvt = activity-add.
        WHEN 'C    '.
          l_actvt = activity-modify.
        WHEN 'D    '.
          l_actvt = activity-display.
        WHEN 'E    '.
          l_actvt = activity-delete.
        WHEN 'UD   '.
          l_actvt = activity-display.
      ENDCASE.
      CALL FUNCTION 'G_SET_TREE_IMPORT'
           EXPORTING
                no_descriptions  = 'X'
                no_rw_info       = 'X'
                setid            = set
                tabname          = table
                root_header_only = 'X'
           TABLES
                set_hierarchy    = l_hier
           EXCEPTIONS
                OTHERS           = 0.
      READ TABLE l_hier INDEX 1.
      IF sy-subrc <> 0.
        CLEAR l_hier.
        l_hier-shortname = set.
      ENDIF.
      CALL FUNCTION 'G_SET_AUTHORITY_CHECK'
           EXPORTING
                actvt  = l_actvt
                authgr = l_hier-authgr
           EXCEPTIONS
                OTHERS = 1.
      IF sy-subrc <> 0.
        CASE action.
          WHEN 'A    '.
            MESSAGE e827 WITH l_hier-shortname RAISING no_authority.
          WHEN 'C    '.
            MESSAGE e828 WITH l_hier-shortname RAISING no_authority.
          WHEN 'D    '.
            MESSAGE e829 WITH l_hier-shortname RAISING no_authority.
          WHEN 'E    '.
            MESSAGE e830 WITH l_hier-shortname RAISING no_authority.
          WHEN 'UD   '.
            MESSAGE e831 WITH l_hier-shortname RAISING no_authority.
        ENDCASE.
      ENDIF.
    If you need help in replacing in the above source code, please post your code here so that I can help you in modifying accordingly.
    Regards,
    Vasuki

  • Replacement for FUNCTION 'DYNP_VALUES_UPDATE'in ecc 6.0

    Hi all!
    Can any one please tel me the replacement for FUNCTION 'DYNP_VALUES_UPDATE'which is oboselete in ecc 6.0. I need the revised function module for this in ecc 6.0.

    Where do you have the information from that this function module is obsolete in ECC6. Neither the shortext nor any comments in the code nor the function module documentation states that this is obsolete (which is usually does if it is).
    The only thing that the function module documentation says is that the solution was revised as well as the docu, therefore I can't see why this function module would be obsolete.
    Hope that helps,
    Michael

  • Replacement for FUNCTION 'CONVERT_DATE_INPUT' in ecc 6.0

    Hi all!
    Can any one please tel me the replacement for FUNCTION 'CONVERT_DATE_INPUT' which is oboselete in ecc 6.0. I need the revised function module for this in ecc 6.0.

    Try with this function module - /SAPDII/SPP05_CONVERT_DATE
    Reward if it is useful.
    Thanks,
    Srinivas

Maybe you are looking for