Any FM to choose the path on Presentation server while GUI_Download
Hi Friends,
Is there any FM to choose the folder path while downloading a file on to presentation server.
I am using GUI_Download with a fixed path to store but user wants to choose the path where to store.(functionality similar to what we use if we download any thing form our lotusnotes mail or downlaoding anything from net)
I fixed it to c:/ but user wants it to control, so is there any FM for this.
I need a FM like KD_GET_FILENAME_ON_F4 but while downloading.
Any inputs are highly appreciated.
Regards,
Simha
Hi,
this may help u...
DATA: w_file_name TYPE string,
w_file_path TYPE string,
full_path type string,
action type i.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
window_title = name
initial_directory = 'c:\Documents and Settings\2q\Desktop'
prompt_on_overwrite = 'X'
default_extension = 'XLS'
default_file_name = name
CHANGING
filename = w_file_name
path = w_file_path
fullpath = full_path
user_action = action
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
IF action EQ 0.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = w_file_name
filetype = 'DAT'
CHANGING
data_tab = <tab>
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24.
ENDIF.
Similar Messages
-
How to get the files in presentation server while uploading?
how to get the files in presentation server while uploading?
give me the function module nameHi,
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME DEFAULT C_PRES. "Prsnt Srvr
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_PATH = P_FILE
MASK = ',..'
MODE = '0 '
TITLE = 'Choose File'
IMPORTING
FILENAME = P_FILE
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5. -
Download the file in presentation server while the program runs in backgrou
Hi,
Usually we will never download the file in presentation server while the job is scheduled in back ground.
But now i need to do that. I need to download the data in excel file and the same program is scheduling in background.
Can any one suggest how can we do this?
Thanks in Advance,
RaviHi,
There is an alternative provided by SAP. The program RFCEXEC has to be installed locally on the PC.
In SAP R/3 we have to define a destination link to your local PC to the RFCEXEC program. And in the ABAP program we have to invoke the connection by calling the FM RFC_REMOTE_FILE.
I havent tried this before but a detailed documentation is available in this link.
http://sapabap.iespana.es/sap/info/rfcexec/rfcexec_e.htm
Reward if useful
Regards
Shiva -
"could not start the Oracle BI Presentation Server on Local computer error"
Hello Folks,
i am trying to start the OBIEE Presentation services, The OBIEE server and Java Host Services are started.
i am getting this error and i didnt change any settings and finally getting this error
"Windows could not start the Oracle BI Presentation Server on Local Computer. For more information, review the System Even Log. If this is a non Microsoft service contact the service vendor, and refer to service-specific error code -1."
thanksHere is the solution from another freind
1. Stop BI Server Service > Start BI Server Service > Start BI Presentation Service. If that doesn't work...
2. Restart machine and follow step 1. If that doesn't work...
3. Check instantconfig.ini file and check syntax is correct. Also check java directory path mentioned is the valid one. If that doesn't work...
4. Rename the catalog folder to something else and follow step 1. It will create new catalog folder. Then copy _Shared from old catalog folder and you are good to go.
catalog folder will be in oraclebidata/web/catalog...
either delete the folder and create a new empty one or rename it
also have a look at instanceconfig.ini file
thanks -
How to create the folder in presentation server through pop-up(
Hi Experts,
Can u give me the solution , how to create the folder in presentation server through pop-up(means dynamically, after executing the program , pop-up has to come to create the folderand path)
regards
ram.Use the methods -> DIRECTORY_BROWSE & DIRECTORY_CREATE of the class CL_GUI_FRONTEND_SERVICES
DATA: path TYPE string,
rc TYPE i,
dir_name TYPE string value 'HI'.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
CHANGING
SELECTED_FOLDER = path
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
concatenate path '\' dir_name into path.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_CREATE
EXPORTING
DIRECTORY = path
CHANGING
RC = rc
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Edited by: Kartik Tarla on Sep 23, 2009 5:54 PM -
Once I have downloaded email on my iPad the same is not downloaded on my laptop. Have tried all settings including choosing the setting DELETE FROM SERVER:NEVER and REMOVE FROM SERVER:NEVER
Hey rbrylawski, just wanted to let you know that my ipad email problems have been solved. Called Apple Sup in OZ, I'm in NZ. Daniel Barber was the support tech from heaven!! I was about to return the ipad but solving this issue reset my faith in phone support.....perhaps until I call a differnet companys phone support eh? Anyhow, for reference the fix is below. My accounts are all POP not IMAP, and the primary smtp server setting had defaulted to have SSL switched on and the port was set to 5XX (something, cant remember). Anyhow, SSL was switched off and the port was swithced to 25. VOILÀ!! Settings/Mail, contacts, calendars/My POP mail account/smtp/primary server/ >>> server on, no username and password, use SSL off, no authentication, Server Port 25 Thanks for having a crack at it. This might help when assisting another user. Cheers Tonino
-
Downloading .xml/.tx data to presentation server while running background.
Hi experts,
I have a requiremnt to downloading .xml/.txt data to presentation server while running background.
when i run the program in foreground with use of GUI_upload/ Gui_download its working fine but not working in background.
i can't use email/data download to database file and than get it option as data can be huge.
Can anybody help me out regarding this.
Thanks
Anuj jainHi anjui,
it'snt possible to download a file in background using gui_download.
You could try to create a Shell Command (transaction SM69) to transfer data in a shared directory.
You can execute Os Commands using function module SXPG_COMMAND_EXECUTE
Alessandro -
Is there any FM to separate the path from the file ?
I have a file given by WS_FILENAME_GET. I want the path and the file in different fields. How can I split them?
thank youhi,
or use:
data delimiter value '\'.
split file at delimiter into table sptab.
1) file = last entry
loop at sptab.
endloop.
2) dir
delete sptab. "del file
loop at sptab.
concatenate string sptab delimiter into string.
endloop.
A.
Message was edited by:
Andreas Mann -
How to validate a Particular Directory or file path in Presentation server.
Hi SAP gurus,
I am having a requirement where I want to download a file into the Presentation server.
The file path to download will be provided in a parameter.
What I want to do is to throw a message to the user if He/She provides a wrong Directory or File path.
For example :
Say the user is providing the file download path as " E:\test.txt", but there is no "E" drive or such directory in the presentation. So in this case I should be able to check the wrong Directory provided by the user and throw some message to the user saying there is no such Directory present. Please give a proper directory or similar messages.
I have found a FM: PFL_CHECK_DIRECTORY but i am not able to use it properly.
So do you have any FM or any method and its explanation to fulfill my requirement .Do it this way:
tables:
spfli.
parameters:
p_file type rlgrap-filename " File name
obligatory.
Data:
t_final_data like table of spfli.
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = ' '
importing
file_name = p_file.
at selection-screen.
data:
lw_file type string. " File Path
lw_file = p_file.
select * from spfli into table t_final_data.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = lw_file
tables
data_tab = t_final_data.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
if sy-subrc <> 0.
message 'File not found' type 'E'.
endif.
With luck,
Pritam. -
Function module to find the path of application server
Hi can any one say me what is the function module to find the path of the application server
Hi ,
What i understand from ur question is that u need path for application server from the presentation layer i.e user screen.
u can achive the path this way
parameter: file type filename-fileintern.
when user presses F4 here, it will show the directories and path in the AL11.
I didnt find any FM which will get the path of Al11.
revrt back if any issues,
Regards,
Naveen -
Is there any way to create a folder in presentation server - webdynpro abap
Hello,
My requirement is to create a folder in presentation server using webdynpro abap..
I tried on this CL_GUI_FRONTEND_SERVICRES classes ..but its getting an short dump.
Is there any way to create folder using classes / FM..
Regards,
Praveen kumar reddy s.Hi PRaveen,
Check this.. WD_TEST_APPL_ACFEXECUTE
Check Thamos article..
http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
go for help..
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b91539878a2d67e10000000a42189c/content.htm
Cheers,
Kris.
Edited by: kissnas on May 10, 2011 2:24 PM -
What is the difference between Presentation server administrators and Admin
Hi Gurus,
In the groups in dashboard privileges, I can see two groups called Presentation Server Administrators and Administrators.
Can anyone tell me the difference between the two?
Regards,
AnuragThere is no such group as Administrators, that's a group someone created. The default group is Presentation Server Administrators.
-
How can I choose the path where I want my workers be compiled into ?
Hi,
I didn't found where to set that, it seems FB follows the package structure to create sub directories inside workerswfs, I want to be able to choose where the compiled worker will stand.
Can someone help on it ?
-FredYour program can be run from an executable jar file. If it is, do you want to know the name of the jar file it's in, or the name of the directory the jar file is in? What I'm getting at here is, why do you think you need to know what you asked?
-
TS3989 Is there any way to choose the order of photos in a shared photo stream?
Hi. I need to share a photo stream with many people and I need to group the photos together a certain way, but it won't let me rearrange them. There HAS TO be a way to do this, right Apple? I could with Mobile Me...
Yes. As I recall it's by date-ascending. You did create the PS from iPhoto, right?
Assemble the photos in an album, arrange them manually in the order you want, select all and then use the Photos ➙ Batch Change ➙ Date menu option? Give them all the same date with a minute between photos.
Then create the PS with those photos. They will disiplay in the order you had them in the album.
OT
Message was edited by: Old Toad -
I had three pages of content in my "notes" app and several months of info in my "calendar".
Yesterday all the imput was gone, the apps are empty of my imput.
Can they be found/retrieved?
ThanksI've had the same problem with notes. Also, after updating my iPad 2, all the text has disappeared from a book I bought to read in Books or iBook (Mickey Mantle biography). I've tried changing the font but to no avail. The title page and table of contents page are still visible. Can anyone help?
Maybe you are looking for
-
Long story short. plugged my i phone into my computer and my sons itune acct. came up ithought it was mine and hit restore now i have all his stuff and mine is gone. turns out i never backed up. Help. I have a new ipad which had 238 photos and it onl
-
How to remove latest version of Acrobat X
How do I remove version 10.1.10 and go back to 10.1.9? I believe I have an error where stamps are automatically deleted in Shared reviews. It started happening when users downloaded 10.1.10. Thanks, Josh
-
CSS styles not displaying in Contribute CS3
On some (but not all) of the computers at this organization, when you click "Edit" in Contribute, it doesn't show the CSS styles; in other words it displays in Times New Roman, and the top menus are spread accross the page; this means that users have
-
How to see details on photo size and resolution on an IPad?
Is there a way to see the photo size in pixels and resolution on an iPad? Or is there an app that I can get to allow me to see this information?
-
Hi JDev team, first of all, JDev3 is the best and more usable java devlopment environment very very impressed with all of it... But trying to follow the Infobus data Form tutorial based on BC4J and trying to make de BC4J tier remotable as Cobar objec