Directory browsing in Application Server
Hi Gurus,
I need Directory browsing facility for my application server . i.e facility to select any directory on my application server. Can any body help me.
Regards,
Srinivas
Hi Srinivas,
Try using function module F4_DXFILENAME_TOPRECURSION or /SAPDMC/LSM_F4_SERVER_FILE (this gives the help in tree structure)
A sample on how to use F4_DXFILENAME_TOPRECURSION
DATA
: O_PATH TYPE DXFIELDS-LONGPATH.
PARAMETERS
: P_FILE TYPE RLGRAP-FILENAME
START-OF-SELECTION.
WRITE : 'Selected file',
P_FILE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
I_LOCATION_FLAG = 'A'
I_SERVER = ' '
I_PATH = ' '
FILEOPERATION = 'R'
IMPORTING
O_PATH = O_PATH
EXCEPTIONS
RFC_ERROR = 1
ERROR_WITH_GUI = 2
OTHERS = 3.
P_FILE = O_PATH.
Regards'
Rajvansh
Edited by: Rajvansh Ravi on Jul 24, 2011 2:36 PM
Similar Messages
-
How Create Virtual Directory On Oracle Application Server 10g on RHEL 5
Dear Sir
i have deployed my application on OAS 10g on RHEL 5 ,,now since my application is calling some pro*c programs and then they generate some text based reports on fixed folder named
/treas/temp
now i simply have to open these text based reports on web browser
WEB.SHOW_DOCUMENT('/forms/pcreport/'||v_filename);
but for that i need to create virtual directory name : " /pcreport " without code
kindlly help as its working on my developer suit 10g i created a virtual directory in my application server by making following entry in "orion-web.xml" file
<virtual-directory virtual-path="/pcreport" real-path="/u/treas/temp" />
kindlly help(My paths shown, yours will be different)
In a text editor :
/u01/app/oracle/product/midtier/Apache/Apache/conf/httpd.conf
Add
Alias /pcreport/ "/u01/app/oracle/product/midtier/forms/pcreport/"
<Directory "/u01/app/oracle/product/midtier/forms/pcreport/">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Create the pcreport directory.
Add a simple test page
vi /u01/app/oracle/product/midtier/forms/pcreport/test.html
<html>
<head>
<title>Simple test page </title>
<style type="text/css">
body {
margin-left: 20%;;
margin-right: 20%;
border: 1px dotted gray;
padding: 10px 10px 10px 10px;
</style>
</head>
<body>
<p>test!</p>
</body>
</html>
Test
http://yourserver.com:7777/pcreport/test.html
Best Regards
mseberg -
API for creating a directory in the application server
Hello,
Does anyone knows a way to create a directory in the application server? Something similar to
CL_GUI_FRONTEND_SERVICES but for managing files in the application server?
Thanks in advance
Diz IsMiActually, CL_GUI_FRONTEND_SERVICES=>Directory_Create works really good for me.
REPORT ZRICH_0001 .
data: path type string.
data: rc type sy-subrc.
path = '\172.52.72.651qfilesvr400S109XXXXusrsapTSTSYStest'.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_CREATE
EXPORTING
DIRECTORY = path
CHANGING
RC = rc
EXCEPTIONS
DIRECTORY_CREATE_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
PATH_NOT_FOUND = 4
DIRECTORY_ACCESS_DENIED = 5
DIRECTORY_ALREADY_EXISTS = 6
UNKNOWN_ERROR = 7
others = 8
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Rich Heilman -
Create directory on SAP application server with blanks
Hi,
is it possible and if so how to create within ABAP a directory on a Linux based SAP application server that contains blanks.
We've tested with SXPG_COMMAND_EXECUTE but didn't succeeded.
A working code snippet would be great.
Thanks and kind regards
FlorianHi
Try with Tcodes SM49/SM69.
Thanks,
Sreeram -
Validate whether a file path or directory exists on application server
hi,
I need to validate if a directory or file path exist on application server. How do we do that?
thanks.DATA:
ltp_bom TYPE sychar01,
ltp_encoding TYPE sychar01,
ltp_codepage TYPE cpcodepage.
Processing --------------------------------------------------------- *
TRY.
CALL METHOD cl_abap_file_utilities=>check_utf8
EXPORTING
file_name = itp_filename
max_kb = -1
all_if_7bit_ascii = abap_true
IMPORTING
bom = ltp_bom
encoding = ltp_encoding.
CATCH cx_sy_file_open .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_open_error.
CATCH cx_sy_file_authority .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_authority_error.
CATCH cx_sy_file_io .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_io_error.
ENDTRY. -
Creating a directory & subdirectory on Application Server
I want to create a directory on Application Server which may contain many subdirectories where in i will upload my files from my ABAP Program.
I need to know if dynamic creation of a directory on Application Server is possible though ABAP.
I donot want to create it manually but dynamically depending on the type of file to be put in the directory.If you use the complete path, this actually works. I have tested it in my system. It may not work in background though. I'm on an AS400, so the path is a little different
call function 'GUI_CREATE_DIRECTORY'
exporting
dirname = '//<ip_address>/qfilesvr400/<host>/usr/sap/TST/SYS/Folder1'
exceptions
failed = 1
others = 2.
Regards,
Rich Heilman -
"Invalid Oracle Home directory" error in Application Server Connection
I have Jdeveloper 10g on Windows XP and want to create an Application Server Connection.
After specifying required i get Test failed (-2). Invalid Oracle Home directory whenever I go for testing it.
My Application Server in LinuxYou are in the wrong forum for that question.
-
Hello,
I'm having trouble after publishing to my WAS v6 environment. The report will begin, creating the appropriate jrc_tmp_######.rpt file in my temporary directory.
For small reports (10 objects or less), the temporary report disappears, I am queried for my login and any parameters, then the report opens. The temp file never comes back. All subsequent requests for the report from *any computer* return with an I/O Error and this later in the log file:
Caused by: java.util.zip.ZipException: ¤u2022'u2022-¦u2022@u0192-"-(tm)...¢¢u2030-u2022@"...£u02C6-
Any reports with > 10 objects (any combination of data fields, text, images, formulas) the temporary report disappears and only the same I/O error appears.
In my test env. on windows, using the Rational Application Developer v 7 WAS test server, the temporary report stays until the report times out...
Has anyone else on WAS 6 had similar problems? I've no idea how to proceed.
Thanks!
TereseWould you be able to do one test?
Early builds of the IBM Java JRE 1.3 and 1.4 had issues with the JIT compiler that caused strange IOExceptions.
Would you try, in the WebSphere admin console, turning off the JIT for the JRC application, to see if the problem goes away?
If so, I recommend upgrading to the latest IBM Java JRE build for your version of the Java SDK.
Ted Ueda -
Does Oracle Internet Directory come with Application Server 10g Release 3
I noticed Appserver 10g 10.1.3 does not have as many components as Appserver 10.1.2. It does not even come with Oracle Internet Directory. Do I need to install Appserver 10.1.2 first and then upgrade to Appserver 10.1.3?
Nope. Doesn't work that way. AS 10.1.3 is a different release...
Perhaps one way of seeing AS is as a family name for sets of application platform products or technology. The "core" of AS is OHS and OC4J + management, for many of the releases or product sets (i.e. not all of the AS family are or were based on OC4J). On top of that core, Oracle adds products depending on the release.
If you go from the Downloads menu -
You would see that (currently) 10.1.3.x or 10.1.3.1 ("for deployment" - See All) is e.g a SOA Suite release. It also has Service Registry, Data Integrator and WebCenter Suite.
AS 10.1.3.0.0 is a OC4J release, if I'm not mistaken, to include support for Java/JDK 5.
AS 10.1.4.0.1 is a Identity Management release.
If you are looking for other app server products such as Discoverer or Reports Services, the latest release that I know of is 10.1.2.0.2. If you have AS 10.1.2.0.x, you may upgrade the including products via a patch set to 10.1.2.2 or later. Portal and IM components in this release may be upgraded to 10.1.4.x.
Also note that AS patch sets might introduce some additional version number confusion.
Combining different releases into mid-tier and infrastructure services is possible, if you need to stay with the latest features (such as a setup with 10.1.2.x mid-tiers using 10.1.4 Identity management). See Upgrade and Installation guides for information and configuration rules.
http://www.oracle.com/technology/software/products/ias/htdocs/101310.html
http://www.oracle.com/technology/software/products/ias/htdocs/101401.html
http://www.oracle.com/technology/software/products/ias/htdocs/101202.html
Message was edited by:
orafad -
Directory listing of application server
Hi experts,
I need a FM which can read the directory and returns the file names in an internal table.
I tried to use these ones:
- EPS_GET_DIRECTORY_LISTING
- RZL_READ_DIR_LOCAL
, but the filename which should be returned is more than 40 characters and it cannot handled by these function moduls, because it truncates the filename.
Is there any function module which can read the directory and handles the filenames which are more than 40 characters?check these links
http://wiki.sdn.sap.com/wiki/display/ABAP/Workingwithfiles
http://abaplovers.blogspot.com/2008/05/sap-abap-function-module-to-read-files.html
Thanks
Bala Duvvuri -
Creating a directory statically in the Application Server
Hi,
I need to create a directory in the application server statically (not through code), in which I later have to store and read files. Most forums talk about doing this through AL11 --> Configure.
While this does create an entry in the directory list in AL11, I doubt if the directory was actually created in the AS. Double clicking this directory name shows an error message in the status bar (Wrong order of calls <- CALL opendir: No such file or directory). So I believe the directory is not created at all.
How do I set up a directory which I can browse and see, and use for creating / reading files?
My AS is on AIX OS.
Thanks,
ZHi,
Yes, Could we not do it from SAP screens?
Go to Al11 and in that you can see a tab Configure.
There you can create the Directory and say Add button
and then Save .
and after that Using
Open Data set ds1 for Output.
will create the File if it is not there .
you can specify the path in which you can create the files.
check this thread as well:
Creating a directory & subdirectory on Application Server
Sachin
Edited by: Sachin Dhingra on Jan 22, 2009 11:02 AM -
Modifying destination Directory of Application server for Open Hub
Hi All,
i want to load a csv file on application server using Open Hub.
when i have created the open hub i have specified the server name, the file name and the directory.
but the Basis guys told me that i should use another directory, they have created me a Unix Directory but the problem that i can't modify the directory path in my open hub.
can you tell me please what is the problem?
another question why i can't modify directly in Production System this parameter of server name, directory for open hub,
in production i can create the open hub but when i have transported some one from dev to prod i can't modify in prod, i have controlled from transport tool the possibility of modication object and i see that for opne hub is "original modificable"
Thanks for your help
Bilali have read in some forum that to " to change the server name or logical file name we can do so in the following table:
RSBFILE"
i tried to see the data of this table and i found 2 records for my open hub, 1 for Active version and 1 for Modified version
i tried here to change the path name of the directory and after saving the system give me the message that the active version and the modified version of my open hub are not equal, when i try to activate again my open hub the system take the old
directory path.
is this is the right table to change the directory path on application server of my open hub? or there is another table?
i don't work with logical filename, i work with file name and directory path name.
thanks for your help
Bilal -
How to check whether the Application Server directory exits or not
Hi,
I have a selection screen in which I give the Application server file name(UNIX file) as input. Here, I would like to check whether the Server directory exists or not.
Let us say, the path I gave in the selection screen is /usr/sap/tmp/testfile.txt . Here, the file name is testfile.txt and the server directory is /usr/sap/tmp . I would like to check whether this directory /usr/sap/tmp exists in the server or not. I am not bothered about the file name as I am going to write data into the file. I am mainly concerned about whether the directory exists in the server or not. and one more thing... this is the Application Server path not the Local path.
Can anyone help me on the same how to check whether the server directory exists or not.
Thanks in advance.
Best Regards,
Pradeep.Also you can use the FM EPS_GET_DIRECTORY_LISTING for this purpose.
Store the directory name
l_dpath = p_file+0(l_no).
Validate the directory of the application server
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
EXPORTING
dir_name = l_dpath
TABLES
dir_list = l_i_dlist
EXCEPTIONS
invalid_eps_subdir = 1
sapgparam_failed = 2
build_directory_failed = 3
no_authorization = 4
read_directory_failed = 5
too_many_read_errors = 6
empty_directory_list = 7
OTHERS = 8.
If any problem occurs with the directory then display proper
error message
IF sy-subrc <> 0.
Display error message
MESSAGE e018 WITH 'Problem with directory entered'(008).
ENDIF. " sy-subrc <> 0
Regards,
Joy. -
Directory Existence Check on Application Server
Is there any function module to check whether a given directory exists on Application Server or not.
This works pretty good for me.
REPORT ZRICH_0001 .
type-pools: abap.
data: path type string.
data: result type abap_bool.
path = '\<host>usrsapTSTSYS'.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST
EXPORTING
DIRECTORY = path
RECEIVING
RESULT = result
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
WRONG_PARAMETER = 3
NOT_SUPPORTED_BY_GUI = 4
others = 5.
if result = 'X'.
Write:/ 'Directory Exists'.
else.
Write:/ 'Directory not found'.
endif.
Regards,
Rich Heilman -
New Directory in Application server Required for data upload
Hi,
I need to load data in SAP application server. i will use CG3X to load the data.
I need to create a new directory in the application server to load all my flat files. Does any one know how to create a directoty?
Please provide list of steps and transactions used for creating this.
ThnksGo to t-code FILE.
Click on Logical file path definition and hit the New Entries button
Enter your logical path name, say ZXXX
Go back to FILE
In the right window, click on the block on the left to highlight the line you just created.
Now double-click on Assignment of physical paths to logical path
Now click New Entries.
Select your syntax group (this is just your O/S)
Here you can enter your physical path.
Maybe you are looking for
-
My mid 2012 MBP Retina has restarted because of a problem??
Hey everybody! My mid 2012 MBP Retina has restarted because of a problem a couple of times now, and looking on here it's made me nervous that it could be a hardware problem?? Here what console has to say about it; Fri Apr 5 01:03:38 2013 panic(cpu 0
-
Windows or Mac???
Is it possible to connect an iPod to a Windows machine with out formatting it after connecting it to a Mac? I have iTunes on both puters and would like to use both if possible. I have a 4th Gen. iPod Thanks in advance. B&W G3 400mhz,768mb ram,40gb WD
-
My new wireless keyboard is intermittently losing connection.
I broke a key on my original iMac wireless keyboard, so I got a new one. Ever since I got it a month ago, however, it will sometimes disconnect and the reconnect seconds later multiple times. It's really annoying, prohibiting me from typing and will
-
NQSError 15018 Incorrectly defined logical table source error
Hi, I am getting the following error when I am building one of my reports. I have 3 dimensions - Time, customer and Product and two facts F1 and F2. Both F1 and F2 are joined to all three dimensions The part I dont understand is that when I built a r
-
What are the main points to freeze technical scenario in SRM?VeryUrgent Pls
Hi SRM Guruu2019s, What are the main points to freeze technical scenario in SRM?. Please mention main points to select Classic Scenario and Extended Classic scenario individually. I would really appreciate. Regards, John. Edited by: johnmiller465 on