‎2006 Dec 19 8:03 AM
hello gurus,
this below code works fine now
TABLES mara.
DATA:BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
mtart LIKE mara-mtart,
matkl LIKE mara-matkl,
END OF itab.
DATA:file(200) TYPE c VALUE <b>'F:\usr\sap\DEV\DVEBMGS00\data\X.txt'</b>
IF sy-subrc EQ 0.
SELECT matnr mtart matkl
FROM mara INTO TABLE itab
WHERE matnr = matnr.
ELSE.
ENDIF.
OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ 0.
LOOP AT itab.
TRANSFER itab TO file.
ENDLOOP.
ELSE.
ENDIF.
CLOSE DATASET file.
i want to have my own folder creation in al11
how can i achieve this
instead of this 'F:\usr\sap\DEV\DVEBMGS00\data\X.txt'
i want to have as 'F;\XXX\X.txt'
i tried to create in al11 but not able to do so
waiting for u r replies
senthil
‎2006 Dec 19 9:24 AM
Hi Senthil,
Check if you have access to the application server. You will have to explicitly create a folder there.
You cannot create a folder usine AL11.
Regards,
Chetan.
PS:Reward points if this helps.
‎2006 Dec 19 9:21 AM
‎2006 Dec 19 9:23 AM
Basically, you need to ask the basis guys to help you out in creating the folder also if you need to parametize the file path you can use the transaction FILE to define the path and the functions FILE_GET* to return the values.
Regards
Anurag
‎2006 Dec 19 9:24 AM
Seems this is shared drive(<b>F:\</b>), have your tried creating via Windows Explorer???
And have you tried executing this program in background???
Kind Regards
Eswar
‎2006 Dec 19 9:24 AM
Hi Senthil,
Check if you have access to the application server. You will have to explicitly create a folder there.
You cannot create a folder usine AL11.
Regards,
Chetan.
PS:Reward points if this helps.
‎2006 Dec 19 9:27 AM
thanx for all u r replies
i have tried it creating explicitly also but it
doesn't seems to work
only the directoreis which are creted in al11 works
to transfer the data to application server
so i have access to create directories in al11 also
if not so to be creatd via al11 ??
how this can be achieved
senthil
‎2006 Dec 19 9:55 AM
One way would be, using FTP commands in Command prompt...
Before that, make sure the directory where you need to create a new one has RW privilages...
Kind Regards
Eswar
‎2006 Dec 19 10:03 AM
In AL11, you have CONFIGURE button. probably that can be used to create directory.
‎2006 Dec 19 9:26 AM
Hello Senthil,
U cannot create directory using AL11. U will need to take help of Basis guys also AL11 will display u only SAP related directories and nothing outside. So if u create any other directory outside SAP will not be visible through AL11.