GUI_UPLOAD and SOX

Hi,
I wrote a program which used GUI_UPLOAD functionality.  Now the security guy says that this is not allowed as per SOX and we need to find a alternate way for uploading data.
Can you please suggest me what options do I have.
Regards
Vijay

Hi,
you can use ws_upload and upload functional modules.anyways ws_upload became obsolete.so you can try using upload.
regards,
deepthi reddy

Similar Messages

  • Difference between GUI_UPLOAD and WS_UPLOAD

    Hi,
    Please make me clear about the difference between GUI_UPLOAD and WS_UPLOAD. In which cases we need to use these modules...??
    Thanks,
    Satish

    I would suggest to always use the GUI_UPLOAD.  I say this because this is the function module which is used in the GUI_UPLOAD method of the class CL_GUI_FRONTEND_SERVICES.   Really, you should probably use the class/method instead of the function module.
      data: filename type string.
      filename = p_file.
      call method cl_gui_frontend_services=>gui_upload
             exporting
                  filename                = filename
                  filetype                = 'ASC'
             changing
                  data_tab                = iflatf
             exceptions
                  file_open_error         = 1
                  file_read_error         = 2
                  no_batch                = 3
                  gui_refuse_filetransfer = 4
                  no_authority            = 6
                  unknown_error           = 7
                  bad_data_format         = 8
                  unknown_dp_error        = 12
                  access_denied           = 13
                  others                  = 17.
    Regards,
    Rich Heilman

  • About UPLOAD, GUI_UPLOAD and WS_UPLOAD

    Hello Experts,
             What is the difference between UPLOAD, GUI_UPLOAD and WS_UPLOAD function modules. Please send me brief answer about this on following mail id
    "[email protected]"
    Reward for useful answer
    Thanx and regards,
    Rahul Talele

    I would suggest to always use the GUI_UPLOAD.  I say this because this is the function module which is used in the GUI_UPLOAD method of the class CL_GUI_FRONTEND_SERVICES.   Really, you should probably use the class/method instead of the function module.
      data: filename type string.
      filename = p_file.
      call method cl_gui_frontend_services=>gui_upload
             exporting
                  filename                = filename
                  filetype                = 'ASC'
             changing
                  data_tab                = iflatf
             exceptions
                  file_open_error         = 1
                  file_read_error         = 2
                  no_batch                = 3
                  gui_refuse_filetransfer = 4
                  no_authority            = 6
                  unknown_error           = 7
                  bad_data_format         = 8
                  unknown_dp_error        = 12
                  access_denied           = 13
                  others                  = 17.
    Regards,
    Rich Heilman

  • Gui_upload and  ws_upload

    hi friends,
    i have a small doubt i just want to know the difference betweeen
    GUI_UPLOAD and WS_UPLOAD which one i have to use.
    which function module is useful and  most preferred.
    regards
    srinivas

    WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
    The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.

  • Difference of gui_upload and upload

    difference of <b>gui_upload</b> and <b>upload</b> and <b>ws_upload</b>

    hi
    good
    There is no difference from functionality point of view.
    But when the new versions of SAP comes into picture certain objects(fun modules,tables,fields etc) will become Obsolete and the new Objects will come into picture in the place of Obsolete Fun modules and other objects
    So GUI_Upload and GUI_DOWNLOAD are the newversion of function modules which are the replacement for the UPLOAD and DOWNLOAD fun modules
    So we should use the New one.
    So it depends on the SAP Version on which you are working
    If you are still working in the Older versions of SAP like 4.0 like thing then you can use the DOWNLOAD and UPLOAD.
    But if you are working on the latest versions like ECC5.0 and ECC6.0 you have to use GUI_download and GUI_UPLOAD fun modules only
    reward point if helpful.
    thanks
    mrutyun^

  • Purpose each of these is: Gui_upload and upload

    Hi Friends,
    Kindly let me know what the Exact Purpose each of these is: Gui_upload and upload
    What is the difference between those two?
    Akshitha.

    Hi,
    UPLOAD fm is the old function module which is now obsolete. From 4.6C onwards SAP has delivered new FM's for uploading and that is GUI_UPLOAD.
    the diff is  UPLOAD pops up a box during runtime to accept the file path the GUI_UPLOAD does not pop up any box during runtime instead takes the path as a paramter.
    This is what SAP HELP SAYS
    Files on the Presentation Server
    WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
    The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
    Instead of using the function modules, you can use the static methods GUI_UPLOAD and GUI_DOWNLOAD of the global class CL_GUI_FRONTEND_SERVICES.
    Cheers
    VJ
    Message was edited by:
            Vijayendra  Rao

  • FM GUI_UPLOAD and GUI_DOWNLOAD.

    Hi,
        I am new to ABAP world.I hve been given a task to use FM GUI_UPLOAD and GUI_DOWNLOAD.Plz tell me what these functions do , i mean what's there purpose and how to use them in abap code.Plz provide some easy code so that i can understand them properly.
    Points will be rewarded for useful answeres.
    Thanks.

    Hi Amardeep,
    FM GUI_UPLOAD is used for uploading the file and GUI_DOWNLOAD is used fot downloading the file. For using these FM you need to first create internal table of all fields with character type. While downloading the file, file will be created in exact format of that of internal table and while uploading the file, you need to created the internal table with same structure as that of the original file.
    eg:
    DATA: BEGIN OF T_DATA OCCURS 0,
            SERIAL_NO(18)     TYPE C,
            COMP1(18)         TYPE C,
            COMP2(18)         TYPE C,
            MOTOR1(18)        TYPE C,
            MOTOR2(18)        TYPE C,
            CONTROLLER_NO(18) TYPE C,
            REF_NO(18)        TYPE C,
            BODY_NO(18)       TYPE C,
            PLANT(4)          TYPE C,
            PROD_VERSION(4)   TYPE C,
            PROD_DATE(8)      TYPE C,
          END   OF T_DATA.
    DATA: BEGIN OF T_ERR_DOWNLOAD OCCURS 0.
            INCLUDE STRUCTURE T_DATA.
    DATA:   MSG(60) TYPE C.
    DATA: END   OF T_ERR_DOWNLOAD.
    SELECTION-SCREEN BEGIN OF BLOCK BK1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_FLNM   LIKE RLGRAP-FILENAME OBLIGATORY MEMORY ID M1.
    SELECTION-SCREEN END   OF BLOCK BK1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FLNM.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SYST-CPROG
          DYNPRO_NUMBER = SYST-DYNNR
        IMPORTING
          FILE_NAME     = P_FLNM.
    START-OF-SELECTION.
      PERFORM UPLOAD_FILE.
    PERFORM PREPARE_ITAB.
      PERFORM DISP_ERROR.
    *&      Form  UPLOAD_FILE
          text
    -->  p1        text
    <--  p2        text
    FORM UPLOAD_FILE .
      L_FLNM = P_FLNM.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                = L_FLNM
          FILETYPE                = 'ASC'
          HAS_FIELD_SEPARATOR     = 'X'
          HEADER_LENGTH           = 0
          READ_BY_LINE            = 'X'
        TABLES
          DATA_TAB                = T_DATA
        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 <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " UPLOAD_FILE
    *&      Form  DISP_ERROR
          text
    -->  p1        text
    <--  p2        text
    FORM DISP_ERROR .
      DATA: L_CNT     TYPE N.
      CLEAR: L_FLNM, L_CNT.
      IF NOT T_ERROR[] IS INITIAL.
        CONCATENATE 'C:\Barcode\' SY-DATUM '_' SY-UZEIT '.xls' INTO L_FLNM.
        DESCRIBE TABLE T_ERROR LINES L_CNT.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
          EXPORTING
            INPUT         = L_CNT
          IMPORTING
            OUTPUT        = L_CNT.
        WRITE:/ 'Error occured in ', L_CNT, ' Records'.
        SKIP.
        WRITE:/ 'Error file:', L_FLNM.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
          BIN_FILESIZE                    =
            FILENAME                        = L_FLNM
           FILETYPE                        = 'ASC'
          APPEND                          = ' '
           WRITE_FIELD_SEPARATOR           = 'X'
          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                        = T_ERR_DOWNLOAD
          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.
      ELSE.
        MESSAGE S000 WITH TEXT-008.
      ENDIF.
    ENDFORM.                    " DISP_ERROR
    **Reward points if useful
    Regards,
    Archana

  • BW and SOX

    Dear all,
    I need info on BW query creation and SOX.
    What must be done when creating queries for them to be SOX compliant?
    Any comment on this would be really appreciated.
    Thanks in advance.
    Juan Manuel

    Hi
    We are in the middle of a SOX proccess.
    Let me tell you this, SOX is a big ??? for most.
    so they try to make proccess that Comply (with ???).
    I think that BW is not realy SOX related unless you produce your Fin reports from BW reports (which usually not the case).
    Reg's
    Edan

  • Diff between GUI_UPLOAD and CL_GUI_FRONTEND_SERVICES= GUI_UPLOAD

    i want to upload some records from the flat file to internal table. when i use GUI_UPLOAD function module in tables parameter i have given the work area. but when i use CL_GUI_FRONTEND_SERVICES-=>FILE_OPEN_DIALOG and then CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD i have given the internal table body in the changing parameters. my doubt is we have used GUI_UPLOAD in both occassions but when we use GUI_UPLOAD alone we are giving the internal table workarea but when we use it along with class CL_GUI_FRONTEND_SERVICES we are giving the internal table body. whats is the reason or logic behind this?.

    Hi guys -- the answers you've given are correct but an example IMO is 100% better
    go_guiobj type ref to cl_gui_frontend_services.,  "For Windows file dialog
    form load_data using    e_file type string
                            e_table.
      field-symbols <int_table> type standard table.
      assign e_table to <int_table>.
      if go_guiobj is initial.
        create object go_guiobj.
      endif.
      call method go_guiobj->gui_download
        exporting
          filename              = e_file
          filetype              = 'ASC'
          write_field_separator = 'X'
        changing
          data_tab              = <int_table>.
    endform
    * For Directory look up service (Windows)
    at selection-screen
      on  value-request for p_direct.
        search_path = p_direct.
        perform directory_lookup using search_path.
        if not gv_folder is initial.
          p_direct = gv_folder.
        endif.
    form directory_lookup using directory type string.
      if go_guiobj is initial.
        create object go_guiobj.
      endif.
      call method go_guiobj->directory_browse
        exporting
          window_title    = 'Select Directory'
          initial_folder  = directory
        changing
          selected_folder = gv_folder.
    endform.                    "directory_lookup
    Cheers
    jimbo

  • GUI_UPLOAD and UNICODE or UTF-8

    Hello,
    I wanted to convert some files in SAP, i.e. :
    - data is processed in MS Excell and saved as Unicode file
    - I read the file into SAP, process the strings and write it back
    The problem is that there are some special polish characters in the file. I read the file using GUI_UPLOAD FM, but I didn't manage not to have these special characters replaced (by # by default).
    Anyone came across this problem before?
    Regards,
    Michal

    Hello Satya,
    Actually I forgot to write that I used the CODEPAGE parameter... I tried two cases:
    1. Save as Unicode (in Excel or Notepad) and than use CODEPAGE = "4103"
    2. Save as UTF-8 in Notepad and use CODEPAGE = "4110"
    In both cases the polish caracters are replaced by '#'.
    In fact I tried many other code pages (all from tcp00a), but all other combinations return an error.
    Regards,
    Michal

  • GUI_UPLOAD and OPEN DATASET

    Hi,
    My code takes data from a file.
    I want to have an option of loading file from presentation server as well as application server (in case of background).
    For this I am using a checkbox and depending on its value I call the FM GUI_UPLOAD (presentation server) or OPEN DATASET (for app server).
    Is this the right approach or there is a single FM available which can be used to upload file in both the scenarios.
    Thank you,
    CD

    Hi
    You're right, I don't believe there's a std fm to do that.
    Anyway try to check the function group like C13Z
    Max

  • GUI_UPLOAD and Unicode

    Hi,
    I want to use GUI_UPLOAD to load an ASCII file with Czech Characters. I try to save my file in .txt format UTF-8. If i read the file with notepad then i have all my characters but when i load in SAP I lost some characters - Who have a solution - I'm in 4.6C - I put in SAPlogon page code 1404 and language CS .
    DATA: BEGIN OF f1  OCCURS 0,            
          altkn(10)    TYPE c,
          bldat(10)     TYPE c,               "tt.mm.jj
          rart(15)     TYPE c,
    insert michel
          zuonr(18),
          xblnr(20)    TYPE c,
        name1(40)    TYPE c,
          waers(5)     TYPE c,
          brutt(13)    TYPE c,
          fwbtr(13)    TYPE c,
          faedt(10)    TYPE c,
          zterm(4)     TYPE c,
          kunnr(10)    TYPE c,
          sgtxt(49)    TYPE c, => i can find VAN&#282;K
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = pcfil
       FILETYPE                      = 'BIN'
          has_field_separator           = fsepa
        HEADER_LENGTH                 = 0
        READ_BY_LINE                  = 'X'
        DAT_MODE                      = ' '
         CODEPAGE                      =  'UTF8'
        IGNORE_CERR                   = ABAP_TRUE
        REPLACEMENT                   = '#'
          CHECK_BOM                     = 'X'
        IMPORTING
           filelength                    = rc
         HEADER                        =
        TABLES
          data_tab                      = f1
         EXCEPTIONS
          file_open_error               = 1
    Thanks

    Same problem - To keep all the accents, i must save in UTF-8 and i have the same problem with gui_upload.I've just seen that my function GUI_UPLOAD in this system (4.6C) is not the same than in 4.7 - Only these parameters for export -
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      =
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
    I don't have the possibility to choose the codepage. Perhaps it's the reason ?

  • GUI_UPLOAD and OS

    hi all
          i am using the function module GUI_UPLOAD in my code , i want to know as this FM takes file from presentation server and uploads  it to application server, so on presentation server is thr any relation between OS or any files from OS are related for this FM?
    Regards
    Martin

    hi martin,
    just try this code which can save ur presentation server file to the application server,
    REPORT  zbdc_test_open_data_set.
    PARAMETERS: file(200) TYPE c.
    DATA: BEGIN OF g_itab OCCURS 0,
          kunnr TYPE kunnr,
          land1 TYPE land1_gp,
          name1 TYPE name1_gp.
    DATA: END OF g_itab.
    SELECT kunnr
           land1
           name1
           FROM kna1
           INTO TABLE g_itab.
    OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    LOOP AT g_itab FROM 1 TO 3.
      TRANSFER g_itab TO file.
    ENDLOOP.
    CLOSE DATASET file.
    save and excute..
    then go to t.code. al11 ->,
    select home in that ->,
    find ur file name(which u have given in the parameter input of the report) and double click on that, u can see details of the file..
    regards.
    seshu...

  • SAP NW BPM and NW CE in heterogeneous system landscape and SOX

    Hi,
    Does anybody have experience with implementation of SAP NW BPM in a heterogeneous system environment (SAP, non-SAP, Legacy) in regards to detailed audit requirements (SOX compliance)? SAP Business Workflow is well established regarding SOX compliancy. But, what about NW BPM?
    Thanks for you replies in advance.
    Shahram

    Hi Shahram,
    Not sure about the way you are implementing BPM in SAP/NonSAP scenario, but in BPM you can have detailed reporting and analytics for auditing purpose.
    You can also create your own data source and pass data values from the process.
    Check : [Real-Time Reporting|http://help.sap.com/saphelp_nw72/helpdata/en/a1/bde4657d1f42e3a7c698d16a699635/content.htm]
    -Abhijeet

  • Material Groups and SOX

    Our users create shopping carts in SRM.  For the catalog orders, the material group is automatically determined based on the UNSPSC code that is being passed back from the vendor.  However, for those non-catalog orders, users must select the appropriate material group.  We are finding that not always the best material group is selected.  At the time of PO creation, I have been telling the users to change the material group to something more appropriate.  Now, I'm being told that this could be an issue with SOX.  Does anyone know why?
    Is there another solution for changing the material group?  Is there a second field within the material group config that can be used or some other field on the PO?  We are not using material masters in SRM.  It was a major headache prior to SRM and I don't see that changing anytime soon.
    Monique Stephens

    >
    Monique Stephens wrote:
    > Training is not the issue.  Material groups are a matter of personal preference.
    >
    > My main concern is if it would be a violation of SOX if the material group is changed from the original shopping cart on the PO itself.
    >
    >
    > Monique
    If your business is privately held then SOX does not apply to you. If your business has stock w/shareholders then it does.
    Correcting or making the material group more accurite is something that would be MORE SOX complient and not a violation.

Maybe you are looking for

  • "The iTunes Library.itl file cannot be found or created."

    I have tried all to suggestions for moving around the old library and this is still the only thing I have gotten from the upgrade, as of yet. The message appears when trying to get into iTunes thu any source; desktop shortcut, thu the start menu, or

  • How to install and run nzclient on windows?

    Hi, We have a requirement run an interface from oracle to netezza table to table transfer from our local machine. For this we need to install the nzclient to run the nzload.Please help with your views /experiences in installing the nzclient on window

  • Exporting to PDF, images are disappearing...

    Hi, I've never experienced this before so hopefully somebody knows how to fix it. When I export my InDesign document to a PDF (print quality), some of my imagery disappears. I don't have any imported imagery, I'm talking about text, lines and color b

  • Can't locate files in Muse project

    When following project and told to go to file - Place Photoshop button a window opens with no files. What's wrong?

  • How do I do a line of best fit graph!!?

    Hi guys, I need to do a line of best fit graph comparing two sets of numbers. I have the info on a scatter graph but can not find how to insert a line of best fit. The other graph options dont represent the data correctly. any help would be appreciat