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

Uploading big files from client

gastn_jareo
Active Participant
0 Likes
1,145

I have to upload a really big text file from the client PC. GUI_UPLOAD function cancells because out of memory. Since I have to process line by line I really don't need the entire file on memory at same time so I thought about a method of reading the first line of file, process them, discard them and read the next one and so on until end of file. This process should work for me.

I thought OPEN and READ DATASET should work but I realised that instructions are for files on SAP server, not from PC.

Does anybody know how to work like this with a file at client machine?

Thanks!

I have to upload a really big text file from the client PC. GUI_UPLOAD function cancells because out of memory. Since I have to process line by line I really don't need the entire file on memory at same time so I thought about a method of reading the first line of file, process them, discard them and read the next one and so on until end of file. This process should work for me.

I thought OPEN and READ DATASET should work but I realised that instructions are for files on SAP server, not from PC.

Does anybody know how to work like this with a file at client machine?

Thanks!

4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
959

you can upload/ download the file from PC to application server using

CG3Y and CG3Z tr. and then use open dataset... read dataset..

Read only

0 Likes
959

I know transaction CG3Z but I wanted a solution from client side if it's possible.

Thanks anyway.

Read only

0 Likes
959

one more option is place the file in FTP server connect to that server using FTP connect you can find some FM to do this.. you need to have a RFC connection to be defined to that Server... call the file thru FTP thru ur program and upload data to your internal table...

Read only

Former Member
0 Likes
959

HI Gaston,

Upload the file on the PC to application server using CG3Z.

Then use the

OPEN dataset/ READ Dataset statements.

OOPS!! Jay has already answered...please disregard my answer..

Regards,

ravi Kanth Talagana

Edited by: Ravi Kanth Talagana on Jun 20, 2008 8:47 PM