Replacement function modules/method for obsolete Funtion Modules in ECC 6.0

Advertisement
We are working on Upgrade Project and need your help in finding the replacement Function module/ Methods for following obsolete Function Modules:
   1.   GET_FIELDTAB
   2.   WS_EXCEL
   3.  HR_DISPLAY_BASIC_LIST
   4.  LOG_SYSTEM_GET_RFC_DESTINATION
   5.  HELPSCREEN_NA_CREATE
   6. TR_RELEASE_COMM
Thank in Advance.
Sarita.
Edited by: Sarita Yalamati on Mar 28, 2008 1:23 PM
Advertisement

Replay

Hi sarita,
for GET_FIELDTAB use 'DDIF_NAMETAB_GET'..here is sample code
  CALL FUNCTION 'GET_FIELDTAB'
       EXPORTING
            LANGU               = SY-LANGU
            TABNAME             = C_STRUCTURE_NAME
            WITHTEXT            = ' '
       TABLES
            FIELDTAB            = IDFIES
       EXCEPTIONS
           INTERNAL_ERROR      = 01
            NO_TEXTS_FOUND      = 02
            TABLE_HAS_NO_FIELDS = 03
            TABLE_NOT_ACTIV     = 04.
Replacement :
CALL FUNCTION 'DDIF_NAMETAB_GET'
  EXPORTING
    TABNAME           =  C_STRUCTURE_NAME
  ALL_TYPES         = ' '
  LFIELDNAME        = ' '
  GROUP_NAMES       = ' '
  UCLEN             =
IMPORTING
  X030L_WA          =
  DTELINFO_WA       =
  TTYPINFO_WA       =
  DDOBJTYPE         =
  DFIES_WA          =
  LINES_DESCR       =
TABLES
  X031L_TAB         =
   DFIES_TAB         = IDFIES
EXCEPTIONS
   NOT_FOUND         = 1
   OTHERS            = 2
For WS_EXCEL  use GUI_DOWNLOAD.. here is sample code
CALL FUNCTION 'WS_EXCEL'
EXPORTING
   FILENAME            = 'D:\FILE1.xls'
  SYNCHRON            = ' '
  TABLES
    DATA                = itab
EXCEPTIONS
   UNKNOWN_ERROR       = 1
   OTHERS              = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Repalcement :
data : l_filename type string.
l_filename  = 'D:\FILE1.xls'.
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
  BIN_FILESIZE                    =
    FILENAME                        = l_filename
  FILETYPE                        = 'ASC'
IMPORTING
  FILELENGTH                      =
  TABLES
    DATA_TAB                        = itab
  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
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
  EXPORTING
    DOCUMENT               = 'D:\FILE1.xls'
   APPLICATION            =
   PARAMETER              =
   DEFAULT_DIRECTORY      =
   MAXIMIZED              =
   MINIMIZED              =
   SYNCHRONOUS            =
    OPERATION              = 'OPEN'
  EXCEPTIONS
    CNTL_ERROR             = 1
    ERROR_NO_GUI           = 2
    BAD_PARAMETER          = 3
    FILE_NOT_FOUND         = 4
    PATH_NOT_FOUND         = 5
    FILE_EXTENSION_UNKNOWN = 6
    ERROR_EXECUTE_FAILED   = 7
    SYNCHRONOUS_FAILED     = 8
    NOT_SUPPORTED_BY_GUI   = 9
    others                 = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Function Module/Method for opening path on frontend

Hi, I am looking for an function module or a method of a class which can be used for opening (in windows) an explorer-window with a given path. I don't wanna select any files of directories there, only opening the windows and processing the normal lo

Replacements for obsolete function modules

Hi, What is the best way to find out the replacement for the obsolete function modules? We are starting an upgrade project and are required to replace the obsolete function modules used in that. So before starting that I want to keep a list of obsole

Definition/Explanation for "obsolete" (for function modules) / unicode?

Hi, I did not find any definition from SAP regarding obsolete function modules, what does SAP mean with obsolete in this context? Is this only relevant for customers which are also switching to unicode enabled systems? Do I have to replace this fm's

Function module/BAPI for executing VD51/VD52 transactions

