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 new folder in presentation server(Desktop)

0 Kudos
569

Hi Friends,

How to create a new folder in presentation server.

If any Function module create new folder in presentation server.

Bye

RAHUL

1 ACCEPTED SOLUTION

Former Member
0 Kudos
220

Plz use FM

CALL FUNCTION 'GUI_CREATE_DIRECTORY'

EXPORTING

dirname = 'C:\raj

EXCEPTIONS

FAILED = 1

OTHERS = 2

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

rgsd

rajesh

5 REPLIES 5

Former Member
0 Kudos
220

Hello Rahul,

Try these FM,

GUI_CREATE_DIRECTORY

TMP_GUI_CREATE_DIRECTORY

Regards

Indu

Former Member
0 Kudos
220

to get all the filenames of one folder on desktop

Former Member
0 Kudos
221

Plz use FM

CALL FUNCTION 'GUI_CREATE_DIRECTORY'

EXPORTING

dirname = 'C:\raj

EXCEPTIONS

FAILED = 1

OTHERS = 2

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

rgsd

rajesh

former_member585060
Active Contributor
0 Kudos
220

U can create it using GUI_DOWNLOAD

in that give the filename = path.

looks for directory if not there it creates.

former_member188685
Active Contributor
0 Kudos
220

You can even create Directory from this also..

DIRECTORY_CREATE method of class CL_GUI_FRONTEND_SERVICES