Function module to upload Excel in version 3.1

Hi,
       Please can anybody tell me what is the function module to upload Excel sheet in SAP version 3.1.its urgent
    And also the user-command in radio buttons is not working in version 3.1. Please suggest me the right code for radio buttons in 3.1 version.
please find the following code for radio buttons
SELECTION-SCREEN BEGIN OF BLOCK blck WITH FRAME TITLE text-001.
PARAMETERS:  r_local radiobutton group g1 user-command ucomm,
                         r_app radiobutton group g1,
                         p_filename  LIKE  rlgrap-filename.
SELECTION-SCREEN END OF BLOCK blck.
Thanks in Advance....
Regards,
Swapna
Edited by: Alvaro Tejada Galindo on Feb 29, 2008 10:22 AM

Hi,
Use Ws_upload function module.
Regards,
Sunil

Similar Messages

  • Function module to upload excel to internal table in SAP 7.0 version system

    <<Question has been asked and answered many times - please search before asking for function modules for common tasks>>
    currently i am using SAP Netweaver7.0 version, i need a Funtion Module to upload an Excel sheet data to an internal table.
    please let me know this ASAP.
    thanks,
    Edited by: Matt on Aug 24, 2009 7:25 AM

    hi,
    the FM you have suggested does not exist in the *version 7.0*
    added the FM "ALSM_....",also does not exist
    pls suggest a FM for SAP7.0 version

  • What is the function module which uploads excel file data into tcodes

    Hi,
    i want to upload data in cs01 tcode.
    but data is excel sheet while i am trying to use gui_upload it is not being possible for me to upload data.
    can any one tell me what is the function module?
    can any send me the steps how to uplaod data if it is in excelsheet?
    thanks & regards
    naveen
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 18, 2010 1:46 PM

    Hi,
       Try the below sample code u ll get an idea of uploading using 'TEXT_CONVERT_XLS_TO_SAP'.
    REPORT  zupload_excel_to_itab.
    TYPE-POOLS: truxs.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab type standard table of t_datatab,
          wa_datatab type t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    At selection screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *START-OF-SELECTION.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
        I_FIELD_SEPERATOR        =
          i_line_header            =  'X'
          i_tab_raw_data           =  it_raw       " WORK TABLE
          i_filename               =  p_file
        TABLES
          i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
       EXCEPTIONS
          conversion_failed        = 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.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3.
      ENDLOOP.
    Thanks & Regrads,
    Neela.

  • Need Function module to upload an excel file to SAP

    Need Function module to upload more than 100 characters of excel file data into SAP internal table.
    Currently i have two function module
    1. ALSM_EXCEL_TO_INTERNAL_TABLE --32 characters max
    2. KCD_EXCEL_OLE_TO_INT_CONVERT --50 characters max
    Please let me know some pointers.
    Thanks in Advance,
    A.Karthikeyan.

    hi,
    use the FM GUI_UPLOAD
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = W_FILENAME
       FILETYPE                      = W_FILETYPE
       HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
       DAT_MODE                      = 'X'
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                      = wp_it_upload
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17.

  • Function Module For Upload the Powerpoint Template in Webdynpro ABAP

    Hi,
      Can anyone tell me, is there any standard function module to upload the Powerpoint Template to Webdynpro ABAP.
    Regards,
    Saran

    Hello Saran,
    for uploading the powerpoint as file you could use the FileUpload ui element.
    Best regards,
    Thomas

  • Impact of Function Modules when used in upgraded versions

    Hello Experts,
              I wan to know the Impact of Function Modules when used in upgraded versions. How the function module works irrespective of changes done to it in the latest verisons
    Thanks in Advance

    Hi,
    If the function modules is released, it should not have any impact. However if not released, use them with caution as SAP does not support non-released function modules.
    Cheers.
    ...Reward if useful.

  • BDC : Function Module to Upload Unicode text file

    Hi Friends,
               Can anyone tell me how to upload data to internal table by taking it from unicode text file ?
    at present i'm using FM - GUI_UPLOAD which do not support Unicode text file.
    Sonal

    Hi,
    U Have to use CodePage Parameter to upload the data.
    Check the Description
    Character Representation for Output
    Description
    Use parameter CODEPAGE to specify the desired source codepage. If this parameter is not set, the codepage of the SAP GUI is used as the source codepage.
    Value range
    4-digit number of the SAP codepage. The function module SCP_CODEPAGE_BY_EXTERNAL_NAME provides the SAP codepage number for an external character set name, for example, "iso-8859-1". The function module NLS_GET_FRONTEND_CP provides the respective non-Unicode frontend codepage for a language.
    The desired codepage can be determined interactively, if the parameter with_encoding of method file_open_dialog is set by cl_gui_frontend_services.
    If the specified codepage is not suited for the Byte Order Mark of the file, an exception is triggered.
    SPACE: Codepage of the frontend operating system
    Default
    SPACE

  • Function Modules to Upload document to DMS frm CRM

    Hello There,
    Please can  any body help me with FUNCTION Module/bapi which can be used to upload files of any type to DMS(Document Manage, System) from CRM program,
    Points would be awarded in FULL,
    Thanking you in advance,
    Raj

    Hi,
    thanks for reply
    I know gui_upload   am asking about   textconvert_xls_sap_ about this with example and description.
    thanks and regards
    zarah

  • Function Modules for uploading the file

    Hi experts ,
                      I have a requirement to download a file (csv) from my local sytem (say desktop) into an internal table first and then update the contents of the same internal table into the database table.
    Can anybody provide me with a sample program for doing the same or at least the name of function modules for the same.
    Prompt replies will be rewarded.
    TIA
    Abhishek

    Hi Abhishek,
    How to use INSERT Statement..
    Check this Sample Program..
    TABLES:MARA.
    DATA:ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
    ITAB-MATNR = '123ABCDA'. .
    ITAB-MBRSH = 'C'.
    ITAB-MTART = 'FERT' .
    ITAB-MEINS = 'KG' .
    APPEND ITAB.
    ITAB-MATNR = '123ABCDB'. .
    ITAB-MBRSH = 'C'.
    ITAB-MTART = 'FERT' .
    ITAB-MEINS = 'KG' .
    APPEND ITAB.
    LOOP AT ITAB.
    INSERT MARA FROM ITAB.
    MODIFY MARA .
    ENDLOOP.

  • Function module for uploading file in background

    hi friends
    i am working on Inbound IDOC interface where in which i am creating a function module for that,
    in which based on the idoc received , the interface has to choose the file from the shared folder and it has to move its contents to an internal table
    can anybody suggest me what function module can i use.
    we cant use GUI_upload,or cl_gui_frontend_services=>gui_upload
    because this requires an user to interact in mines it is not the case
    thanks in advance
    with regards
    s.janagar

    hi,
    check this thread,you will get idea how to transfer data from file to internal table.
    [https://forums.sdn.sap.com/click.jspa?searchID=17706879&messageID=6281020]

  • Function module to upload gif images to Purchase order-"Services for Obj...

    Hello all,
    On ME23N we have option of manually attaching any document to the Purchase order through the option "Services for Object".
    Now I have to upload the gif files automaticcal through Backgroud program.
    How can we attach the file to the PO automatically?
    Need ur inputs on this.
    Thanks,
    Subba

    How to add an attachment to a Purchase Order in SAP?
    You can attach manually any document to PO without using Document Management System ( DMS ) in SAP 4.6C.
    But you cannot attach document while you create PO in T/Code ME21N
    Save you PO ( ME21N ) and again open with change ( ME22N ) then you can attach document through Service for Object button. Service for Object button available down side of Command screen ( in your PO screen ME22N )
    Click your Service Object button -> Create -> Create attachment
    then select your window directory ( which file you need to attach) select your file Now your system shows message  Service "Create attachment" is started.
    Save again your PO. You can see (open) your attachment in same field ( Service for Object ) select and Create and check attachment list. You can attach as many document in your PO.
    Note: This is only information for internal or you can print separately this document for sending to vendor ( fax ) System will not print automatically along PO print out.

  • Searching for bapi/function module for uploading assent numbers.

    hi all,
    i have a senario where in for a sinle PO there will be many assent nos.
    Example :if i have a single purchase order of 100 chairs.each chair will have a unique asset no for maintianence.
    i want to find a bapi or any FM to help me upload the details through XL-sheet, other than doing it manually,
    plz help ,points will be rewareded.
    regards,
    johnson

    Hi Try using the BAPI
    BAPI_PO_CHANGE, if you want to add the Asset numbers to the PO.
    BAPI_PO_CREATE1 - if you want to create

  • How to upload excel file in Webdynpro application using ABAP

    Hi Experts,
    Am developing a webdynpro application in which it will take an excel file as input and display the contents in the form of a table in output. I am able to upload tab delimited text file and populate the table using the below code but not able to do the same with .xls file. Pls let me know if I need to use a different function module for upload excel file.
    get single attribute
      wd_context->get_attribute(
        EXPORTING
          name =  `DATASOURCE`
        IMPORTING
          value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
      SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
    Bind With table Element.
      LOOP AT i_data INTO l_string.
        SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
        READ TABLE fields INTO lv_field INDEX 1.
        fs_table-name = lv_field.
        READ TABLE fields INTO lv_field INDEX 2.
        fs_table-age = lv_field.
        APPEND fs_table TO t_table1.
      ENDLOOP.
    lo_nd_data = wd_context->get_child_node( 'DATA_TAB' ).
    lo_nd_data->bind_table( T_TABLE1 ).
    Thanks,
    Subathra

    Dear Exports
    Can anyone guide me how to uplode the .xlsx or ..xls formatted excel file using abap webdynpro without converting it to .txt file. Because my client requirement is only to upload the excel file. because to convert the .xlsx flie to .txt file it will be time taking and cost expanssive. Another requirement is suppose today i have create a application for uploading a file which has 8 columns and 10 rows. suppose tomorrow the client will make some changes in that flat file means the client will add 2 extra columns and 10 more columns in that fil. and will upload that file. Then the new file will be display on the browser or old file. but my requirement is to display the new file in browser.
    Can anyone kindly help to solve my problem. I am completely fresher in this field and I need to do it as soon as possible. Please help to solve the problem. 
    Regards
    Rashmita

  • Wht are the function modules for download upload excel files in bdc.

    hi all,
    this question seems to be silly but i had open office excel files i am getting problems to upload or down loading.  can you tell which function modules can upload or down load open office excel files.
    another dought this is not need full but i need to get some of graphics which are in se78  .
    how can we dowload them from sap.
    thanq,
    rajesh.k

    Hi,
      use  :   CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
       REPORT  YKC_XL_UPLOAD.
    TYPE-POOLS TRUXS.
    TABLES : ZMARA.
    * Selection screen
    PARAMETER P_FILE TYPE RLGRAP-FILENAME DEFAULT
    'C:\Kris\TEST_UPLOAD.xls'.
    TYPES:  BEGIN OF T_TAB,
            MATNR   LIKE ZMARA-MATNR,
            ERSDA  LIKE ZMARA-ERSDA,
            ERNAM  LIKE ZMARA-ERNAM,
            END OF T_TAB.
    DATA :  T_UPLOAD  TYPE STANDARD TABLE OF T_TAB WITH HEADER LINE ,
            WA_UPLOAD TYPE T_TAB,
            IT_RAW TYPE TRUXS_T_TEXT_DATA.  "work table internal table
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SYST-CPROG
          DYNPRO_NUMBER = SYST-DYNNR
          FIELD_NAME    = 'P_FILE '
        IMPORTING
          FILE_NAME     = P_FILE.
    START-OF-SELECTION.
    * Uploading the data in the file into internal table
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
    *   I_FIELD_SEPERATOR =
    *   I_LINE_HEADER  = 'X'
        I_TAB_RAW_DATA = IT_RAW
        I_FILENAME     = P_FILE
      TABLES
        I_TAB_CONVERTED_DATA = T_UPLOAD[]
      EXCEPTIONS
        CONVERSION_FAILED = 1
        OTHERS            = 2.
      IF SY-SUBRC NE  0.
        MESSAGE ID SY-MSGID
                TYPE SY-MSGTY
                NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    END-OF-SELECTION.
    * Uploading the data into the database table
      LOOP AT T_UPLOAD INTO T_UPLOAD.
        ZMARA-MATNR = T_UPLOAD-MATNR.
        ZMARA-ERSDA = T_UPLOAD-ERSDA.
        ZMARA-ERNAM = T_UPLOAD-ERNAM.
        INSERT  ZMARA.
    Endloop.
    Tks,
    Krishna

  • Upload a Function Module

    Hi all
    I need to upload a Function module from SAP 4.6C to ECC 6.4 version. Can anyone help me on this ? A PROMPT reply will be highly appreciated as I need this urgently..

    2)now uplaos from c driv to diffrent server.
    *& Report  Z_CREATE_FM                                                 *
    REPORT  z_create_fm                             .
    * Tables
    * TYPES - Structures
    * Structure for Function Module Attributes
    TYPES: BEGIN OF s_fm_attributes         ,
            global_flag   LIKE rs38l-global ,
            remote_call   LIKE rs38l-remote ,
            update_task   LIKE rs38l-utask  ,
            short_text    LIKE tftit-stext  ,
            function_pool LIKE rs38l-area   ,
           END   OF s_fm_attributes         .
    * Structure for Import Paramters
    TYPES: BEGIN OF s_import_parameter .
            INCLUDE STRUCTURE rsimp    .
    TYPES: END   OF s_import_parameter .
    * Structure for Changing Paramters
    TYPES: BEGIN OF s_changing_parameter .
            INCLUDE STRUCTURE rscha      .
    TYPES: END   OF s_changing_parameter .
    * Structure for Export Paramters
    TYPES: BEGIN OF s_export_parameter  .
            INCLUDE STRUCTURE rsexp     .
    TYPES: END   OF s_export_parameter  .
    * Structure for Table Paramters
    TYPES: BEGIN OF s_tables_parameter .
            INCLUDE STRUCTURE rstbl    .
    TYPES: END   OF s_tables_parameter .
    * Structure for Exception list
    TYPES: BEGIN OF s_exception_list  .
            INCLUDE STRUCTURE rsexc.
    TYPES: END   OF s_exception_list .
    * Structure for Documentation
    TYPES: BEGIN OF s_documentation  .
            INCLUDE STRUCTURE rsfdo.
    TYPES: END   OF s_documentation .
    * Structure for Exception list
    TYPES: BEGIN OF s_source           .
            INCLUDE STRUCTURE rssource .
    TYPES: END   OF s_source           .
    * Internal Tables
    DATA:  t_fm_attributes      TYPE s_fm_attributes       OCCURS 0
                                WITH HEADER LINE                     ,
           t_import_parameter   TYPE s_import_parameter    OCCURS 0
                                WITH HEADER LINE                     ,
           t_changing_parameter TYPE s_changing_parameter  OCCURS 0
                                WITH HEADER LINE                     ,
           t_export_parameter   TYPE s_export_parameter    OCCURS 0
                                WITH HEADER LINE                     ,
           t_tables_parameter   TYPE s_tables_parameter    OCCURS 0
                                WITH HEADER LINE                     ,
           t_exception_list     TYPE s_exception_list      OCCURS 0
                                WITH HEADER LINE                     ,
           t_documentation      TYPE s_documentation       OCCURS 0
                                WITH HEADER LINE                     ,
           t_source             TYPE s_source              OCCURS 0
                                WITH HEADER LINE                     .
    * Constants
    CONSTANTS: c_dir(6)        TYPE c  VALUE 'C:FM'         ,
               c_bslash(1)     TYPE c  VALUE ''              ,
               c_file_attrib   TYPE string        " FM Attributes file
                                VALUE 'FM_ATTRIBUTES.XLS' ,
               c_file_ip       TYPE string        " Import parameters File
                                VALUE 'IMPORT_PARAMTER.XLS' ,
               c_file_cp       TYPE string        " Changing parameters File
                                VALUE 'CHANGING_PARAMTER.XLS' ,
               c_file_ep       TYPE string         " Export parameters File
                                VALUE 'EXPORT_PARAMTER.XLS'   ,
               c_file_tp       TYPE string         " Tables parameters File
                                VALUE 'TABLES_PARAMTER.XLS'   ,
               c_file_el       TYPE string         " Exception list File
                                VALUE 'EXCEPTION_LIST.XLS'    ,
               c_file_docu     TYPE string         " Documentation File
                                VALUE 'DOCUMENTATION.XLS'     ,
               c_file_source   TYPE string         " Code Source File
                                VALUE 'SOURCE.XLS'            .
    * Work-fields
    DATA: w_functionname      LIKE rs38l-name       , " FM Name
          w_file              TYPE string           , " File name
          w_global_flag       LIKE rs38l-global     , " Global flag for FM
          w_remote_call       LIKE rs38l-remote     , " RFC flag
          w_update_task       LIKE rs38l-utask      , " Update task flag
          w_short_text        LIKE tftit-stext      , " Short text
          w_function_pool     LIKE rs38l-area       , " Function Group
          w_function_include  LIKE rs38l-include    , " FM Include file
          w_corrnum_e         LIKE e071-trkorr      .
    * Selection-Screen
    SELECT-OPTIONS: s_fm FOR w_functionname OBLIGATORY NO INTERVALS.
    * At selection-screen
    * Start-of-selection
    START-OF-SELECTION.
    * Upload Function Modules.
      PERFORM sub_upload_fm_data.
    * End-of-selection
    END-OF-SELECTION.
    * Subroutines
    *&      Form  sub_upload_fm_data
    *       Create Function Module by uploading their data from local file
    FORM sub_upload_fm_data .
      LOOP AT s_fm.
        REFRESH: t_fm_attributes       ,
                 t_import_parameter    ,
                 t_changing_parameter  ,
                 t_export_parameter    ,
                 t_tables_parameter    ,
                 t_exception_list      ,
                 t_documentation       ,
                 t_source              .
        CLEAR: w_functionname   ,
               w_global_flag    ,
               w_remote_call    ,
               w_update_task    ,
               w_short_text     ,
               w_function_pool  .
        MOVE s_fm-low TO w_functionname.
    *   Upload FUNCTION MODULE Attributes
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_attrib
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_fm_attributes
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        READ TABLE t_fm_attributes INDEX 1.
        MOVE: t_fm_attributes-global_flag    TO w_global_flag    ,
              t_fm_attributes-remote_call    TO w_remote_call    ,
              t_fm_attributes-update_task    TO w_update_task    ,
              t_fm_attributes-short_text     TO w_short_text     ,
              t_fm_attributes-function_pool  TO w_function_pool  .
    *   Upload IMPORT Parameters
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_ip
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_import_parameter
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload CHANGING Parameters
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_cp
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_changing_parameter
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload EXPORT Parameters
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_ep
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_export_parameter
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload TABLES Parameters
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_tp
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_tables_parameter
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload EXCEPTIONS List
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_el
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_exception_list
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload DOCUMENTATION
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_docu
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_documentation
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Upload SOURCE Code
        CLEAR w_file.
        CONCATENATE c_dir
                    w_functionname
                    c_bslash
                    c_file_source
               INTO w_file.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                      = w_file
            filetype                      = 'ASC'
            has_field_separator           = 'X'
    *       HEADER_LENGTH                 = 0
    *       READ_BY_LINE                  = 'X'
    *       DAT_MODE                      = ' '
    *       CODEPAGE                      = ' '
    *       IGNORE_CERR                   = ABAP_TRUE
    *       REPLACEMENT                   = '#'
    *       CHECK_BOM                     = ' '
    *     IMPORTING
    *       FILELENGTH                    =
    *       HEADER                        =
          TABLES
            data_tab                      = t_source
          EXCEPTIONS
            file_open_error               = 1
            file_read_error               = 2
            no_batch                      = 3
            gui_refuse_filetransfer       = 4
            invalid_type                  = 5
            no_authority                  = 6
            unknown_error                 = 7
            bad_data_format               = 8
            header_not_allowed            = 9
            separator_not_allowed         = 10
            header_too_long               = 11
            unknown_dp_error              = 12
            access_denied                 = 13
            dp_out_of_memory              = 14
            disk_full                     = 15
            dp_timeout                    = 16
            OTHERS                        = 17 .
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Create Function Module
        CALL FUNCTION 'RS_FUNCTIONMODULE_INSERT'
          EXPORTING
            funcname                      = w_functionname
            function_pool                 = w_function_pool
            interface_global              = w_global_flag
            remote_call                   = w_remote_call
            short_text                    = w_short_text
    *       SUPPRESS_CORR_CHECK           = 'X'
            update_task                   = w_update_task
    *       CORRNUM                       = ' '
    *       NAMESPACE                     = ' '
    *       SUPPRESS_LANGUAGE_CHECK       = 'X'
    *       AUTHORITY_CHECK               = 'X'
    *       SAVE_ACTIVE                   = 'X'
    *       NEW_SOURCE                    =
    *       EXCEPTION_CLASS               = ' '
    *       SUPPRESS_UPGRADE_CHECK        = ' '
          IMPORTING
            function_include              = w_function_include
            corrnum_e                     = w_corrnum_e
          TABLES
            import_parameter              = t_import_parameter
            export_parameter              = t_export_parameter
            tables_parameter              = t_tables_parameter
            changing_parameter            = t_changing_parameter
            exception_list                = t_exception_list
            parameter_docu                = t_documentation
            SOURCE                        = t_source
          EXCEPTIONS
            double_task                   = 1
            error_message                 = 2
            function_already_exists       = 3
            invalid_function_pool         = 4
            invalid_name                  = 5
            too_many_functions            = 6
            no_modify_permission          = 7
            no_show_permission            = 8
            enqueue_system_failure        = 9
            canceled_in_corr              = 10
            OTHERS                        = 11 .
        IF sy-subrc NE 0.
          WRITE: / 'Error occured while creating FM: '  ,
                   w_functionname .
        ELSE.
          WRITE: / 'FM Created: '  ,
                   w_functionname  .
    *      CALL FUNCTION 'RS_FUNCTION_ACTIVATE'
    *        EXPORTING
    **         ACTION                       = ' '
    **         CORR_INSERT                  = ' '
    *          funcname                     = w_functionname
    **         WITH_POPUP                   = 'X'
    **         SUPPRESS_WORKING_AREA        = ' '
    **         OBJECT_SAVED                 =
    *        EXCEPTIONS
    *          CANCELLED                    = 1
    *          CANCELED_IN_CORR             = 2
    *          EDITOR_NAVIGATION_FLAG       = 3
    *          MESSAGE_SEND                 = 4
    *          NOT_FOUND                    = 5
    *          NO_ACTION                    = 6
    *          PERMISSION_FAILURE           = 7
    *          OTHERS                       = 8 .
    *      IF sy-subrc NE 0.
    *        WRITE: / 'Error occured while activating FM: '  ,
    *                 w_functionname .
    *      ELSE.
    *        WRITE: / 'Activated FM: '  ,
    *                 w_functionname .
    *      ENDIF.                " IF sy-subrc NE 0.(RS_FUNCTION_ACTIVATE)
        ENDIF.                  " IF sy-subrc NE 0.
      ENDLOOP.                  " LOOP AT s_fm.
    ENDFORM.                    " sub_upload_fm_data

Maybe you are looking for

  • Unable to load German characters in NON Unicode Essbase Cube

    Hi Guys, This is what we want to do: Build a Cube for Germany on our Essbase server in US. Our users will access cube using Excel Add-In from Germany. But since the Essbase server is in US, system environment variable ESSLANG is set to English_United

  • Printing Envelopes Other Than #10 with HP LaserJet 4240 Envelope Feeder

    I'm trying to use an HP LaserJet 4240 and an HP 75-sheet Envelope Feeder to print envelopes from FileMaker Pro. HP's specifications for the envelope feeder note that it accepts "various sizes of envelopes." However, we are unable to specify any size

  • Best Practise to handle Data Refresh & Hierarchy

    Hi, During a recent discussion with one of our BI user groups, the questions were raised as what the best practice are to handle the following two issues. Issue 1: If entries are posted to the prior periods in SAP R/3 (outside of the daily auto-refre

  • Error When Create Shopping Cart from catalog SRM

    Hi all, Currently, I have problem need your help. I tried to create an shopping cart from catalog. But I don't know how the G_L_ACCT was lost. The information about account like this: Now, I want to know where this data is selected. Would you please

  • Zen Touch - my computer won't recognise

    I've tried numerous times to install my mp3 player but the pc won't detect it at all. I have Creative mediasource, media player 0, and downlaoded the driver from this site but it doesn't seem to work. The taskbar at the bottom of the screen says 'USB