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

upload a file from database server

Former Member
0 Likes
500

can u please tell me the function module to upload or download from a database server.

regards

4 REPLIES 4
Read only

Former Member
0 Likes
470

Hi Kiran,

If you need RFC you could use GUI_UPLOAD and GUI_DOWNLOAD.

You could also use methods GUI_UPLOAD and GUI_DOWNLOAD of global class CL_GUI_FRONTEND_SERVICES.

Have a look at this thread for a code sample:

Hope it helps,

Kind Regards,

Sergio

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
470

Hi Kiran,

Try FM GUI_UPLOAD and GUI_DOWNLAOD.

Read only

Former Member
0 Likes
470

Hi Kiran

I believe you want to upload a file from application server.if so check the following function modules :

AICF_DATASET_OPEN_FOR_INPUT

AICF_DATASET_OPEN_FOR_OUTPUT

AICF_SETTINGS_READ_FRM_DATASET

AICF_SETTINGS_WRITE_TO_DATASET

AICF_TABLE_READ_FROM_DATASET

AICF_TABLE_WRITE_TO_DATASET

if you want to fetch from the presentation server ,then you can opt for GUI_UPLOAD.Incase you want to presentation server download then go for GUI_DOWNLOAD.

Hope this helps

Regards

Mohamed Mansoor

Read only

former_member69765
Contributor
0 Likes
470

Hello Mr. Kiran ..

I believe u want to read and write file from APPLICATION server and not DATABASE server. because Normally there is no access to database servers.

So I am telling u about reading and writing from App Server.

To open a file - OPEN Dataset <file_name>.

to read a file - read dataset <file_name> into <structure>.

to write into a file - transfer <structure> to <file_name>

to close a file after reading/writing - close dataset <file_name>.