Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exporting and importing parameters

Former Member
0 Likes
1,679

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,442

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

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,443

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

Read only

Former Member
0 Likes
1,442

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.

Read only

Former Member
0 Likes
1,442

Hi,

Thanks for your replies.......

May i know what is the function of the import parameters then, and how they work.

Thanks,

Dhiraj

Read only

0 Likes
1,442

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