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 data into Application Server

Former Member
0 Likes
1,367

Hi,

Is there any standard transaction in SAP which allows you to upload data from the presentation server to the application server?

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
1,177

CG3Z

~Suresh

8 REPLIES 8
Read only

suresh_datti
Active Contributor
0 Likes
1,178

CG3Z

~Suresh

Read only

Former Member
0 Likes
1,177

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

Read only

Former Member
0 Likes
1,177

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

Read only

0 Likes
1,177

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

Read only

0 Likes
1,177

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

Read only

ferry_lianto
Active Contributor
0 Likes
1,177

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

Read only

Former Member
0 Likes
1,177

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

Read only

Former Member
0 Likes
1,177

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