Replaced version of Function Module PFL_COPY_OS_FILE in ECC 6.0

Hi everybody,
                      Can anybody tell me what is the replaced name of function module PFL_COPY_OS_FILE in ECC 6.0. This function module was used in 4.6C version and become obsolete in ECC 6.0. It is basically used for copying OS files.

check CL_GUI_FRONTEND_SERVICES=>FILE_COPY
new_file = P_FILE.
    app_full_name = R_FILE.
    CALL METHOD cl_gui_frontend_services=>file_copy
      EXPORTING
        SOURCE             = new_file
        DESTINATION        = app_full_name
        overwrite          = 'X'
      EXCEPTIONS
        cntl_error         = 1
        error_no_gui       = 2   
        wrong_parameter    = 3
        disk_full          = 4   
        file_not_found     = 5
        destination_exists = 6
        unknown_error      = 7
        path_not_found     = 8
        disk_write_protect = 9.
    IF sy-subrc NE 0.
      EXIT.
    ENDIF.

Similar Messages

  • 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

  • How to replace obsolete download function module in ECC6.0?

    Hi Experts,
    How to replace obsolete download function module in ECC6.0?
    Thanks,
    Adi.

    Hi,
    DOWNLOAD is obsolete FM in ECC 6. To get the same functionality , we need to use
    CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG  method (It provides the File selection feature)
    and
    GUI_DOWNLOAD function module.(It downloads the internal table from program to presentation server)
    Please see the example below:
    Example:
    *CALL FUNCTION 'DOWNLOAD'
              EXPORTING
                   FILENAME            = p_filename
                   FILETYPE            = ‘DAT’
              TABLES
                   DATA_TAB            = T_DOWNL
              EXCEPTIONS
                   INVALID_FILESIZE    = 1
                   INVALID_TABLE_WIDTH = 2
                   INVALID_TYPE        = 3
                   NO_BATCH            = 4
                   UNKNOWN_ERROR       = 5
                   OTHERS              = 6.
    *End of deletion CH01-
    Replacement Method for above code:
    DATA: l_filename    TYPE string,
           l_filen       TYPE string,
           l_path        TYPE string,
           l_fullpath    TYPE string,
           l_usr_act     TYPE I.
    l_filename = P_filename.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
      EXPORTING
        DEFAULT_FILE_NAME    = l_filename
      CHANGING
        FILENAME             = l_filen
        PATH                 = l_path
        FULLPATH             = l_fullpath
        USER_ACTION          = l_usr_act
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2
        NOT_SUPPORTED_BY_GUI = 3
        others               = 4.
    IF sy-subrc = 0
          AND l_usr_act <>
          CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = l_fullpath
       FILETYPE                        = 'DAT'
      TABLES
        DATA_TAB                        = T_DOWNL
    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.

  • How can I  call the function module of the ECC when I save the campaign?

    HI Experts!
    I want to call function module of the ECC when I click the save button in the campaign view,A badi or userexit is needed,but I don't find, can you tell me which badi or userexit  is used to implement?

    Thanks a lot.
    I have tried,but it can't do.
    who can tell me which badi and detailed implementation step?
    waiting on line.

  • Replacement  for a function module in  6.0

    Hi
       I  am in the process of upgrading from 4.7 to 6.0 . The function module SAPWL_STATREC_READ_FILE is flagged as obsolete . Am unable to find a documentation for this function module . So which is the replacement for this function module . ?
    Please help . .

    hi,
    the replacement is SAPWL_STATREC_DIRECT_READ
    next time check the source code of the FM, probably you'll find the answer...
    hope this helps
    ec

  • 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 obsolete function modules and their replacements ready.
    SS

    Hi,
    RODIR table gives not only FM, all obsoletes types.
    if you dont find, best way is when we check EPC for the program,
    in call function interface warnings shows, obsolete function modules.
    or do UCCHECK it will both obsolete and suggested replacements.
    Thanks
    Vinod

  • 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

  • Replacement of  obseleute function modules

    Hi,
        We are upgrading our system from ECC 4.6 to ECC 6.0. For that we are Replacing the below obseleute function module shown in below.
    TZ_USER_SYSTEMCLOCK
    TZ_LOCATION_TIMEZONE       
    ADDRESS_GET_DATA     
    HELPSCREEN_CREATE     
    HELP_DOCU_SHOW_FOR_FIELD
    Could any one please help me out to replace the function module which supports ecc6.0.
    Thanks a lot for your help in advance.
    Regards,
    Balaji..

    Hi,
       Thanks a lot Lakshman. I have checked the link given by you  (Link: List of Obsolete Function Modules in ECC .0)
    But in that list the below mentioned function module is not there.
    ADDRESS_GET_DATA
    HELPSCREEN_CREATE
    If you have any idea, Please share with me..
    Regards,
    Balaji..

  • Replacement for a Function module

    Hi all,
    There is a function module '<b>HELP_VALUES_GET_NO_DD_NAME'</b> to display possible values for a database field. This FM is getting obsolete in near future.
    Does anyone know any replacement provided by SAP for this FM?

    Hi,
    <b>replaced with the FM F4IF_INT_TABLE_VALUE_REQUEST.</b>
    check this thread
    Re: F4IF_INT_TABLE_VALUE_REQUEST
    sample code.
    tables: mara, makt.
    data: begin of itab occurs 0,
    matnr like mara-matnr,
    end of itab.
    data : begin of btab occurs 0,
    maktx like makt-maktx,
    end of btab.
    data mak like makt-maktx.
    DATA : return like ddshretval occurs 0 with header line.
    data: begin of dynpfields occurs 0.
    include structure dynpread.
    data: end of dynpfields.
    parameters: p_matnr like mara-matnr,
    p_maktx like makt-maktx.
    Initialization.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
    REFRESH ITAB.
    SELECT matnr FROM mara INTO TABLE ITAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'MATNR '
    dynprofield = 'P_MATNR '
    dynpprog = sy-REPID
    dynpnr = sy-dynnr
    value_org = 'S'
    TABLES
    value_tab = ITAB
    return_tab = return.
    p_matnr = return-fieldval.
    rgds
    anver
    <i>if hlped pls mark points</i>
    Message was edited by: Anversha s

  • Alternative for  Function module 'F4_CHOOSE_MCID' in ECC 5.0?

    Hi,
    Can any one tell me the Alternative for  Function module <b>'F4_CHOOSE_MCID'</b> in ECC 5.0?
    Helpful answers will be rewarded.
    Thanks
    Kiran

    Hi,
    Please use this FM UMC_NOTIF_SEND_EMAIL to send an email in ECC 5.0.
    Regards,
    Ferry Lianto

  • Replacement of Obsolete Function Modules MATNR_BAPI_CONV_FROM_EXTERNAL

    Hello Friends ,
    I am working in Upgradation project. I come across Two Obsolete Function Modules which i need replace.
                  1)   MATNR_BAPI_CONV_FROM_EXTERNAL
                 2)     MATNR_CONV_RANGES_3
    Please help me in getting replacement of these two Obsolete Function Modules .
    Awaiting your reply.
    Thank you .
    Regards,
    Kiran...

    Hi Saravanan,
    Thanks alot for givning the answer. but how do i select the suitable function modules for the two obsolete FMs.
    MATNR_BAPI_CONV_FROM_EXTERNAL
    MATNR_CONV_RANGES_3
    Thank you.
    Regards,
    Kiran.

  • Ws_query function module obsolete in ECC 6.0

    HI experts,
       V r upgrading system from 4.6 to ecc 6.0 . In one of the programs FM ws_query is obsole, pls let me know the replacement of it.
    form process_selections_filen.
      call function 'WS_QUERY'
           exporting
                filename = p_filen
                query    = 'FE'
           importing
                return   = g_subrc
           exceptions
                others   = 1.
      check syst-subrc ne 0 or g_subrc ne 1.
      message e000(zz) with p_filen text-e01.
    endform.

    You must OO ABAP.
    You can use a method of CL_GUI_FRONTEND_SERVICES class to do the same process. This is the new class for handling files.

  • Remote Function Module call from ECC to CRM (how to pass parameters?)

    Hi there,
    I have a remote FM that I would like to call from ECC to CRM. The FM is remote-enabled, so I assume that I can call this from CRM. However, in CRM some of the table structures that is required are not available. Hence, my export/import parameters won't be match, unless I create those types in CRM, but this is going to major work!! 
    How do we pass/import the parameters since the data type in ECC is vastly different/not available in CRM?
    Cheers

    The structure will need to be defined in CRM.

  • Regarding replacement of function module 'GUI_GET_DESKTOP_INFO'

    what function module is replaced by obselete function module 'GUI_GET_DESKTOP_INFO'

    Hi Naveenkumar,
    For differenct fucntions specified in obselete FM
    1:  Host name (host name of current system) -- CL_GUI_FRONTEND_SERVICES=>GET_IP_ADDRESS
    CL_GUI_FRONTEND_SERVICES=>GET_COMPUTER_NAME
    2:  Windows directory -- CL_GUI_FRONTEND_SERVICES=>GET_WINDOWS_DIRECTORY
    3:  System directory -- CL_GUI_FRONTEND_SERVICES=>GET_SYSTEM_DIRECTORY
    4:  Temp. directory -- CL_GUI_FRONTEND_SERVICES=>GET_TEMP_DIRECTORY
    5:  Domain user name -- CL_GUI_FRONTEND_SERVICES=>GET_USER_NAME
    6:  Platform -- use CL_GUI_FRONTEND_SERVICES=>GET_PLATFORM
    7:  Windows build number
    8:  Windows version
    9:  Program name
    10: Program path
    11: Current directory (Directory for current process) --
    CL_GUI_FRONTEND_SERVICES=>GET_SAPGUI_WORKDIR
    Regards,
    Mohaiyuddin

  • 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.

