Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8734

Re: BDC Input for FS00

$
0
0

Hi Dan,

 

 

use GUI_upload to get file data from pc.

 

  types: begin of ty_upload,
       saknr type saknr,
       text type TXT20_SKAT,
       end of ty_upload.
DATA: it_upload type standard table of ty_upload,
      wa_upload type ty_upload.

 

   *get data from file.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename                      = 'specify the file path'
   FILETYPE                      = 'ASC'
   HAS_FIELD_SEPARATOR           = ' '
  TABLES
    data_tab                      = 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
          .
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.

 

Thanks,

Sree



Viewing all articles
Browse latest Browse all 8734

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>