01-28-2014 12:40 PM
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
01-29-2014 6:27 AM
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
01-28-2014 2:05 PM
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
01-29-2014 6:27 AM
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