Skip to Content
0
Former Member
Jun 05, 2006 at 03:37 AM

reg data download

19 Views

hai to every one,

i am trying to generate dynamic internal table and whatever value fetched should be downloaded to a flatfile

in this i am facing problem ,

while debugging i can find values in the internal table , while assigning to function module it throws error

please suggest a better way to proceed further

error is...............

"<TABLE>" is not a "STANDARD TABLE". Non-standard tables can only bepassed to IMPORTING, EXPORTING, or CHANGING parameters. parameters.

coding....................

REPORT ZDATAMIGR.

parameters: table(30) type c,

flname type rlgrap-filename.

data tabref type ref to data.

field-symbols <table> type any table.

create data tabref type standard table of (table).

assign tabref->* to <table>.

select * from (table) into table <table>.

CALL FUNCTION 'DOWNLOAD'

  • EXPORTING

  • BIN_FILESIZE = ' '

  • CODEPAGE = ' '

  • FILENAME = ' '

  • FILETYPE = ' '

  • ITEM = ' '

  • MODE = ' '

  • WK1_N_FORMAT = ' '

  • WK1_N_SIZE = ' '

  • WK1_T_FORMAT = ' '

  • WK1_T_SIZE = ' '

  • FILEMASK_MASK = ' '

  • FILEMASK_TEXT = ' '

  • FILETYPE_NO_CHANGE = ' '

  • FILEMASK_ALL = ' '

  • FILETYPE_NO_SHOW = ' '

  • SILENT = 'S'

  • COL_SELECT = ' '

  • COL_SELECTMASK = ' '

  • NO_AUTH_CHECK = ' '

  • IMPORTING

  • ACT_FILENAME =

  • ACT_FILETYPE =

  • FILESIZE =

  • CANCEL =

TABLES

DATA_TAB = <table>

  • FIELDNAMES =

  • EXCEPTIONS

  • INVALID_FILESIZE = 1

  • INVALID_TABLE_WIDTH = 2

  • INVALID_TYPE = 3

  • NO_BATCH = 4

  • UNKNOWN_ERROR = 5

  • GUI_REFUSE_FILETRANSFER = 6

  • OTHERS = 7

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.