2020 Aug 11 11:17 AM
Hi,
Is there any standard class or a method for automatic folder creation in AL11 in background. I have got a FM BRAN_DIR_CREATE but i have to modify this into zFM. Can you suggest any other way.
Thanks,
Hi,
Is there any standard class or a method for automatic folder creation in AL11 in background. I have got a FM BRAN_DIR_CREATE but i have to modify this into zFM. Can you suggest any other way.
Thanks,
2020 Aug 11 11:38 AM
Hi,
try below code
data: filename like rlgrap-filename.
data: begin of table occurs 500,
.....
end of table.
dir = filename = 'mkdir directoryname'.
call 'SYSTEM' id 'COMMAND' field filename
id 'TAB' field table[].
2020 Aug 11 1:00 PM
SAP recommend officially to define the command via transaction code SM49 (= SM69) and the function modules SXPG... Direct kernel call is not supported by SAP.
2020 Aug 11 5:44 PM
Official way: define the command (the one you could use at operating system level) in transaction code SM49 and execute it via function module SXPG_COMMAND_EXECUTE. Search the Web for more information.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |