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

Reading File From Message Server.

aaruljothi
Participant
0 Likes
1,042

Hi,

I want to upload a file in the message server into an internal table in my program.I konw the server by its IP.

Can anybody help me in this.

thanx for spending your time.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,005

arul,

use function module ws_upload in your program well in this you will have to specify the file path whose file content will get copy to internal table.

hope this help you.

- john

9 REPLIES 9
Read only

Former Member
0 Likes
1,006

arul,

use function module ws_upload in your program well in this you will have to specify the file path whose file content will get copy to internal table.

hope this help you.

- john

Read only

0 Likes
1,005

Hi john,

ws_upload is to upload file from the presentation server, but i need the file to be uploaded from message server.

Read only

andreas_mann3
Active Contributor
0 Likes
1,005

hi,

or use sapftp - function group SFTP

(example RSFTP004)

Andreas

Read only

Former Member
0 Likes
1,005

Hi Arul,

What do you mean by message server . Do you mean application server . You can read files from application server directly by using command READ DATASET.

Cheers

Read only

0 Likes
1,005

Hi sanjay,

Pls start ur logon pad

Select server button and find the message server ip which is editable.

i want to load file from this server and i also want to know what this message server is.

Read only

0 Likes
1,005

Hi Arul,

SO this is the IP of your message server . In one SAP installation you can have one or more than one application servers . When a user logs on the request is send to this message server and the message server decides which application server the user should be logged on based on free work processes ( this is only when more that one application servers are ther ). Message server is installed on one of the application servers . You can see the applications servers in SM51 .

Also check this

http://help.sap.com//saphelp_470/helpdata/EN/69/c24e034ba111d189750000e8322d00/content.htm

http://help.sap.com//saphelp_470/helpdata/EN/35/2a7ea3aae85cd5e10000009b38f974/content.htm

To read a file from message server I guess you can directly use -

OPEN DATASET <PATH/FILENAME>.

READ DATASET <PATH/FILENAME> INTO <WA>.

Cheers

Read only

0 Likes
1,005

Sanjay,

Can u tell me the path/filename parameter should be because the open datset is not working for my given path.

Can the IP be specified in the path?.

Read only

0 Likes
1,005

Hi Arul,

The path filename is the path / filename on the application server . For example /tmp/test.txt in unix .

The file should exist on the operating system of the application server and the file should have appropriate permissions to read . Otherwise read dataset has no meaning . I am also not sure why you need FTP . Is the file located on some other system which you are trying to read. Please give more details of file you want to read and where it is located.

Cheers

Read only

Former Member
0 Likes
1,005

Hi Arul,

The function of the message server in the ABAP environment is to transfer requests between the application servers.

The application layer consists of one or more <b>application servers and a message server</b>. Each application server contains a set of services used to run the R/3 System. Theoretically, you only need one application server to run an R/3 System. In practice, the services are distributed across more than one application server. This means that not all application servers will provide the full range of services.

<b>The message server is responsible for communication between the application servers. It passes requests from one application server to another within the system. It also contains information about application server groups and the current load balancing within them. It uses this information to choose an appropriate server when a user logs onto the system.</b>

Also check this link,

<u>http://www.sapgenie.com/basis/</u>

Thanks,

Ruthra