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

IDOCs

Former Member
0 Likes
733

Hi,

I am trying to write the Idoc to a file on the Presentation server.

i am getting a message as below

The IDoc was written to file '
DocumentsandSettings\ahmedmsy\Desktop\O_235_0000000000310078'.

However no file exist at that location.

ths status of the idoc is 3. and it says "Data passed to port OK".

When i give the file path of application server for e.g. /tmp/

then the idoc is creating a file in the location and it exists there as well.

I am giving the filepath in WE21 and my port is a file port and the outbound file is a physical directory.

Can anyone help me in generating a file on the presentation server.

Thanks

1 ACCEPTED SOLUTION
Read only

h_senden2
Active Contributor
0 Likes
711

The file will not written to the presentation server, but to the application server (Unix or so), and particular in directory
DocumentsandSettings\ahmedmsy\Desktop\ or something like that.

regards,

Hans

Please reward all helpful answers !!!!!

4 REPLIES 4
Read only

h_senden2
Active Contributor
0 Likes
712

The file will not written to the presentation server, but to the application server (Unix or so), and particular in directory
DocumentsandSettings\ahmedmsy\Desktop\ or something like that.

regards,

Hans

Please reward all helpful answers !!!!!

Read only

Former Member
0 Likes
711

Hi Hans

Thanks for taking the time to reply to my query.

In we21 in file port

In outbound file Tab if we press F1 then it says input the filename in this format

" Under the UNIX operating system : /usr/sap/T70/SYS/global/idoc/

Under the Windows operating system:
sapdevdb\sapmnt\T70\SYS\global\idoc\

Do not forget the last slash, as the file name is simply appended as a directory! In the example T70 is the name of the R/3 system.

"

So does it mean that we cannot write to presentation server at all.

Read only

h_senden2
Active Contributor
0 Likes
711

ok, you're right, but sometimes idocs are written in background mode, so there is no link to the presentation server.

Maybe it's better to always write it to the application server, and look at the file by using transaction AL11.

If you need the file on the presentation server, you can write kind of a ftp program by using GUI_DOWNLOAD.

regards,

Hans

Please reward all helpful answers !!!!!

Read only

Former Member
0 Likes
711

Dear Hans

Is there any means of attaching the download program to the Idoc procesing so that every time an idoc is generated the Download program also get executed and the file is saved at a particular location specified.

Your kind reply is much appreciated.

Thanks