Skip to Content
author's profile photo Former Member
Former Member

date mask in cl_gui_frontend_services=>gui_upload

Hi all,

I am trying to upload a file using cl_gui_frontend_services=>gui_upload.

here is the interface for that

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD

EXPORTING

FILENAME = V_FILE

FILETYPE = 'DAT'

DAT_MODE = 'MM/DD/YYYY'

CHANGING

DATA_TAB = I_FILE

EXCEPTIONS

.........

What should I give in the DAT_MODE to get the date in MM/DD/YYYY format.

Thanks in advance.

Goldie.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 31, 2008 at 09:04 PM

    *DAT_MODE Type CHAR01 *

    CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = l_filename
          filetype                = 'BIN'
        IMPORTING
          filelength              = flen
        CHANGING
          data_tab                = datatab[]
        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
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
      IF sy-subrc NE 0.
        WRITE: / 'Error uploading file'(003), l_filename.
        EXIT.
      ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.