Skip to Content
avatar image
Former Member

Create Directory on Application Server using ABAP

Hello,

Does anyone know if it is possible to write ABAP code to create a folder on a directory on the Application Server. If it is possible can anyone please paste the paragraph of code here?

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 28, 2009 at 09:57 AM

    Check function module

    BRAN_DIR_CREATE

    WBMR_CREATE_APPL_FOLDER

    Check threads

    link:[http://www.sapfans.com/forums/viewtopic.php?t=275857]

    Edited by: Keshu Thekkillam on Oct 28, 2009 3:35 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      BRAN_DIR_CREATE is correct but it requires special admin rights to the object  S_RZL_ADM. Does anyone know another function?

      btw. WBMR_... is for creating MIME folders not server directories.

  • avatar image
    Former Member
    Jan 24, 2013 at 01:09 PM

    Hi jamison,

    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.

    Add comment
    10|10000 characters needed characters exceeded