‎2007 Jun 18 7:45 PM
Hi Guys,
I am using Open dataset for downloading the data into Application server .I am getting the error file path is not opened but in al11 i was able to see the path what i mentioned here except bseg.txt file.I am getting error at Open data set statement.I have to write the bseg table data into the file bseg.txt in application server.can any body suggest the solution for this problem.
Very urgent.
wa_BSEG_file = '/interfaces/DR1/MM/outbounb/ZMMOF3007/BSEG.txt'.
OPEN DATASET wa_BSEG_file FOR OUTPUT "Write to appl. server
IN TEXT MODE
Encoding default. "Open dataset Return code
IF sy-subrc = 0.
TRANSFER it_cosp1 to wa_BSEG_file.
Write : 'File Transferred BSIK'.
ELSE .
Write : 'File Not Found / Transferred BSIK'.
ENDIF.
CLOSE DATASET wa_BSEG_file.
Very urgent.Full marks will be alloted if u give me the correct answer.
Thanks,
Gopi.
‎2007 Jun 18 7:59 PM
check with path : '/interfaces/DR1/MM/outbounb/ZMMOF3007/BSEG.txt' - do compare with AL11 ( It should same as AL11 File Path - this is case sensitive )
‎2007 Jun 18 8:03 PM
Hi Seshu,
The path is correct .I write exactly same as in AL11.Can u plz tell me how to solve this one Very Urgent Plzzzzzzzzz.
Thanks,
Gopi.
‎2007 Jun 18 8:10 PM
it should be file path problem,keep the file path as lower case.
for testing purpose - create one file at desktop.
now use SXDB Transaction ->here you can copy from local file to Application server files..
Let me know -- what is ur version ?
‎2007 Jun 18 8:32 PM
‎2007 Jun 18 8:03 PM
Hi,
Due to serveral reasons
1. Check whether you have proper authority in the directory?
2. check the whether any files with same name?
3. use addition message in the open dataset statement so that you can know the system message it getting.
DATA: msg(100).
OPEN DATASET wa_BSEG_file FOR OUTPUT MESSAGE msg
IN TEXT MODE Encoding default.
aRs
‎2007 Jun 18 8:25 PM
Hi aRs,
I kep message msg like what u said in open data set. I debugged the program and sawed .In msg i got "No such file or Directory" But in application server i want and sawed in al11 tr code. there i was able find the path what i mentioned.can u plz tell me the solution for this.
Thanks,
Gopi.
‎2007 Jun 18 8:05 PM
Keep a breakpoint in OPEN DATASET & check in debugger whether the filename is not turned to upper case.
Regards,
Sail
‎2007 Jun 18 8:32 PM
Hi,
Check your path wa_BSEG_file with that in AL11. It will be case sensitive. change your path in the program as same your's in AL11.
aRs
‎2007 Jun 18 8:39 PM
Hi aRs,
I had done like what u told I copied the path from AL11 into wa_BSEG_file .
I declared wa_BSEG_file as
wa_BSEG_file TYPE file_table-filename Is it correct way of defineng or not?.if so does we need to run the program in background or running in foregorund is not a problem.
Thanks,
Gopi.
‎2007 Jun 18 8:44 PM
Hi,
If your file name is not changing dynamically, then your declaration will not be a problem.
if changing dynamically. then you need to use logical file name using transaction FILE.
If your run the program in background or foreground that doesn't affect the writing file to application server.
aRs
‎2007 Jun 18 9:05 PM
Hi Guys,
I Succesfully downloaded the data into Application server.can any body tell me how to save that data into my Presentation server.
Thanks,
Gopi.
‎2007 Jun 18 9:08 PM