2007 Jul 14 1:17 PM
Hi,
Can any one explain how the exporting and imopting parameters work in case of function call.
for example in the folowing code:
CALL FUNCTION DOWNLOAD
EXPORTING
FILENAME = <default file name>
FILETYPE = <default file type>
MODE = <create new or extend>
IMPORTING
FILESIZE = <size of file in bytes>
TABLES
DATA_TAB = <internal table to transfer>
EXCEPTIONS. . . .
Do we have to specify the importin parameters also in the program, and if yes what is the use of specifying them.
Thanks,
Dhiraj
2007 Jul 14 1:27 PM
You need to fill only export parameter and tables parameter
CALL FUNCTION DOWNLOAD
EXPORTING
FILENAME = <default file name> -> specify local file name
FILETYPE = <default file type> 'ASC'
MODE = <create new or extend> comment mode
IMPORTING -> comment import parameters
FILESIZE = <size of file in bytes> comment
TABLES
DATA_TAB = <internal table to transfer> -> give internal table
EXCEPTIONS. . . . uncomment all exceptions
this FM will download the data from internal table data to local file as like.txt or .xls
Thanks
Seshu
2007 Jul 14 1:27 PM
You need to fill only export parameter and tables parameter
CALL FUNCTION DOWNLOAD
EXPORTING
FILENAME = <default file name> -> specify local file name
FILETYPE = <default file type> 'ASC'
MODE = <create new or extend> comment mode
IMPORTING -> comment import parameters
FILESIZE = <size of file in bytes> comment
TABLES
DATA_TAB = <internal table to transfer> -> give internal table
EXCEPTIONS. . . . uncomment all exceptions
this FM will download the data from internal table data to local file as like.txt or .xls
Thanks
Seshu
2007 Jul 14 1:27 PM
In this function module export and import parameters are optional,
you can also pass, each things will have some functionality,
Please go to SE37 and check the IMPORT and EXPORT parameter short text.
regards,
Prabhu
reward if it is helpful.
2007 Jul 14 1:31 PM
Hi,
Thanks for your replies.......
May i know what is the function of the import parameters then, and how they work.
Thanks,
Dhiraj
2007 Jul 14 1:58 PM
Once the FM is download the data,then you want to know how much data is downloaded,what is the file name ,what is the file type you downloaded.
suppose you download some 1000 records ,then import parameter will let you like some bytes transferred.
just uncomment file size filed in import parameter,this varaible will give value.
Thanks
Seshu