Application Development 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: 

Create a new Folder in Application Server

Former Member
0 Kudos

Dear Experts,

Please suggest me on how to create a new Folder in Application Server. Please note the Program runs in background. New Folder needs to be created using batch program.

I’ve searched in SCN forums and tried as follows:

·         FM BRAN_DIR_CREATE

·         FM WBMR_CREATE_APPL_FOLDER

·         FM GUI_CREATE_DIRECTORY works, but not in background. Then sy-subrc is always 1 for this FM.

·         I also tried as suggested in http://scn.sap.com/thread/686254 .

·         Command:
CONCATENATE 'mkdir' w_path_new INTO l_com SEPARATED BY space.

CALL 'SYSTEM' ID 'COMMAND' FIELD l_com.

But nothing is working.

Awaiting your suggestions. Please help.

Thanks & Regards,

Sowmya

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello All,

I was able to create a new Folder in Application Server using the Function Module BRAN_DIR_CREATE. It wasn't working because of the authorization to the application server path.

Used appropriate path and now, it is working fine.

Thanks & Regards,

Sowmya


2 REPLIES 2

subbu4sap
Explorer
0 Kudos

Hi Sowmya ,

Try to use the Parallel processing method ( call FM in background as separate task ) for creating folder in background .

FM : SXPG_COMMAND_EXECUTE

Syntax for parallel processing method : ( Try to find the implementing this prcocessing in forums )

Parallel-processing is implemented with a special variant of asynchronous RFC. It’s important that you use only the correct variant for your own parallel processing applications: the CALL FUNCTION <<Function module Name >> STARTING NEW TASK DESTINATION IN GROUP keyword.


Hope this helps.


Regards,

Subbu

Former Member
0 Kudos

Hello All,

I was able to create a new Folder in Application Server using the Function Module BRAN_DIR_CREATE. It wasn't working because of the authorization to the application server path.

Used appropriate path and now, it is working fine.

Thanks & Regards,

Sowmya