Maybe you are looking for

  • Why does Acrobat X Reduce File Size make significantly bigger files?

    Drawings at AO size, probably from AutoCad, each pdf ranging in size from 600 to 800kb.  No encription.  No attachments.  No embedded fonts.  Reprinted them through Acrobat X Pro to A3 then combined them. Binder size was about 5MB, too large for my c

  • IP profile

    Can anyone please help me? My IP profile seems to be stuck on 2mbps I had a similar problem in August, and at that time I upgraded my home hub from 2 to 3 and my IP profile was reset. For a time I then achieved an IP profile of about 7mbps which is m

  • Dragging New Music Into iTunes

    I've updated iTunes to 10.1.2.17 today and now I cannot drag and drop any music files directly into my iTunes library or iPod. This previously worked and this is how I manage my music (I don't use the sync feature). My iPod Classic still has 'Manuall

  • How to trap F1 (help) when "Tools - Options" is active

    Hi there. I already posted this question previously with no appropriate response. I wouldn't normally post it again but I'm justifiably losing my patience. I can find no way to trap F1 (help) when someone activates my program's options via "Tools ->

  • Hide and show portlets

    Hello all, I have created two forms and two reports and added them in a page as 4 portlets like this... FORM1                    REPORT1              FORM2(Hidden)        REPORT2(Hidden)  ---------------------------------------------------------By de