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

moving file from presentation to application server vice versa

Former Member
0 Likes
715

hi friends,

can u please help me how the .xls file can be transfer from presentation to application server, and if the file is in application server how to transfer it to presentation server...........

advance thanks to all.........

regards,

ranjith.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
633

use the transactions.

CG3Y and CG3Z

Regards,

Ravi

hi friends,

can u please help me how the .xls file can be transfer from presentation to application server, and if the file is in application server how to transfer it to presentation server...........

advance thanks to all.........

regards,

ranjith.

4 REPLIES 4
Read only

Former Member
0 Likes
634

use the transactions.

CG3Y and CG3Z

Regards,

Ravi

Read only

Former Member
0 Likes
633

Hi,

Both the above required functions can be achieved using OPEN DATASET and CLOSE DATASET.

Try this and it will help u.

Regards,

Himanshu

Read only

Former Member
0 Likes
633

To move a file from presentation layer to application layer,

call function Gui_upload and load save that file contents into an internal table.

Now write that Table table into application layer using

OPEN DATASET <FILENAME> FOR INPUT.

loop at internal table into <work area>

TRANSFER <workarea> TO Filename.

endloop.

The above creates a file in Application Layer.

To read a file from application

OPEN DATASET <FILENAME> FOR INPUT.

read dataset <filename > into <workarea>.

close dataset,

now u will have a internal table with the contents of file in application layer.

Use GUI_download to write file to presentation layer.

Regards

Read only

Former Member
0 Likes
633

Hi Ranjith,

there are two function modules you can use....

C13Z_FRONT_END_TO_APPL to go from presentation to application server

C13Z_APPL_TO_FRONT_END to go from app server to front end

Mick Kelly