‎2005 Jul 14 6:58 AM
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
‎2005 Jul 14 7:53 AM
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
‎2005 Jul 14 7:15 AM
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
‎2005 Jul 14 7:15 AM
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.
‎2005 Jul 14 7:15 AM
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
‎2005 Jul 14 7:19 AM
hi,
do you realy want an application in ABAP like Total Comander???
did you try FUNCTION 'WS_FILENAME_GET' ?
Regards,
Andrej.
‎2005 Jul 14 7:22 AM
hi Bogdan,
you see that theró are many methods to take several files!
Regards,
Andrej.
‎2005 Jul 14 7:53 AM
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
‎2005 Jul 14 8:00 AM
Hello,
very helpful answers,
Thank you all!
You are great
bogdan