Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating folder in Application server (should work on different operating systems)

ramesh_putta
Participant
0 Likes
741

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.

2 REPLIES 2
Read only

Former Member
Read only

Former Member
0 Likes
391

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.