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

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

  • 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

  • Need replacement for function module "WWW_GET_SCRIPT_AND_HTML"

    Hi,
    We are upgrading the system  from 4.6c to ECC 6. "WWW_GET_SCRIPT_AND_HTML" is flagged as obsolete in the ECC 6 version.Can you please give me a replacement for the above FM.The code is as follows.......thanks in advance
    CALL FUNCTION 'WWW_GET_SCRIPT_AND_HTML'
           EXPORTING
                obj_name = 'SDCAS_XML_TEMPLATE'
           TABLES
                html     = xml_output.
    Thanks n regards,
    Indu

    Hi Indu,
    Did you find the answer? If so could you post it?
    Thanks in Advanced!
    Kind Regards,
    Gerardo J

  • Replacement for function modules

    can anyone let me know the replacement for these function modules
    POPUP_TO_CONFIRM_STEP
    POPUP_TO_CONFIRM_WITH_MESSAGE

    It says the name of the replacement right there in the Attributes of the above FMs: POPUP_TO_CONFIRM.
    Hope this helps.
    Sudha

  • Replacement for Function module 'ADDRESS_READ_FOR_USER'

    Hi,
        Please let me know the replacement for the FM 'ADDRESS_READ_FOR_USER'. This is obsoletein ECC6.0.

    Hi aparna,
    ADDRESS_READ
    Regards,
    Vamshi

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

  • 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

  • Replacement for FUNCTION  'SAP_TO_ISO_MEASURE_UNIT_CODE' in ecc 6.0

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

    You can try with this function module OIK_TO_ISO_MEASURE_UNIT_CODE.
    Reward if it is useful.
    Thanks,
    Srinivas

  • Alternative for  Function module 'IDOC_CONFIGURE_0001'

    Hi,
    Can anyone tell me the alternative for  Function module <b>'IDOC_CONFIGURE_0001'</b>. This is obsolute in ECC 5.0
    Thanks
    Kiran

    Hi Kiran,
    Please try this FM.
    DDIF_FIELDINFO_GET
    Regards,
    Ferry Lianto

  • Looking for function modules

    Hello All,
    I m looking for function modules for the following functionalities :
    1. Returns a list of purchase orders.
    2. Returns a list of vendors of a metarial/materialgroup.
    3. Getting details of a vendor evaluations
    Thanks all
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on Nov 3, 2011 9:50 PM

    Hi,
    for CALL FUNCTION 'GET_FIELDTAB' 
    Replacement suggested is :
    DDIF_NAMETAB_GET or CACS_GET_TABLE_FIELDS or CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME 
    for NAMETAB_GET'  
    Replacement suggested is :
    'DDIF_NAMETAB_GET' 
    for more info
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=68191235
    hope it helps you.
    Thanks!

  • How to log input parameters for Function Modules?

    Hi,
    I need to create a Logging system to trace input parameters for function modules.
    The log functionality could be done by developing a class method or a function module (For example 'write_log'), and calling it within each function module that I want to log. The 'write_log' code should be independent from the interface of the Function Module that I want to log.
    For example, I'd like to write a function/class method that can log both these functions modules:
    Function DummyA
       Input parameters: A1 type char10, A2 type char10.
    Function DummyB
       Input parameters: B1 type char20, B2 type char20, B3 type char20, B4 type Z_MYSTRUCTURE
    Now the questions...
    - Is there a "standard SAP" function that provide this functionality?
    - If not, is there a system variable in which I can access runtime all parameters name, type and value for a particular function module?
    - If not, how can I loop at Input parameters in a way that is independent from the function module interface?
    Thank you in advance for helping!

    check this sample code. here i am capturing only parameters (import) values. you can extend this to capture tables, changin, etc.
    FUNCTION y_test_fm.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(PARAM1) TYPE  CHAR10
    *"     REFERENCE(PARAM2) TYPE  CHAR10
    *"     REFERENCE(PARAM3) TYPE  CHAR10
      DATA: ep TYPE STANDARD TABLE OF rsexp ,
            ip TYPE STANDARD TABLE OF rsimp ,
            tp TYPE STANDARD TABLE OF rstbl ,
            el TYPE STANDARD TABLE OF rsexc ,
            vals TYPE tihttpnvp ,
            wa_vals TYPE ihttpnvp ,
            wa_ip TYPE rsimp .
      FIELD-SYMBOLS: <temp> TYPE ANY .
      CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE'
        EXPORTING
          funcname                 = 'Y_TEST_FM'
    *   INACTIVE_VERSION         = ' '
    *   WITH_ENHANCEMENTS        = 'X'
    *   IGNORE_SWITCHES          = ' '
    * IMPORTING
    *   GLOBAL_FLAG              =
    *   REMOTE_CALL              =
    *   UPDATE_TASK              =
    *   EXCEPTION_CLASSES        =
        TABLES
          exception_list           = el
          export_parameter         = ep
          import_parameter         = ip
    *   CHANGING_PARAMETER       =
          tables_parameter         = tp
    *   P_DOCU                   =
    *   ENHA_EXP_PARAMETER       =
    *   ENHA_IMP_PARAMETER       =
    *   ENHA_CHA_PARAMETER       =
    *   ENHA_TBL_PARAMETER       =
    *   ENHA_DOCU                =
       EXCEPTIONS
         error_message            = 1
         function_not_found       = 2
         invalid_name             = 3
         OTHERS                   = 4
      IF sy-subrc = 0.
        LOOP AT ip INTO wa_ip .
          MOVE: wa_ip-parameter TO wa_vals-name .
          ASSIGN (wa_vals-name) TO <temp> .
          IF <temp> IS ASSIGNED .
            wa_vals-value = <temp> .
          ENDIF .
          APPEND wa_vals TO vals .
        ENDLOOP .
      ENDIF.
    ENDFUNCTION.

  • What are  the input parameters for Function Module

    Dear Experts,
    I want to generate a Sales Tax returns report,those fields are not available in my existing Datasources.
    For that i want to write a Generic Datasource with Function Module.
    audat
    bukrs
    vkorg
    vtweg
    spart
    aurat
    auart
    netwr
    mwsbp
    kschl zedp(consition type)
    kschl zvat(condition type)
    ksch   zcst(condition type)
    matkl     material group
    Here what are the Input parameters for Function Module.
    Thanks in Advance.
    Srinivasan.

    Srinivasan-
    For creating a Generic extractor based on a FM, you first of all need to know what is going to be your structure.. i.e. what all fields you need to pull from what all tables. A functional consultant may help you identify the exact DB tables.
    Once you know them, hand over the requirement and the pdf mentioned by Krishna to the ABAP guy, he would be able to take this up further.
    Also decide 1st whether you would be using a full load or delta. There is a slight difference in the way they are built.
    Let me know how it goes.
    -Bhushan.

  • Formal error: Invalid calling sequence for function modules

    Hi All,
    I have developed a function module for FQEVENT 620 Payment: Transfer Line Items for Clearing.
    The clearing works fine.
    After clearing the open items i need to post an FI-CA Document(BAPI : BAPI_CTRACDOCUMENT_CREATE) for each open item(cleared item)
    I have used the bapi : BAPI_CTRACDOCUMENT_CREATE in the same function module that i have developed for FQEVENT 620 Payment: Transfer Line Items for Clearing.Here i am getting an error "Formal error: Invalid calling sequence for function modules".
    So please let me know where i can use this bapi to post fi-ca document.Is there a BAdi or Enhancement Spot where i can use this BAPI or tell me what should i do to overcome this error.
    Regards
    Venkat

    Venkat:
    While I am confused about your business process - creating an open item when clearing one seems strange.  Look into event 0020 which is called after documents are posted - it may present the opportunity to post process additional documents.
    regards,
    bill.

Maybe you are looking for