Hi Warm greetings to all, I require a function module/BAPI for executing VD51/VD52 transactions. Can anyone help on this SreekanthHi Sreekanth, Use this. There is an FM which is used by standard transaction 'RV_CUSTOMER_MATERIAL_UPDATE' . Ex Code - C

Hi Experts, replace function module WS_QUERY to return the name of OS?

Hi Experts, the function WS_QUERY can return your computer operating system, you can try it SE37(WS_QUERY), and only give value 'OS' to the QUERY parameter and execute the function, you can see it in RETURN parameter, but now this function is obsolet

Function module / BAPI for FBRA IN 3.1 VERSION?

Hello all, Could you please suggest Function module / BAPI for FBRA (Reverse and cancel) transaction in 3.1 version. Thanks, SubbaPlease check this FM perhaps it may help. CALL_FB08 REVERSE_CLEARING RESET_CLEARED_ITEMS_BDC_WRITE. Regards Kiran SureRe

Functional Module required for getting list of successful jobs

Hi All, There is one function module BP_JOB_SELECT which gives me name of unsuccessful job. Now I want to find the name of all successful job. Can anyone please tell me the function module name for that? Thanks in advance, Siddarth.You can use the sa

Best practice for calling application module methods and plsql code

In my application I am experiencing problems with connection pooling, I seem to be using a lot of connections in my application when only a few users are using the system. As part of our application we need to call database procedures for business lo

Function module exits for Tcode MD11.

Please tell me, Function module exits for Tcode MD11. Reg . PrajuHi LMDR2001 LMDZU001 Try out these exits. Check the folloing BADI's MD_PLDORD_SCHEDULING MD_PIR_FLEX_CONS MD_PLDORD_SCHEDULING Regards DivyaRead other 2 answers

Function module/BAPI for ATP Material

Hi All, Is there any function module/BAPI for ATP(Available-to-Promise check) for Material. 1) Production order from one plant 2) Scheduling agreement from another plant. Regards, Srinivas.Hi, you can use either of one below for ATP. BAPI_MATERIAL_AV

Function module need for 0fiscvarnt

Hi i have 0comp_code,budat and 0fiscper as a source fields,now i want to get 0fiscvarnt...please give me any logic or function module available for that thanksHi, Usually fiscal year variant is constant if not getting populated from source system. Ch

CRM questionnaires - function modules, methods

Hi, anyone knows any function modules, methods that enable to <b>modify</b> (nothing more) questionnaires in CRM ? any names or small examples would be appreciated Thanks Regards, Michaldo you mean surveys? are they linked to another object? i

Why again funtion modules in ABAP OO ?

if you look at the code inside cl_gui_frontend_services->gui_upload they use gui_upload function. there is no difference. internally the class also uses GUI_UPLOAD .......... there is conflict like data consistancy problem with function module .. why

Funtion Module to convet Date's month from numeric to words ???

Hi guys, I have a requirement such that:- For Date:- 06.07.2007 (DD.MM.YYYY) i want it to display as 06-July-2007 Is there any funtion module to do that. Regards RahulHi, Please use code as under : data : date(10),         text1(26),         num1(10)

Execute application module method automatically from uix page

Hi, We are developping an application using Jheadstart 10.1.2.2 (build 32) with UIX pages as a view. We have build a custom method on our application module class that creates and saves in a directory a chart in function of a parameter we pass to thi

Replacement for Obsolete Payroll schemas 'KARMC' and 'XEDT' in ECC 6.0

Hi Experts, I am working in a upgradation project. In HR Module (Payroll schema). Any one can help me out what are the replacement for obsolete payroll schemas 'KARMC' and 'XEDT' in ECC 6.0. (These two are there in 4.6C but, not in ECC 6.0) Thanks in

Single session for all Application Modules

Hello, I've got an application that has several Application Modules. All these modules need some data that are set from time to time. I've written some code that calls getSession().getUserData().put("myData",myData). After this method was called

Softmotion module must for circular motion control?

Hi, We are planning to use two NI 9514 modules for 2-axis motion (2D motion) control which involves Circular Motion. Is it  compulsory to use the NI Softmotion module with NI 9514 for the motion control? Also would like to know, if it is compulsory t

Funtion module library

Hi Experts, could any one tell me , how  to find funtion module library in se37. I hv sap version is 3.0b. Regards. Harryi Assume by function module library you mean Function Group. All the related function modules are grouped under Function Group. Y