Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: Function module BRAN_DIR_CREATE

$
0
0

BRAN_DIR_CREATE won't work if application server is not UNIX.

 

You can ascertain this by looking at the code below, copied from BRAN_DIR_CREATE function, where UNIX style command line option "-p" is used on "mkdir" command. This "mkdir" command syntax will not be valid on a Windows based application server.

 

  COMMAND1(9)= 'mkdir -p '.

  COMMAND1+9(55) = DIRNAME.

 

  CALL 'SYSTEM' ID 'COMMAND' FIELD COMMAND1


ID 'TAB' FIELD TABL-*SYS*.

 

  CLEAR FILE_LIST.

  SRVNAME = SPACE.

 

  CALL FUNCTION 'RZL_READ_DIR'


EXPORTING 

NAME      
= DIRNAME

SRVNAME     = SRVNAME

TABLES


FILE_TBL   
= FILE_LIST

EXCEPTIONS NOT_FOUND  = 1

ARGUMENT_ERROR = 2

SEND_ERROR = 3.

Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>