Hello experts,
I am using OPEN DATASET, TRANSFER and CLOSE DATASET instead of the GUI_DOWNLOAD since it is not able to work in batch mode.
When I used my program to donwload into some pre-defined logical path of my server GUI_DOWNLOAD worked OK.
Now, I am trying to do the same but as far as I experienced OPEN DATASET doesn't allows me to input a different path which is not the (internally, and I don't know how it is...) predetermined. This is an extract from the coding:
data: D_MSG_TEXT(50), myFN(128) type c.
open dataset myFN for output
in text mode
encoding default
with WINDOWS LINEFEED
message D_MSG_TEXT.
break-point. "<-- When I debug D_MSG_TEXT shows "Permission denied" msg
if sy-subrc ne 0.
*** ErrorMsg ***
else.
loop at itab into xtab.
transfer xtab to myFN.
endloop.
endif.
close dataset myFN.
If I enter as parameter: mytest1.csv (then it creates the file into this path: "usr/sap/MYSRV/instance/work")
But if I enter the complete path as I want:
myserver\info\mytest1.csv, it doesn't works and D_MSG_TEXT shows "Permission denied", only in debugging mode.
I talked to the basis team and they say everything is ok in authorization matters. Is there something wrong or that I am forgetting to use? Please need your help.
Best regards,
Bernardo