2008 Jun 20 7:43 PM
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!
2008 Jun 20 7:45 PM
you can upload/ download the file from PC to application server using
CG3Y and CG3Z tr. and then use open dataset... read dataset..
2008 Jun 20 7:59 PM
I know transaction CG3Z but I wanted a solution from client side if it's possible.
Thanks anyway.
2008 Jun 20 8:14 PM
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...
2008 Jun 20 7:47 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |