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: 

File Explorer

Former Member
0 Kudos

Hello all,

I have to implement an application in ABAP like Total Comander,

with it the user can browse local files or file on application server,

donwload/upload files from/to application server.I have no idea how to start to implement the user interface.

Any sugestion, samples,classes,functions, link or documentation are very wellcome.

Thank you

A nice day!

bogdan

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

Hi Bogdan,

-> create a dynpro with a tree control on the left for filesystem of application server and a tree control on the right with filesystem of the client.

-commands for unix:

 CALL 'SYSTEM' ID 'COMMAND' FIELD COMMAND
                ID 'TAB'     FIELD TABL-*SYS*.

-commands for pc: CL_GUI_FRONTEND_SERVICES

regards Andreas

7 REPLIES 7

former_member355937
Participant
0 Kudos

Hi Bogdan,

Try using the following code.

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.

PARAMETERS: P_FILE LIKE RLGRAP-FILENAME LOWER CASE.

SELECTION-SCREEN END OF BLOCK B2.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.

CALL FUNCTION 'WS_FILENAME_GET'

EXPORTING

MASK = '., All files (.).'

MODE = '0'

TITLE = 'Get Text File'

IMPORTING

FILENAME = P_FILE

EXCEPTIONS

INV_WINSYS = 1

NO_BATCH = 2

SELECTION_CANCEL = 3

SELECTION_ERROR = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

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

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

ENDIF.

START-OF-SELECTION.

Regards,

Jeffrey

Former Member
0 Kudos

Hi Bogdan,

I don't think you will be able to get the File Navigation dialog for files in the Application Server. That is because you would not have the authorization to the files on the App Server directly. You can look at the files in the App Server (those to which you have the access) through the transaction AL11.

So far as a files on the Presentation Server are concerned, you can use the function modules GUI_UPLOAD and GUI_DOWNLOAD, which are both very well documented.

Regards,

Anand Mandalika.

Former Member
0 Kudos

Hi,

I intend to create such an application in future. But i suppose that basicly you should use Gui controls classes ( e.g. containers, trees ), CL_GUI_FRONTEND_SERVICES and external OS commands for the application server browsing.

Svetlin

Former Member
0 Kudos

hi,

do you realy want an application in ABAP like Total Comander???

did you try FUNCTION 'WS_FILENAME_GET' ?

Regards,

Andrej.

Former Member
0 Kudos

hi Bogdan,

you see that theró are many methods to take several files!

Regards,

Andrej.

andreas_mann3
Active Contributor
0 Kudos

Hi Bogdan,

-> create a dynpro with a tree control on the left for filesystem of application server and a tree control on the right with filesystem of the client.

-commands for unix:

 CALL 'SYSTEM' ID 'COMMAND' FIELD COMMAND
                ID 'TAB'     FIELD TABL-*SYS*.

-commands for pc: CL_GUI_FRONTEND_SERVICES

regards Andreas

0 Kudos

Hello,

very helpful answers,

Thank you all!

You are great

bogdan