FM for F4 help for presentation server path
hi Experts,
FM for F4 help for presentation server path .
and also for download to the presentation server.
Regards,
Amit
Amit,
PARAMETER: pfile LIKE rlgrap-filename OBLIGATORY.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
* FIELD_NAME = ' '
IMPORTING
file_name = pfile.
and use gui_download for download to presentation server:
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = _filename
filetype = 'ASC'
append = l_append
trunc_trailing_blanks = space
write_lf = l_write_lf
** here we know that we are working with GUI (not batch process) so we can ask user,
** if he is really sure to overwrite file in case of overwriting
* confirm_overwrite = l_confirm_overwrite
confirm_overwrite = space
TABLES
data_tab = lt_header
EXCEPTIONS
error_message = 98
OTHERS = 99.
Amit.
Similar Messages
-
F4 help for application server path
hi gurus ,
i have used f4 help for application server using this fm
DATA: c_fnh_mask TYPE dxfields-filemask VALUE '.',
search_dir TYPE dxfields-longpath VALUE '/sapglobal/users',
file_path LIKE dxfields-longpath.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'A'
i_server = ' '
i_path = search_dir
filemask = c_fnh_mask
fileoperation = 'R'
IMPORTING
o_path = file_path
EXCEPTIONS
rfc_error = 1
OTHERS = 2.
IF sy-subrc EQ 0.
p_file = file_path.
ENDIF.
but i am getting a short dump for that can anybody please help
Edited by: Ambarish annapureddy on Jun 19, 2008 1:31 PMthis for presentation server
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = w_title
CHANGING
file_table = i_filetable
rc = w_return
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
OTHERS = 5.
this is for application server.
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
IMPORTING
serverfile = p0100_path
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
Edited by: S.r.v.r.Kumar on Jun 19, 2008 5:05 PM
Edited by: S.r.v.r.Kumar on Jun 19, 2008 5:08 PM -
Hi Experts,
I need a FM which return all the file names in a specified directory of presentation server. I also need FM which will provide F4 help on presentation server to search directories.
Regards,
JeetuFunction module name Function module description
DOWNLOAD Store Internal Table with Dialog as File on the Presentation Server
WS_DOWNLOAD Save Internal Table as File on the Presentation Server
UPLOAD Load Data from the Presentation Server into an Internal Table / Dialog
WS_UPLOAD Load File from the Presentation Server into Internal Table
WS_FILENAME_GET Call file Selector
WS_EXECUTE Execute an External Program on the Presentation Server
WS_MSG Issue the Presentation Server style message
WS_EXCEL
WS_QUERY Execute query function on the Presentation Server
Reward points if useful..............
Regards
Minal -
F4 Help for Presentation Server Folder Name .
Hi Experts,
I want show the F4 help on the presentation server.
If the file is selected REquirement is that , on clicking the F4, the dialog box should open.
If we choose the file , then file should be selected , but if we select the folder then folder should be selected.
Normal function modules or methods present in SAP opens the folder containt in the folder.
Kindly provide anyFM name or class method name o achieve the functiknality .
Thanks in advance.HI,
Please paste this code,You will get F4 help.
DATA: lt_filetable TYPE filetable,
lwa_filetable TYPE file_table,
l_rc TYPE i.
REFRESH lt_filetable[].
CLEAR:lwa_filetable.
* Open file
CALL METHOD cl_gui_frontend_services=>file_open_dialog
CHANGING
file_table = lt_filetable
rc = l_rc
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 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.
ELSE.
READ TABLE lt_filetable INTO lwa_filetable INDEX 1.
IF sy-subrc = 0.
p_sap1 = lwa_filetable-filename.
ENDIF.
ENDIF. -
F4 Help for presentation server filepath/name
Hi,
Can anyone tell me how can I get a F4 help for selecting a file or directory from the PC...i.e I should get a pop-up Open File dialog to select the File on PC.
Thanks!
Sunitha.Hi Sunitha.,
You can write the following code in the At selection screeb value request event.
Using ABAP Objects:
PARAMETER : p_file LIKE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.
DATA: directory TYPE string,
filetable TYPE filetable,
line TYPE LINE OF filetable,
rc TYPE i.
CALL METHOD cl_gui_frontend_services=>get_temp_directory
CHANGING
temp_dir = directory.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'SELECT THE FILE'
initial_directory = directory
file_filter = '*.XLS'
multiselection = ' '
CHANGING
file_table = filetable
rc = rc.
IF rc = 1.
READ TABLE filetable INDEX 1 INTO line.
P_FILE = line-filename.
ENDIF.
Using Normal ABAP:
DATA: P_FILE LIKE RLGRAP-FILENAME,
DPATH LIKE RLGRAP-FILENAME,
UPATH LIKE RLGRAP-FILENAME,
MODE TYPE C,
FLG_UD TYPE C.
CALL FUNCTION 'WS_ULDL_PATH'
IMPORTING
DOWNLOAD_PATH = DPATH
UPLOAD_PATH = UPATH.
IF FLG_UD <> 'D'.
DPATH = UPATH.
MODE = 'O'.
ELSE.
MODE = 'S'.
ENDIF.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = '*.XLS'
DEF_PATH = DPATH
MASK = ',*.XLS,*.*,*.*.'
MODE = MODE
IMPORTING
FILENAME = P_FILE
EXCEPTIONS
SELECTION_CANCEL = 3.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
Just copy paste the code this should work fine.
Cheers
VJ -
Function module for f4 help in presentaion server and application server.
hi guys,
I need to create a function module that will get the file or folder name by f4 help for the file in the presentation server or application server based on the location selected.
For this function module what are the minimum impot parametrs and export parameters required.
i have tried with 'f4_filename' for presentation server
and '/SAPDMC/LSM_F4_SERVER_FILE' for application server.
but i am not able to get this.
can any one help me in this regard ?
cheers,
kumar.hi use like this ..
if p_presvr = 'X'.
*-- if the file is to be downloaded to presentation server
call function '/SAPDMC/LSM_F4_FRONTEND_FILE'
changing
pathfile = p_file
exceptions
canceled_by_user = 1
system_error = 2
others = 3.
if sy-subrc <> 0.
if sy-batch = 'X'.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into v_msg.
write / v_msg.
clear v_msg.
stop.
else.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endif.
else.
*-- if the file is to be downloaded to application server
call function '/SAPDMC/LSM_F4_SERVER_FILE'
exporting
directory = '/'
filemask = '*'
importing
serverfile = p_file
exceptions
canceled_by_user = 1
others = 2.
if sy-subrc <> 0.
if sy-batch = 'X'.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into v_msg.
write / v_msg.
clear v_msg.
stop.
else.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endif.
endif. -
Function module to get Presentation server's directory on F4
Hi,
Kindly tell me the Function Module to be used in the Selection screen parameter to get the "Local PC's Directory path".
I need only Directory path, because program will generate the file and send that into the selected directory.
Saurabh GargThis program shows how to get F4 help from presentation server or application server
REPORT Z50651_FILENAMES_F4 MESSAGE-ID ZMSG_50651.
***********SELECTION SCREEN***********************
PARAMETERS : LOCAL RADIOBUTTON GROUP G1 USER-COMMAND UCOM1,
APPLN RADIOBUTTON GROUP G1 .
PARAMETERS : P_HEADER TYPE IBIPPARMS-PATH.
***********DATA DECLARATIONS*********************
DATA : V_FLAG,
V_HEADER1 TYPE DXFIELDS-LONGPATH,
V_HEADER TYPE IBIPPARMS-PATH.
AT SELECTION-SCREEN ON RADIOBUTTON GROUP G1.
PERFORM CHECK_RADIO.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_HEADER.
PERFORM GET_F4_HELP.
**************FORMS*********************************
*& Form CHECK_RADIO
text
--> p1 text
<-- p2 text
FORM CHECK_RADIO .
CASE SY-UCOMM.
WHEN 'UCOM1'.
IF LOCAL = 'X'.
V_FLAG = 'L'.
ELSE.
V_FLAG = 'A'.
ENDIF.
ENDCASE.
ENDFORM. " CHECK_RADIO
*& Form GET_F4_HELP
text
--> p1 text
<-- p2 text
FORM GET_F4_HELP .
IF V_FLAG = 'L'.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_HEADER'
IMPORTING
FILE_NAME = V_HEADER.
P_HEADER = V_HEADER.
ELSEIF V_FLAG = 'A'.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
I_LOCATION_FLAG = 'A'
I_SERVER = '?'
I_PATH =
FILEMASK = '.'
FILEOPERATION = 'R'
IMPORTING
O_LOCATION_FLAG =
O_SERVER =
O_PATH = V_HEADER1
ABEND_FLAG =
EXCEPTIONS
RFC_ERROR = 1
ERROR_WITH_GUI = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDFORM. " GET_F4_HELP
Regards
Vasu -
What is my server path??
I am trying to set up a web page but i keep getting the error remote disk error, i have tried to browse for the server path but get the same message, where am i going wrong?
That is a little tough for someone else to call since it can vary greatly from server to server. If you are uploading to your own domain it could be as simple as "www.yourdomain.com/desiredfoldername" or maybe "ftp.yourdomain.com/foldername". If you are uploading to shared server it could be more complicated. If you use an FTP application you would use the same settings for Lr as you do for FTP. This question may be better asked of your hosting provider.
-
So I have set up a localhost area in my Mac. I have the new server.app and I am running yosemite 10.10.2 .
I have a program running in my local server enviroment that wants to FTP to my mac .
It asks for the server , name, password, port and path. what are they?
I am pretty certain that the Serveris "localhost",
Name is my macs name (like my-mac-min)
password is "my login password"
and they suggest port 21.
But what is the file path, lets just say my site is set up http://localhost/siteftp and is actually at my Users/Sites/siteftp folder.
Why cant this program connect to the mac.
Is it because they are both operating in the same localhost enviroment,
could it be my folder permissions are not correct on siteftp folder?
Help please !I tried turning the computer off and then back on. The alerts don't show the notice to update as resolved. Hopefully this is not a problem or an indicator or another problem. Should I ignore or reload 10.10.1 from the app store to trigger a resolved check in a green circle?
Interesting that I had to buy server software after my free Yosemite download. I would have hoped that the two pieces of software would have gone together without any complication. It is not positive to end up buying a problem. Ah well, time to move on. -
Hello,
I had a server crash recently and our outsource hosting tech support suggested applying Cumulative Upade 12 for SQL server 2008R2 SP2 to fix the issue. The exception from our dump file "Warning: Unable to Verify TimeStamp for Path\ProgramName"
is not in the list of hotfixes for this CU. Do you know if this will fix this issue? The CU warns not to apply the CU if your issue id not addressed by the CU. Here is a portion of the dump file with the relevant error:
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(7e8.2ab4): Unknown exception - code 000042ac (first/second chance not available)
ntdll!NtWaitForSingleObject+0xa:
00000000`777412fa c3 ret
0:240> .sympath srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols;
Symbol search path is: srv*c:\Websymbols*http://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*c:\websymbols*http://msdl.microsoft.com/download/symbols
0:240> .reload /f
.Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe, Win32 error 0n2
*** WARNING: Unable to verify timestamp for sqlservr.exe
..........Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlos.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for sqlos.dll
...............Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\opends60.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for opends60.dll
.......Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\BatchParser.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for BatchParser.dll
....Unable to load image C:\Program Files\Microsoft SQL Server\100\Shared\instapi10.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for instapi10.dll
*** ERROR: Module load completed but symbols could not be loaded for instapi10.dll
..Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\Resources\1033\sqlevn70.rll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for sqlevn70.rll
*** ERROR: Module load completed but symbols could not be loaded for sqlevn70.rll
Press ctrl-c (cdb, kd, ntsd) or ctrl-break (windbg) to abort symbol loads that take too long.
Run !sym noisy before .reload to track down problems loading symbols.
.................Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\ftimport.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for ftimport.dll
.Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\msfte.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for msfte.dll
*** ERROR: Module load completed but symbols could not be loaded for msfte.dll
...........Unable to load image C:\Windows\System32\sqlncli10.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for sqlncli10.dll
...Unable to load image C:\Windows\System32\1033\SQLNCLIR10.RLL, Win32 error 0n2
*** WARNING: Unable to verify timestamp for SQLNCLIR10.RLL
*** ERROR: Module load completed but symbols could not be loaded for SQLNCLIR10.RLL
..Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\xpsqlbot.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for xpsqlbot.dll
.Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\XPStar.DLL, Win32 error 0n2
*** WARNING: Unable to verify timestamp for XPStar.DLL
.Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlscm.dll, Win32 error 0n2
*** WARNING: Unable to verify timestamp for sqlscm.dll
...*** ERROR: Module load completed but symbols could not be loaded for odbcint.dll
...Unable to load image C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\Resources\1033\XPStar.RLL, Win32 error 0n2
*** WARNING: Unable to verify timestamp for XPStar.RLL
Thank you,
Steve -The error message appears to be related to a debug session and not come from the actual crash.
So all I know is that you hade a server crash. I don't even know exactly what that means. Did Windows bite the dust? Or was it only SQL Server?
Assuming the latter, I would expect the SQL Server errorlog to have some information (and that would be ERRORLOG.1 or earlier, since the server have been restarted), but if SQL Server died the output may be incomplete.
There may be also dump files, but as I rarely look into these, I am not sure how to interpret them. But I am quite confident that "Unable to verify TimeStamp..." is not the reason SQL Server went down.
I would suggest the following course:
* If the server is not critical, do nothing. As long as it has onlyl happened once, it has only happened once.
* If the server is critical, open a case with Microsoft if you are not able to figure out the reason yourself. The key here is "Unknown exception - code 000042ac".
* If it happens again, you should absolutely open a case. An important thing here is whether the stack dump is identical or something different. If the stack dumps are identical, you may have hit a bug in SQL Server or the OS, and applying CUs or OS
fixes could help if it is a known issue. If the stack dump is something else, you have ghosts in the machine - that is, bad hardware.
Erland Sommarskog, SQL Server MVP, [email protected] -
FM for browsing the directory name in presentation server
Hi All,
Can somebody give me the FM for browsing the directory name (not the file name) in the presentation server so that the path comes automatically in the parameter.
Thanks in advance.
Regards,
Arun MohanPlease see the following program. This will give you what you need.
report zrich_0001 .
parameters: p_path type localfile.
at selection-screen on value-request for p_path.
data: path_str type string.
call method cl_gui_frontend_services=>directory_browse
exporting
window_title = 'Select Directory'
changing
selected_folder = path_str
exceptions
cntl_error = 1.
call method cl_gui_cfw=>flush
exceptions
cntl_system_error = 1
cntl_error = 2.
p_path = path_str.
Regards,
Rich Heilman -
FM for MatchCode to get Server path-file ?
Hi
I have used a FM (F4_FILENAME) for make a match code
to set for file names, and this FM shows the computer directories and files to select one.
I need some FM like that, but for the Server (not the PC).
Does somebody knows a FM wich allows me to navigate in Server paths and Files and select one file ?
Thanks
FrankHi Frank
I dont think any special authorizations are required for executing this FM.
Can you let us know the OS of the other system.
Also check if FM: <b>F4_FILENAME_SERVER</b> can help you on both.
Kind Regards
Eswar -
Hi
Windows serv 2012 cluster on sql 2012 cluster with 2 instance. on works fine , Second instanc ewhen i try to creat DB a get this message.
Cannot use file for clustered server. Only formatted files on which the cluster resource of the server has a dependency can be used. Either the disk resource containing the file is not present in the cluster group or the cluster resource of the Sql
Server does not have a dependency on it.
CREATE DATABASE failed. Some file names listed could not be created. Check related errors. (Microsoft SQL Server, Error: 5184)
Any help please
kam
KAMELHi Saurabh
Exactly I have SQL SERVER 2012
Failover Clustering in windows server 2012 with two nodes with
two instances and exactly I run them in the same server and each instance with
three drives Backup, Data and log.
KAMEL -
Hi Experts,
When I use Agent functionality to send email in BIEE 11.1.1.7.0, it will generate the following error message as below: Are you facing the same problem ? Please help me,Thanks very much.
Global Error: [nQSError: 77030] Oracle BI Presentation Server Connection Error: Unable to resolve the address for cn.
Error Codes: AXSBMN8D:
The operation completed successfully.Can you try doing telnet to SMTP server from where BI server is installed and let us know the outcome.Just want to check if any firewall is blocking
telnet hostname portnumber
Thanks, -
Need help startng websphere server in eclipse for debugging porpose
I am using Eclipse Sdk Version: 3.1.2
IBM websphere 6.0
JDK 1.4
I set debug value to "true" in my application.xml
I have a .ear file of my application deployed on the websphere appserver. Currently I can test my application in nobebug mode.
values of environment variables are -
JAVA_HOME - C:\DEV\IBMJDK142; C:\Program Files\Java\jre1.6.0_03
PATH - C:\DEV\IBMJDK142\bin; C:\Program Files\IBM\WebSphere MQ\Java\lib;C:\DEV\IBMJDK142\bin;%SystemRoot%\system32;%SystemRoot%;
I want to test the application in debug mode.
I am using default server on websphere, which is server1.
In Admin-console of webshere I went to
server-->Application server-->choose server1-->Debugging Service ---->checked the checkbox "Enable service at server startup"
Here value of my JVM debug port is 7777.
next In Eclipse env I chose Run---->Debug....--->Remote Java Application ----> created a new application with the name of my application and set the connection properties to -
Host - localhost
port-7777
Eclipse----> Windows----->Preferences---->Server----->Installed Runtime---->Add---->selected values such as -
JRE - default JRE(JDK 1.4)
IBM Websphere Installation Directory - C:/DEV/WebSphere/AppServer
saved it.
Now in debug perspective, I created a new server with selection/values such as -
IBM--->IBM Websphere v6---->
port - 9081
server profile directory - C:/DEV/WebSphere/AppServer/profiles/default
cell - GCWSNTRANode01Cell
node - GCWSNTRANode01
server - server1
Next---->Added the project to configured project ----->FINISH
Closed Eclipse to save env settings.
Started the default server (server1)
opened eclipse - desired project--->debug perspective ---->choose server--->Right Click----Start/Debug
mesg "Starting ServerI BM Websphere 6 - IBM Websphere 6 failed to start"
can some one please tell me what I am missing here.Need help startng websphere server in eclipse for debugging porpose
can some one please tell me what I am missing here. Well for one, you're trying to debug a dolphin
Edited by: redfalconf35 on Jun 19, 2008 4:50 PM
Maybe you are looking for
-
Added new parm to an existing SQL stored procedure CR 11 doesn't like it
Hi I have added a new parameter to an existing SQL stored procedure (SQL 2000). This stored procedure is currently being called from a Crystal XI report. It prompts for a date which works great. (The report was created with this parameter). I add
-
Java core dump on AIX5.2 / J2RE 1.4.1
I'm running a program on AIX 5.2.0.0 which fails after two minuts whith a Java core file.... This is the content of this file ; does anyone know how to read this ?? NULL ------------------------------------------------------------------------ 0SECTIO
-
Streaming live video from iPad Air to an projector
I would like to stream (IPad air) a live video to an projector visa Wi-Fi
-
Function or method which returns the full PDC path of webdynpro iview
Hi All, I have created a webdynpro application and created a webdynpro Iview in portal and attached this view to a role. I am looking for any standard function module or method which returns the full PCD path of the webdynpro iview, when it executed
-
i know *env is a JNI interface pointer.... i need some more information about this pointer. any links or any replies will do a great deal for me...... what are all the chances of that *env being null at any case? thanks in advance......