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: 

how to create a folder in server using abap at client?

Former Member
0 Kudos

Hello, everyone,

I would like to know how to create a folder in server using abap, and the folder can save date by writting?

I have not find the solution.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

USE SM69 with OS command MKDIR

USE FM 'SXPG_COMMAND_EXECUTE' to run this command

and store that data using DATASET.

5 REPLIES 5

Former Member
0 Kudos

USE SM69 with OS command MKDIR

USE FM 'SXPG_COMMAND_EXECUTE' to run this command

and store that data using DATASET.

Former Member
0 Kudos

Hi,

you must create a command ZMD in the transaction sm69 then use it by calling the system command related by the other user answer.

Rhea.

Former Member
0 Kudos

Hi,

Create one external unix command in SM69.

In that transaction, input "MKDIR" in the "Operation system command" field.

in the "Parameters for operating system command" input "&"

Lets say the external command you created is "'ZMKDIR'".

Now we need to call this in ABAP.


data: w_output TYPE SXPGCOLIST-PARAMETERS VALUE '/tmp/NEWDIR' ,
 
w_command TYPE SXPGCOLIST-name VALUE 'ZMKDIR'.
 
 CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
  EXPORTING
    commandname                         = w_command
    ADDITIONAL_PARAMETERS           = w_output
 IMPORTING
   STATUS                               = w_status
 TABLES
   EXEC_PROTOCOL                        =  LOG

former_member188685
Active Contributor
0 Kudos

Simple solution using OPEN DATASET

Former Member
0 Kudos

Hi, everyone, thanks for your help,

but I want only use abap to relized it. anyone know ?

Just like GUI_CREATE_DIRECTORY function to realize. when I running it , the system apper on 'core dump' error.

why?'