‎2005 Oct 11 11:55 AM
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.
‎2005 Oct 11 1:24 PM
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
‎2005 Oct 11 1:24 PM
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
‎2005 Oct 13 6:06 AM
Hi john,
ws_upload is to upload file from the presentation server, but i need the file to be uploaded from message server.
‎2005 Oct 11 2:00 PM
hi,
or use sapftp - function group SFTP
(example RSFTP004)
Andreas
‎2005 Oct 13 6:16 AM
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
‎2005 Oct 13 6:34 AM
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.
‎2005 Oct 13 6:43 AM
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
‎2005 Oct 13 7:33 AM
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?.
‎2005 Oct 13 12:08 PM
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
‎2005 Oct 13 6:39 AM
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