Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

Is there any permission or header file needed while read a server file from client

$
0
0
Hi,
I am new to ERP Ln.

I want to read a server file from client. but while open a file by using seq.open,

I got a error as "Error in file opening"...

Here i attach my script and plz anybody assist me....

|Checking where the customer ASCHI file is available or not in the server path
fd = dir.open(file.path)
if fd < 0 then
message("file path not available in the server")
|mess("zmadms0046", 1, fpath)
|* Directory Handling Errors: %1$s
exit(1)
endif

fname = dir.entry(fd, TFILE, TFILE , size, STAT_READABLE)
message("file %s",fname) |Find the name of the file

fp = seq.open(fname, "r")
if fp < 0 then
message("%d error in file opening",fp)
|mess("zmadms0036", 1, fname)
|* File Opening Error: %1$s
e = seq.close(fp)
exit(1)
|continue
else
|* file found - do.something......
message("file found")
e = seq.close(fp)
endif


}

Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>