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

Read a File

Former Member
0 Likes
990

Hi all,

How to Read a File from NON-SAP Application Server.

The File will be in any format. It will not be displayed in AL11.

6 REPLIES 6
Read only

Former Member
0 Likes
948

Hi Gopi,

You can use CG3Y/CG3Z transactions to download/upload the file from AL11

if you want to code it in program, you can use

OPEN DATASET <Filename>......

READ DATASET

CLOSE DATASET.

Read only

0 Likes
948

Hi chandra,

The File is not in AL11 which means it is not in the SAP Application Server.. It is in a seperate Server.

Read only

Former Member
0 Likes
948

Hi Gopi,

Try this also,

Use this function module 'DX_FILE_WRITE' for create file to application server.

Regards,

Vishvesh

if helpful, rewards it.

Read only

Former Member
0 Likes
948

Hi Gopi,

U can use functional module

1. WS_UPLOAD - upload file into internal table

2. WS_DOWNLOAD - Download file into Excel or notpad

or u can use.

1. GUI_UPLOAD and GUI_DOWNLOAD

thanks

regards,

s.muthu

Read only

Former Member
0 Likes
948

Hi Gopi,

First you need to copy the file from Non-SAP Server to SAP Application server using file transfer machanism (FTP etc..).

once the file is transfered, use AL11 to view the file in the respective path where you stored the file (some time you can't view all the data in the file in AL11)

use the transaction CG3Y to download the file from SAP APP server to desktop and view the file.

use the transaction CG3Z to upload the file from desktop to SAP APP server.

Regrads,

Boobalan Suburaj

Read only

Former Member
0 Likes
948

Hi Gopi,

Did you able to find the solution to read a file from Non SAP Server.

Kindly let me know...

Regards,

vimal