Regarding registry path of plx files
Hi All
I have created a new library and referred it in one of the forms. But attaching library to the form requires the plx file path of the library to be mentioned in Form/Libr attachment section in Edit generator preference of the particular form.
Is there some some registry path which we can modify to put the path where all the plx files are kept. This will not require the attachment of library to the form explicitly.
Any help in this regard is appreciated.
Cheers Sudhir
Did you include the path of the plx files in your Forms path?
And after you deploy your Forms to the Oracle Application server also include the path of the plx files to the Forms path in the environment file.
Regards,
Mark
Similar Messages
-
Not able to find out the path where i need to place the .plx file on server
I have to make some changes in the PLL (library) file and compile it into it's .plx file and move the .plx to the server.
I am not able to find out the path where i need to place the .plx file on the server.
I have placed it in /iasapp01/app_name/library,but it is not taking it into effect.
Please help,if anyone knows about this,as to how to solve this issue
Thanks
GAGHi Andreas,
My Forms Version is 9.0.2 and the application server is 9iAS( 9.0.2)
The variable FORMS90_PATH in the .env file has the following entries
FORMS90_PATH=/iasapp01/app_name/fmx:/iasapp01/app_name/library:/iaspp01/app_name/html
and i have placed the plx in the /iasapp01/app_name/fmx path,but somehow its not referencing it.
My Formsweb.cfg has the following entry...
[app_name]
pagetitle=app_name_WEB
serverapp=/app_name/app_name
width=800
height=550
colorscheme=blue
separateframe=true
form=log.fmx
otherparams=REPORT_PATH=/iasapp01/app_name/html/report_files/ FILE_PATH=/iasapp01/app_name/rep/
WEB_PATH=http://server.com:7778/app_name/
envfile=/ias01/app/oracle/product/ias_9.0.2/forms90/server/app_name.env
I have another question which is ..Does applciation built on Forms 9.0.2 would work on Internet Explorer 8 and Windows 8 environment using Sun JRE.
I was going through this website
http://nutthaphon.blogspot.com/2009/05/how-do-jinitiator-and-jpi-parameters.html
and followed the steps as mentioned,but it did not work for me.
Can you help me if you have any info on this?
Thanks
GAG -
Regarding assignment of physical path to logical file name
Hi All,
We have created one logical file name and assigned physical path to it in FILE tcode.
IN PATH table also these details got updated with correct logical file name & physical path.
But in my program when i have used FILE_GET_NAME F.M to retrieve physical path from logical file.
Here this F.M is not returning anything.
What is the issue over here.
We are working in ECC 6.0
Can anybody resolve this issue!
Thanks,
Deep.do one thing i give my report so according to do this
*& Report ZMIO_MANU_VENDOR_EXTR
report zmio_manu_vendor_extr.
DATA BASE TABLES
tables: lfa1 ,eina, lfm1 .
STRUCTURES
*---structure for the vendor details.
data: begin of ws_lfa1 ,
lifnr type lfa1-lifnr,
name1 type lfa1-name1,
end of ws_lfa1 .
*---structure for the pur org details.
data: begin of ws_lfm1 ,
lifnr type lfm1-lifnr,
kalsk type lfm1-kalsk,
minbw type lfm1-minbw,
end of ws_lfm1 .
*---structure for the pur inf rec.
data: begin of ws_eina,
lifnr type eina-lifnr,
relif type eina-relif,
end of ws_eina .
*--structure for the output file
data: begin of ws_final,
lifnr(10) type c,
name1(35) type c,
kalsk(1) type c,
minbw(13) type c,
eoln(1) type c,
end of ws_final .
INTERNAL TABLES
*---internal table for vendor details
data:i_lfa1 like ws_lfa1 occurs 0.
*---internal table for pur org details
data:i_lfm1 like ws_lfm1 occurs 0.
*---internal table for pur inf details
data:i_eina like ws_eina occurs 0.
*---internal table for final file output
data:i_final like ws_final occurs 0.
*DATA : P_FLAG(1) TYPE C.
CONSTANTS
*-- Default file name
constants: c_filename_default(40) type c
value 'VOLSAP/MAXVRLIB/manu_retail_vendor',
c_kalsk(2) type c value '05'.
SELECTION SCREEN
selection-screen begin of block b1 with frame.
selection-screen: begin of block b2 with frame title text-001 .
select-options:s$lifnr for lfa1-lifnr .
parameters:p$relif as checkbox.
selection-screen end of block b2.
selection-screen: begin of block b3 with frame title text-002 .
parameters: p$file(128) obligatory default c_filename_default.
selection-screen end of block b3.
selection-screen end of block b1 .
START OF SELECTION
start-of-selection.
if not s$lifnr is initial.
perform get_vendor_data .
endif.
perform build_file .
perform display_file .
END OF SELECTION
end-of-selection .
*& Form GET_VENDOR_DATA
form get_vendor_data .
select lifnr
name1
from lfa1
into table i_lfa1
where lifnr in s$lifnr .
if not i_lfa1[] is initial.
sort i_lfa1 by lifnr .
select lifnr
kalsk
minbw
from lfm1
into table i_lfm1
for all entries in i_lfa1
where lifnr = i_lfa1-lifnr .
select lifnr
relif
from eina
into table i_eina
for all entries in i_lfa1
where lifnr = i_lfa1-lifnr
and relif = 'X'.
endif.
endform. " GET_VENDOR_DATA
*& Form BUILD_FILE
form build_file .
loop at i_lfa1 into ws_lfa1 .
ws_final-lifnr = ws_lfa1-lifnr .
ws_final-name1 = ws_lfa1-name1 .
read table i_lfm1 into ws_lfm1 with key lifnr = ws_lfa1-lifnr .
if ws_lfm1-kalsk = c_kalsk .
ws_final-kalsk = 'X'.
endif.
ws_final-minbw = ws_lfm1-minbw .
ws_final-eoln = 'X'.
if p$relif = 'X'.
CLEAR P_FLAG.
LOOP AT I_EINA INTO WS_EINA
WHERE LIFNR = WS_LFA1-LIFNR
AND RELIF = 'X'.
P_FLAG = 'X'.
EXIT.
ENDLOOP.
IF P_FLAG = 'X'.
APPEND WS_FINAL TO I_FINAL .
CLEAR WS_FINAL.
ENDIF
read table i_eina into ws_eina with key lifnr = ws_lfa1-lifnr
relif = 'X'.
if sy-subrc = 0.
append ws_final to i_final .
clear ws_final.
endif.
else.
append ws_final to i_final .
clear ws_final.
endif.
endloop .
endform. " BUILD_FILE
*& Form DISPLAY_FILE
form display_file .
data: l_lines type i.
describe table i_final lines l_lines.
if l_lines > 0.
perform open_file using p$file.
loop at i_final into ws_final.
transfer ws_final to p$file.
endloop.
close dataset p$file.
else.
write: / 'no data found'.
endif.
endform. " DISPLAY_FILE
*& Form open_file
Open an output file, customizing default name to include
vendor number and job completion timestamp.
form open_file using file_nm.
data: l_vendor like eina-lifnr,
l_timestamp(12) type c.
Get correct path/filename for the system we're running on
call function 'FILE_GET_NAME'
exporting
logical_filename = 'ZVOL'
parameter_1 = file_nm
importing
file_name = file_nm.
Open file for output
open dataset file_nm for output in text mode encoding default.
if sy-subrc ne 0.
message e368(00) with 'Error opening output file:' file_nm.
endif.
endform. "open_file
All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.
Edited by: krupa jani on Aug 20, 2008 6:55 AM -
Hi all,
when a create a SQL Server Project using "File > New ...", I find the following settings defaulted:
SQL Server is (local)\Version12.0 and
DefaultDataPath, DefaultFileprefix and the DefaultFilename(s) for MDFs and LDFs point to the Project directory.
Initial settings of file size and increments are also not settable but defaulted.
Because my projects have to verify performance by testing with large volume of data, we have to use a different SQL Server with files stored on that Server. The Project settings have a button to changes DB properties, but these are not part of that
dialog.
So I spent some fruitless hours in vain to find a way to change the project's connection to my development SQL Servers.
How to cope with that?
Thanks in advance.
Regards UweHi Caillen,
thanks for Your response. I have to apologize for being a little late with my answer. I'll try to clarify my case more precisely:
This is surely a topic related to VS2013 handling new "SQL Server Database Projects". When one clicks "OK" the following steps are executed by VS2013 (surely controlled by standard templates or the like):
VS2013 creates the new project in a selectable directory and uses the projectname as a subdirectory whre the directory elements (*.sqlproj, bin\, obj\) where later all the *.sql are placed, too. This is normal and expected.
VS2013 creates a new database with its DB-files
and attaches it to "(localdb)\ProjectsV12". The name of the database is the name of the project. The path to the DB-files (*.mdf and ldf) and their sizes are also defaulted to small values. The DB-server and the
path to the DB-files is taken from the registry (!) HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\SSDT\LocalDbDatabaseFilePaths. I don't know when and by what tools these values are set.
The path to DB-Files is typically also the path to the projects. The (local)-server places all system database files in the User\<user-ID>\Appdata\.. tree. Which is OK for small databases. The templates extracts some data from the DB-file path and
places it in the deployment SQLs to populate the SQLCMD variables DefaultDataPath, DefaultFileprefix and the DefaultFilename(s) which are generated when pressing "Executed" or "Debug" the project.
My problem is that we have to test database performance with larger volumes of data (e.g. two million rows and more). These cannot be stored in the User-path but must be handled by some kind of professional DB-Manager on various storage devices. When everything
is tested, the publishing function of VS2013 will extract the structure and you are done incl. all the performance taming things.
The dialog from the project properties can change to a different Server, but that server does not know your project database. The server and the DB-Files should be specified by the developer before VS2013 creates the database.
So the right forum would be a forum, where people developing SQL Server solutions with VS2013 are reading the questions.
Thanks again for your patience.
Regards Uwe -
Load the path for properties files
Hi;
My application uses of the properties files which are stored in a repertory /properties at the same level that JAR.
I search an good means to configure the path of the files properties: for example: a environment variable or another mean?
My application will read from this env variable (or another means) the path where are stored the files to use them.
Regards;If the properties file is fixed, then it's best to make it a resource as suggested and put it inside the jar.
OTOH if you have a situation where the properties file is dependant on installation or even writable then that won't do.
In a lot of cases where the properties are variable it's better to use the Preferences class, on Windows this will put the data in the registry.
You can use a command line argument, of course, to specify the location of your configuration file. I tend to use java System.getProperty and -D command line switches. That has the advantage that you don't have to send the value down from main() to where you are using it. -
In IE, while saving a file it is taking the full path with the file name
Hi,I am using Tomcat5.5. In one page of my website, there is code responsible for saving an image from the server to the client machine. whenever i am doing this Mozila the file is getting saved with desired name. But in IE it takes full path of the file in the server directory along with its name while being saved in the client machine.Below is the code responsible for this. Plz Help.
DiskFileUpload fu = new DiskFileUpload();
List fileItems = fu.parseRequest(request);
Iterator itr = fileItems.iterator();
while(itr.hasNext())
FileItem fi = (FileItem)itr.next();
//Check if not form field so as to only handle the file inputs
//else condition handles the submit button input
if(!fi.isFormField())
if(fi.getFieldName().equals("FileImage"))
if(fi.getSize() < 300000)
if(fi.getSize()!=0)
java.util.Random rd = new java.util.Random();
int random = rd.nextInt(100000);
String img_code = random + "";
if(fi.getContentType().equals("image/jpeg") || fi.getContentType().equals("image/pjpeg") || fi.getContentType().equals("image/gif") || fi.getContentType().equals("image/png") || fi.getContentType().equals("image/x-png") || fi.getContentType().equals("image/bmp") || fi.getContentType().equals("image/wmp") || fi.getContentType().equals("application/octet-stream") || fi.getContentType().equals("audio/wav") || fi.getContentType().equals("audio/x-wav") || fi.getContentType().equals("audio/AMR") || fi.getContentType().equals("audio/amr") || fi.getContentType().equals("audio/mpeg") || fi.getContentType().equals("audio/mp4a-latm") || fi.getContentType().equals("audio/x-realaudio") || fi.getContentType().equals("audio/x-pn-realaudio") || fi.getContentType().equals("audio/x-pn-realaudio-plugin") || fi.getContentType().equals("audio/midi") || fi.getContentType().equals("audio/mid") || fi.getContentType().equals("audio/x-midi") || fi.getContentType().equals("audio/x-mid") || fi.getContentType().equals("audio/x-tone-seq") || fi.getContentType().equals("audio/imelody")
|| fi.getContentType().equals("video/mp4v-es") || fi.getContentType().equals("video/mp4") || fi.getContentType().equals("video/3gp") || fi.getContentType().equals("video/3gpp") || fi.getContentType().equals("video/mpeg") || fi.getContentType().equals("video-h263-2000"))
System.out.println("Content from FileItem : "+fi.getContentType());
File tempfile = new File(fi.getName());
String imageFile=tempfile.getName();
out.println("imageFile:" +imageFile);
imageFile= imageFile.replace(':','_');
imageFile=imageFile.replace('\\','_');
imageFile= imageFile.replace('/','_');
imageFile= imageFile.replace(' ','_');
System.out.println(imageFile);
out.println("imageFile:"+imageFile);
int extIndex=0;
String ext="";
extIndex = imageFile.lastIndexOf(".");
ext = imageFile.substring(extIndex+1);
if( ext.toLowerCase().equals("jpg") || ext.toLowerCase().equals("jpeg") || ext.toLowerCase().equals("jpe") || ext.toLowerCase().equals("bmp") || ext.toLowerCase().equals("gif")|| ext.toLowerCase().equals("png") || ext.toLowerCase().equals("wbmp")
|| ext.toLowerCase().equals("amr") || ext.toLowerCase().equals("mp3") || ext.toLowerCase().equals("mp2") || ext.toLowerCase().equals("mpga") || ext.toLowerCase().equals("wav") || ext.toLowerCase().equals("midi") || ext.toLowerCase().equals("mid") || ext.toLowerCase().equals("kar") || ext.toLowerCase().equals("ra") || ext.toLowerCase().equals("ram") || ext.toLowerCase().equals("rm") || ext.toLowerCase().equals("au")
|| ext.toLowerCase().equals("3gpp") || ext.toLowerCase().equals("3gp") || ext.toLowerCase().equals("mpeg") || ext.toLowerCase().equals("mpe") || ext.toLowerCase().equals("mpg") || ext.toLowerCase().equals("mp4") || ext.toLowerCase().equals("movie") || ext.toLowerCase().equals("avi") || ext.toLowerCase().equals("qt") || ext.toLowerCase().equals("mov") || ext.toLowerCase().equals("viv") || ext.toLowerCase().equals("vivo"))
File fNew = new File(application.getRealPath("/userImages/"),img_code+"_"+imageFile);
// ImagePath = imagepath+img_code+"_"+tempfile.getName();
ImagePath = imagepath+img_code+"_"+imageFile;
System.out.println("Image PAth : "+ImagePath);
// ImagePath = fNew.getAbsolutePath();
//out.println(fNew.toString());
ImageName = fNew.getName();
System.out.println("Image Name : "+ImageName);
out.println("ImageName:" +ImageName);
fi.write(fNew);
else
System.out.println("Invalid File Type : "+ext);
Error = "1: Invalid File Type/Extension : "+ext;
else
Error = "2: File uploaded is not valid.";
System.out.println("Content from FileItem : "+fi.getContentType());
System.out.println("invalid Content Type");
else
Error = "";
else
Error = "3: File uploaded is not valid. Make sure that the image size does not exceed 300KB";
System.out.println("File uploaded is not valid.");
else
session.setAttribute(fi.getFieldName(),fi.getString());
session.setAttribute("ImagePath",ImagePath);
session.setAttribute("ImageName",ImageName);
session.setAttribute("barcodepath",barcodepath);
//Added by Mutharasu on 30/08/2005
session.setAttribute("tagpath",tagpath);
Title = (String) session.getAttribute("txtTitle");
if(Title.length()==0)
Error = " Please Enter KoolTag Title : ";
Key = (String) session.getAttribute("txtKey");
URL = (String) session.getAttribute("txtURL");
System.out.println("Key: "+ Key +", URL:"+URL);
System.out.println("trace 5");
if (ImagePath.trim().length()==0 && ImageName.trim().length()==0) {
if (Key==null && URL==null)
throw new Exception("4: "+Error);
}Hi Vigneshwara,
Please reopen a new thread in
ASP.NET Getting Started forum because I can't move it there.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Function Module to find the Path of the file in the Application Server
Hi All,
Any function module available to find the path of the file stored in the application server. Please let me know.
Thanks.Check this code:
DATA: dl_file TYPE ibipparms-path. " File name
CONSTANTS: c_dir TYPE rlgrap-filename.
* F4 filename for Application server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = c_dir
filemask = ' '
IMPORTING
serverfile = dl_file
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000 WITH 'Error while getting the file name'(006).
EXIT.
ELSE.
p_file = dl_file.
ENDIF.
Thanks & Regards,
Siri.
Message was edited by:
Srilatha T -
How to get the Real Path of a file which is accessed by URL?
iam using tomcat6.0.
I have a file xyz.xml at the top of the webapplication HFUSE which i can able to access by URL
http://localhost:8080/HFUSE/xyz.xml
My problem is how to get the realpath of the file "xyz.xml" for reading and writing purposes.
I tried various things but i could not able to successfully solved the problem?
1) File f = new File("/xyz.xml");
print(f.getAbsolutePath()) ============== it is not fetching the file @ http://localhost:8080/HFUSE/xyz.xml rather it is creating a file
at the root of the drive where eclipse is running.
2) File f = new File("xyz.xml");============> this is also not working , it is creating the file xyz.xml in the eclipse directory ..................
Can anyone please guide on this problem?RevertInIslam wrote:
If you want your context root(i.e HFUSE)
use this:
request.getContextPath() //where request is HttpServletRequest object to get the needful path.
e.g:
File f = new File(request.getContextPath()+"/xyz.xml");//it will create the file inside HFUSE.
Hope this helps.
Regards
BWrong. The File constructor expects an absolute filesystem path. The HttpServletRequest#getContextPath() doesn't return the absolute filesystem path, it only returns the relative path from the current context root. Use ServletContext#getRealPath() instead, it returns the absolute filesystem path for the given relative path from the current context root.
File file = new File(servletContext.getRealPath("/"), "xyz.xml"); -
How to split path and filename (file is on application server)
Searching this forum I found a couple of FM's that apparently only worked for PC files. Is there a parser function for files w/ the Unix naming convention?
You could parse it yourself...
DATA: filepath TYPE char255 VALUE '/usr/<sys_id>/sap/tmp/filename.txt'.
DATA: path TYPE char255.
DATA: file TYPE char255.
DEFINE macro_reverse_string.
call function 'STRING_REVERSE'
exporting
string = &1
lang = sy-langu
importing
rstring = &1.
END-OF-DEFINITION.
macro_reverse_string filepath.
SPLIT filepath AT '/' INTO file path.
macro_reverse_string filepath.
macro_reverse_string file.
shift path right by 1 places. path(1) = '/'.
macro_reverse_string path.
WRITE:/ filepath.
WRITE:/ path.
WRITE:/ file.
Regards,
Rich Heilman -
How to get full path of a file uploaded using file control on a jsp ?
Hi all...
I have a jsp on which i am using a file element (input type="file") to upload files present on the physical file system.. Thats working fine.. But i want to retrieve the full path of the file uploaded for further computation.
What are the possible ways which can give me the full path ?? (e.g. "D:\data\text\Output.txt" )
Thanks all for attending the question..
Regards
PrasadSome browsers send the full path. Some do not.
You can not affect this in any way shape or form.
All you can count on receiving is a filename - no path information.
So you will have to have some other way for the user to pass along this information.
If they are uploading to a "remote web site" they could specify a folder to put the uploaded file in.
You could classify it and put all image files in "images" and all script files in "scripts" etc etc by default, and let the user deal with it in their own HTML.
Hope this helps,
evnafets -
F4 Help to get the path for a File source directory
There are numerous function modules for browsing a particular file in desktop and getting the file path (including the fine name) , like F4_FILENAME , KD_GET_FILENAME_ON_F4 , WS_FILENAME_GET etc. But can anyone tell me how to fetch only the directory path to the field were the F4 help is given. Actually the filename has to come in some other field in the selection screen. Is there separate funtion modules for these OR will changing parameters in the above function modules work?
Pls Help....
Also are there function modules for providing F4 help for getting the path to a file in application directory?Try this method CL_GUI_FRONTEND_SERVICES.
It is a Global CLASS which is having different methods for different purposes
see the documentation of it and use the methods of it
see
CL CL_GUI_FRONTEND_SERVICES
Short Text
Frontend Services
Functionality
The class CL_GUI_FRONTEND_SERVICES contains static methods for the following areas:
File functions
Directory functions
Registry
Environment
Write to / read from clipboard
Upload / download files
Execute programs / open documents
Query functions, such as Windows directory, Windows version, and so on
Standard dialogs (open, save, directory selection)
Example
Determine the temp directory on your PC:
DATA: TEMP_DIR TYPE STRING.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_TEMP_DIRECTORY
CHANGING
TEMP_DIR = TEMP_DIR
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2.
IF SY-SUBRC 0.
Error handling
ENDIF.
flush to send previous call to frontend
CALL METHOD CL_GUI_CFW=>FLUSH
EXCEPTIONS
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
OTHERS = 3.
IF SY-SUBRC 0.
Error handling
ENDIF.
WRITE: / 'Temporary directory is:', TEMP_DIR.
Notes
The class CL_GUI_FRONTEND_SERVICES is based on the Control Framework. See the documentation for more information, in particular on CL_GUI_CFW=>FLUSH which must be called after many CL_GUI_FRONTEND_SERVICES methods.
Migration Information
The old file transfer model was based on function modules of the function group GRAP. The old features have been replaced by the class CL_GUI_FRONTEND_SERVICES. The following list contains the old function modules (italic) and the new methods (bold) that replace them:
CLPB_EXPORT
CLIPBOARD_EXPORT
CLPB_IMPORT
CLIPBOARD_IMPORT
DOWNLOAD
GUI_DOWNLOAD, dialog replaced by FILE_SAVE_DIALOG
PROFILE_GET
No replacement, use REGISTRY_* methods instead
PROFILE_SET
No replacement, use REGISTRY_* methods instead
REGISTRY_GET
REGISTRY_GET_VALUE, REGISTRY_GET_DWORD_VALUE
REGISTRY_SET
REGISTRY_SET_VALUE, REGISTRY_SET_DWORD_VALUE
UPLOAD
GUI_UPLOAD, dialog replaced by FILE_OPEN_DIALOG
WS_DDE
Obsolete: This function is no longer supported.
SET_DOWNLOAD_AUTHORITY
Obsolete: This function is no longer supported.
WS_DOWNLOAD
GUI_DOWNLOAD
WS_DOWNLOAD_WAN
Obsolete: This function is no longer supported.
WS_EXCEL
Obsolete: This function is no longer supported.
WS_EXECUTE
EXECUTE
WS_FILENAME_GET
FILE_SAVE_DIALOG, FILE_OPEN_DIALOG
WS_FILE_ATTRIB
FILE_SET_ATTRIBUTES, FILE_GET_ATTRIBUTES
WS_FILE_COPY
FILE_COPY
WS_FILE_DELETE
FILE_DELETE
WS_MSG
Obsolete: This function is no longer supported.
WS_QUERY
CD (current directory)
DIRECTORY_GET_CURRENT
EN (read/write environment)
ENVIRONMENT_GET_VARIABLE
ENVIRONMENT_SET_VARIABLE
FL (determine file length)
FILE_GET_SIZE
FE (check if file exists)
FILE_EXIST
DE (check if directory exists)
DIRECTORY_EXIST
WS (determine Windows system)
GET_PLATFORM
OS (operating system)
GET_PLATFORM
WS_UPLDL_PATH
Obsolete: This function is no longer supported.
WS_UPLOAD
GUI_UPLOAD
WS_VOLUME_GET
Obsolete: This function is no longer supported.
Reward points if useful. -
How do i get the path of the file selected for opening in JFileChooser
hi
I need to get the path of the file selected for opening or saving in the JFileChooser dialog box.Is there any method available.if not how do i get that?
Thanks and Regards
Saminathan.don't know if its the best/only way, but you could use the getSelectedFile() method in JFileChooser which returns a file and then use the getAbsolutePath() file method
-
How to create search path for the file on the desktop..
hello experts..
I have used gui_upload module to upload the data from flatfile to the internal table, in that how can i create search path for the file selection in the selection screen, also please help me the code to update the ztable.
thanksHI
If iam not wrong you want to select a file from a location that you don't know so if this is ur problem then use the function module
F4_FILENAME
this FM helps to locate and select the desired file from the system.
Sample code that you can check is
How to get windows filename
PARAMETERS: lv_file LIKE rlgrap-filename.
Method 1
CALL FUNCTION u2019KD_GET_FILENAME_ON_F4u2019
EXPORTING
MASK = u2019,.txt,.*u2019
STATIC = u2019Xu2019
CHANGING
FILE_NAME = LV_FILE.
Method 2
CALL FUNCTION u2019F4_FILENAMEu2019
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = u2019 u2019
IMPORTING
file_name = LV_FILE.
Regards
Pavan -
Hi all,
how to know the path of the file which is application server.
thanks®arsd,
younisWhen looking at/for files on the application server(UNIX) using AL11 you are restricted to only certian directories. The following ABAP program displays all files/directories on the application server(UNIX).
Copy the below program and check it .... it will give you the list of fiels and directorys in you server .
*: Description: Using internal System Call we gain access to UNIX. :
*: The program uses the standard Unix command 'cat' to:
*: browse the file :
*: The program lets you browse a file record of up to :
*: 500 chars wide. :
REPORT ZBROWSEFILE MESSAGE-ID Z1
NO STANDARD PAGE HEADING
LINE-COUNT 65
LINE-SIZE 80.
DATA: BEGIN OF TABL OCCURS 0,
LINE(560),
END OF TABL.
DATA: PARCOM_LOC LIKE RS37A-LINE.
DATA: COLOR TYPE I.
DATA: COUNT(16) TYPE C.
Parameters. *
SELECTION-SCREEN SKIP 2.
PARAMETERS: PARCOM LIKE RS37A-LINE.
Validering af parametre. *
TOP-OF-PAGE. *
TOP-OF-PAGE.
PERFORM WRITE_PAGE_HEADING.
INITIALIZATION. *
INITIALIZATION.
PARCOM = '/usr/sap/trans/* '.
START-OF-SELECTION. *
START-OF-SELECTION.
PERFORM MAKE_LOC.
PERFORM COLLECT_DATA.
PERFORM WRITE_FILE_CONTENT.
PERFORM WRITE_NUMBER_OF_CONTENT.
FORM MAKE_LOC. *
FORM MAKE_LOC.
CLEAR: PARCOM_LOC.
PARCOM_LOC(4) = 'cat '.
PARCOM_LOC+4(245) = PARCOM.
ENDFORM.
FORM COLLECT_DATA. *
FORM COLLECT_DATA.
REFRESH TABL.
CALL 'SYSTEM' ID 'COMMAND' FIELD PARCOM_LOC
ID 'TAB' FIELD TABL-SYS.
ENDFORM.
FORM WRITE_FILE_CONTENT. *
FORM WRITE_FILE_CONTENT.
The following data item needs to be renamed as the "DEVK910117
special character used is no longer valid. "DEVK910117
*DATA: LÆNGDE LIKE SY-FDPOS. "DEVK910117
DATA: LAENGDE LIKE SY-FDPOS. "DEVK910117
LOOP AT TABL.
LÆNGDE = STRLEN( TABL-LINE ). "DEVK910117
LAENGDE = STRLEN( TABL-LINE ). "DEVK910117
IF LÆNGDE GE 0. "DEVK910117
IF LAENGDE GE 0. "DEVK910117
PERFORM COLORLINE USING ' 0' TABL-LINE+0(69).
PERFORM STREGER_3.
ENDIF.
IF LÆNGDE GE 70. "DEVK910117
IF LAENGDE GE 70. "DEVK910117
PERFORM COLORLINE USING ' 70' TABL-LINE+69(70).
PERFORM STREGER_3.
ENDIF.
IF LÆNGDE GE 140. "DEVK910117
IF LAENGDE GE 140. "DEVK910117
PERFORM COLORLINE USING '140' TABL-LINE+139(70).
PERFORM STREGER_3.
ENDIF.
IF LÆNGDE GE 210. "DEVK910117
IF LAENGDE GE 210. "DEVK910117
PERFORM COLORLINE USING '210' TABL-LINE+209(70).
PERFORM STREGER_3.
ENDIF.
IF LÆNGDE GE 280. "DEVK910117
IF LAENGDE GE 280. "DEVK910117
PERFORM COLORLINE USING '280' TABL-LINE+279(70).
PERFORM STREGER_3.
ENDIF.
IF LÆNGDE GE 350. "DEVK910117
IF LAENGDE GE 350. "DEVK910117
PERFORM COLORLINE USING '350' TABL-LINE+349(70).
PERFORM STREGER_3.
ENDIF.
IF LÆNGDE GE 420. "DEVK910117
IF LAENGDE GE 420. "DEVK910117
PERFORM COLORLINE USING '420' TABL-LINE+419(70).
PERFORM STREGER_3.
ENDIF.
IF LÆNGDE GE 490. "DEVK910117
IF LAENGDE GE 490. "DEVK910117
PERFORM COLORLINE USING '490' TABL-LINE+489(70).
PERFORM STREGER_3.
ENDIF.
IF LÆNGDE GE 560. "DEVK910117
IF LAENGDE GE 560. "DEVK910117
The following can only pass over at most one byte "DEVK910117
because the table line length is only 560. An error "DEVK910117
results on compilation because it is currently "DEVK910117
trying to pass over something which does not exist. "DEVK910117
It is better to pass over just the one byte than "DEVK910117
nothing at all. "DEVK910117
PERFORM COLORLINE USING '560' TABL-LINE+559(70). "DEVK910117
PERFORM COLORLINE USING '560' TABL-LINE+559(01). "DEVK910117
PERFORM STREGER_3.
ENDIF.
ENDLOOP.
WRITE:/1(80) SY-ULINE.
ENDFORM.
FORM WRITE_PAGE_HEADING. *
FORM WRITE_PAGE_HEADING.
WRITE:/1(80) SY-ULINE.
PERFORM STREGER_2.
FORMAT INTENSIFIED.
WRITE: /2(79) SPACE COLOR 1.
WRITE: 2 SY-DATUM COLOR 1.
WRITE: 15 PARCOM(65) COLOR 1.
PERFORM STREGER_2.
WRITE:/1(80) SY-ULINE.
PERFORM STREGER_2.
FORMAT INTENSIFIED.
WRITE: /2(79) SPACE COLOR 3.
WRITE: 2 'Offset' COLOR 3,
10 '0........1........2........3........' COLOR 3,
50 '4........5........6....+....' COLOR 3.
PERFORM STREGER_3.
FORMAT RESET.
WRITE:/1(80) SY-ULINE.
ENDFORM.
FORM STREGER_2. *
FORM STREGER_2.
PERFORM WRITE_VLINE USING ' ' 1.
PERFORM WRITE_VLINE USING ' ' 80.
ENDFORM.
FORM STREGER_3. *
FORM STREGER_3.
PERFORM WRITE_VLINE USING ' ' 1.
PERFORM WRITE_VLINE USING ' ' 9.
PERFORM WRITE_VLINE USING ' ' 80.
ENDFORM.
WRITE_VLINE. *
FORM WRITE_VLINE USING MODE POS.
IF MODE NE 'T'.
FORMAT INTENSIFIED.
ENDIF.
POSITION POS.
WRITE: SY-VLINE.
IF MODE NE 'T'.
FORMAT RESET.
ENDIF.
ENDFORM.
FORM COLORLINE. *
FORM COLORLINE USING TEXT1 TEXT2.
ON CHANGE OF SY-TABIX.
COLOR = COLOR + 1.
COLOR = COLOR MOD 2.
ENDON.
FORMAT RESET.
IF COLOR = 1.
WRITE: /2(79) SPACE COLOR 2.
IF TEXT1 = ' 0'.
WRITE: 3 TEXT1 COLOR 2, 11 TEXT2 COLOR 2.
ELSE.
WRITE: 3 TEXT1 COLOR 2, 10 TEXT2 COLOR 2.
ENDIF.
ELSE.
WRITE: /2(79) SPACE COLOR 4.
IF TEXT1 = ' 0'.
WRITE: 3 TEXT1 COLOR 4, 11 TEXT2 COLOR 4.
ELSE.
WRITE: 3 TEXT1 COLOR 4, 10 TEXT2 COLOR 4.
ENDIF.
ENDIF.
ENDFORM.
FORM WRITE_NUMBER_OF_CONTENT. *
FORM WRITE_NUMBER_OF_CONTENT.
DESCRIBE TABLE TABL LINES COUNT.
FORMAT RESET. CONDENSE COUNT.
RESERVE 3 LINES.
WRITE:/1(80) SY-ULINE.
WRITE:/1(80) SY-ULINE.
WRITE: /2(79) SPACE COLOR 2.
WRITE: 2 'Number of records in file:' COLOR 2,
29 COUNT COLOR 2.
PERFORM STREGER_2.
WRITE:/1(80) SY-ULINE.
ENDFORM.
Regards,
Pavan -
How to use Class-Path in Manifest file
hi,
I want to add jar files in another executable jar file but the Class-Path in Manifest file is not set correctly,please give an example for setting a Class-Path attribute in Manifest class.
regards,
selvarajYou looked into the Jar section of the Sun tutorial did you?
Maybe you are looking for
-
SGA_TARGET and SGA_MAX_SIZE?
Dear Professional, I have been asked by my client, He wants me to install Oracle 11g software in three servers. One server has 16GB another has 32 GB, and another has 64 GB of RAM? What would be the Best swap size? How memory I need to assign to SGA
-
PreparedStatement execution cause OutOfMemoryException
Hello, I use PreparedStatement for getting data from database. It works well unless there is much data to get. If the result set has many rows (over 1000000) I get OutOfMemory error. I tried use Statement instead of PreparedStatement and tried to set
-
HR_BEN_GET_PLAN_COST - Need help with parameters
function hr_ben_get_plan_cost. *"*"Local interface: *" IMPORTING *" VALUE(EE_BENEFIT_DATA) LIKE RPBENEEDAT STRUCTURE RPBENEEDAT *" VALUE(BPLAN) LIKE T5UBA-BPLAN *" VALUE(BCOST) LIKE T5UBH-BCOST *" VALUE(DATUM) LIKE SY-DATUM *"
-
Hi, is there any way of assigning a keyboard shortcut to copy and paste atributes? I´m currently using drag and drop from the appearence panel but this takes much more time. In FreeHand I use ctrl+shift+C to copy the attributes of a shape and ctrl+sh
-
I shut down my XServe G5 before going on a trip for a few days and when I returned it would not power up. I checked the power cord at both ends and it is fully plugged in. I know there is a Lock Switch somewhere but I don't know if that could be the