on 11-17-2005 6:25 AM
Please get the code workig. i want to have the user-selection of DIR in a variable.if its not possible this way, plz suggest other solution.
reward guranteed.
DATA: DIR_SEL TYPE STRING.
CALL METHOD cl_gui_frontend_services=>directory_browse
EXPORTING
WINDOW_TITLE = 'Select Folder'
INITIAL_FOLDER = 'C:\'
CHANGING
selected_folder = DIR_SEL
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
others = 3.
write:/ DIR_SEL,'*******'.
Hi Anid,
Ok here is a small change to your code that works,
DATA: DIR_SEL TYPE STRING.
CALL METHOD cl_gui_frontend_services=>directory_browse
EXPORTING
WINDOW_TITLE = 'Select Folder'
INITIAL_FOLDER = 'C:\'
CHANGING
selected_folder = DIR_SEL
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
others = 3.
<b>CALL METHOD cl_gui_cfw=>flush.</b>
write:/ DIR_SEL,'*******'.
Hope this helps..
Sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anid,
Basically flush call will synchronize the automation queue (the buffered method calls to get control attributes) and gets the control (in our case, Frontend services directory select dialog) attributes from the front end.
Check the following links that explain this in detail,
http://help.sap.com/saphelp_46c/helpdata/en/06/3fa1879f2811d2bd68080009b4534c/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/9b/d080ba9fc111d2bd68080009b4534c/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/37/63bdc2e80211d2bdcb080009b4534c/frameset.htm
Sri
hi,
even i tried it's working fine
regards,
manohar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anid,
The code you mentioned is working perfectly fine.
I copied and tried the same.
Which problem are u facing in this code ?
Regards,
Amit M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.