‎2007 Apr 09 6:06 PM
Hi,
Is there any standard transaction in SAP which allows you to upload data from the presentation server to the application server?
‎2007 Apr 09 6:08 PM
‎2007 Apr 09 6:08 PM
‎2007 Apr 09 6:09 PM
No, i think we dont have any such transactions..
U need to use the GUI_UPLOAD Fm to copy the Presentation server file into and Internal table and then u need to use OPEN DATASET and CLOSE DATASET a nd TRANSFER to save the data into Application server !!!
regards,
sai ramesh
‎2007 Apr 09 6:15 PM
Hi,
<b>CG3Z</b> is the transaction to upload data from <b>Presentation server to Application server</b>.
<b>CG3Y</b> is the transaction to upload data from <b>Application server toPresentation server</b>.
Thanks,
Vinay
‎2007 Apr 09 6:23 PM
Thank you all for your response!!!
The transaction <b>CG3Z</b> is creating a few problems for me when loading the file to the application server. The problems is that the file I am trying to read has lines of upto 476 characters. While reading the file, the transaction reads only the first 250 (Not sure of the exact number here) or so characters of a line and truncates the remainder.
Is there a work-around this problem or do I have to create a program to load the file into the application server?
Thanks in advance,
Divyaman
‎2007 Apr 09 6:36 PM
You don't have an option as the itab in the underlying Std Program is declared as
l_data_tab(256). You will have to use a custom version to meet your reqt. Pl take a look at the source code of the function module C13Z_FILE_UPLOAD_ASCII to get an idea.
~Suresh
‎2007 Apr 09 6:41 PM
Hi,
Please check this programs perhaps they may help.
RPCIFU03 - Download Unix File to PC
RPCIFU04 - Upload PC File to Unix File
Regards,
Ferry Lianto
‎2007 Apr 09 7:53 PM
Hello all,
Thanks for your response! I have finally managed to figure it out. All the data in my file is getting uploaded into the application server using the transaction <b>CG3Z</b>. But I am able to see only a part of the entire line(s) because the display size is small. If I download the same file from the application server to the presentation server using the transaction <b>CG3Y</b>, I see all the data that I wanted to upload in the application server.
Thanks,
Divyaman
‎2007 Apr 17 12:48 PM
Hi,
I am now facing the same problem which I was facing earlier while uploading and reading a file from the application server. Only the first 256 characters of each line (which are 477 characters long) were being displayed in <b>AL11</b>. Earlier, I thought that the screen in <b>AL11</b> displays only the first 256 characters in each line because of a limited display size. I confirmed this by downloading the file from the application server and opening it in notepad. The downloaded file had all the 477 characters in each line.
But again, when I recently uploaded the file again from the presentation server to the application server, I discovered that when I download the same file back to the presentation server, the downloaded file contained only the first 256 characters in each line. I don't know why this is happening now but it definitely means that the entire line is not being uploaded into the application server.
I might have discovered the root cause of the problem. AFAIK, the <b>CG3Z</b> transaction uses the <b>transfer</b> statement to write text into the file. And from what I know, the transfer statement can transfer only a maximum of 256 characters in a single. The rest of the characters in the line get truncated. Is there an alternate way to write text into the file?
Thanks in advance,
Divyaman