‎2012 Oct 12 8:51 PM
Hello,
We are bulding a product using ABAP which we are going to distribute among all our customers to install at their place.
The plan is to build a program which download some flat files to application server using Datasets.
My question is , is there any way we can create our own folder in application server using the program ?
If the answer is yes, that should work for all the operating systems.
for example one customer may have his application server on unix and the other may have on windows.
Our program should be able to create a folder in the application server through the program no matter on which OS that application server is installed.
Appriciate your ideas.
Thanks.
‎2012 Oct 12 8:56 PM
hello,
check these links -
http://scn.sap.com/thread/1515129
http://scn.sap.com/message/8059575
http://scn.sap.com/message/6294517#6294517
best regards,
swanand
‎2013 Jan 24 1:16 PM
Hi Ramesh,
The following code for create folder in application server.
DATA: l_com TYPE rlgrap-filename.
CALL FUNCTION 'PFL_CHECK_DIRECTORY'
EXPORTING
directory = directory " Application server path(\\test\test1\test2)
EXCEPTIONS
pfl_dir_not_exist = 1.
IF sy-subrc = 1.
CONCATENATE 'cmd /c mkdir' directory INTO l_com SEPARATED BY space.
CALL 'SYSTEM' ID 'COMMAND' FIELD l_com.
ENDIF.