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

BDC -obsolete functions

Hi all

During the coding of BDC program.

I found function UPLOAD and WS_UPLOAD are obsolete in 4.7 / eneterprise version.

wat are/should to use instead?

Regards

Satheesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 06, 2005 at 10:15 PM

    Hi Satheesh,

    You should use the function module GUI_UPLOAD instead.

    Here is an introduction to you about the SDN forums pointing system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;

    - one 10 points (solved)

    - two 6 points (very helpful answer)

    - many 2 points (helpful answer)

    Regards,

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 12, 2005 at 12:40 PM

    I would recommend to use class CL_GUI_FRONTEND_SERVICES with method GUI_DOWNLOAD & GUI_UPLOAD instead.

    Regards,

    Peter

    Add a comment
    10|10000 characters needed characters exceeded

    • In 46C there is program called BCALV_EXPLOG_DISPLAY. Line 280. You can check it.

      * dump to frontend frontend trace  ">>Y9DK011534
            call method cl_gui_frontend_services=>gui_download
              exporting
      *          BIN_FILESIZE            =
                filename                = 'ALVEXPTRCOFFLINE.TRC'
      *          FILETYPE                = 'ASC'
      *          APPEND                  = SPACE
      *          WRITE_FIELD_SEPARATOR   = SPACE
      *          HEADER                  = '00'
      *          TRUNC_TRAILING_BLANKS   = SPACE
      *          WRITE_LF                = 'X'
      *          COL_SELECT              = SPACE
      *          COL_SELECT_MASK         = SPACE
      *        IMPORTING
      *          FILELENGTH              =
              changing
                data_tab                = lt_dump
              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.  "<<Y9DK011534
            if sy-subrc <> 0.
              message id sy-msgid type sy-msgty number sy-msgno
                   with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            else.
              message i000(0k) with text-006.
              "input trace dumped to ALVEXPTRCOFFLINE.TRC'.
            endif.
          else.
            message i000(0k) with text-007. " no input trace found.
          endif.

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.