Check if files exist using ABAP
Hi All,
I'm currently using FM: FILE_GET_NAME_USING_PATH, and I'd like to do a check to see if the filepath with file (i.e. /com/tmp/file.txt) I am getting back exists or not.
Very simple question, just not sure what to do.
Thanks,
John
There is a class that provides methods to check, if a file exist or if a certain directory does exist
CALL METHOD cl_gui_frontend_services=>directory_exist
EXPORTING
directory = lv_path
RECEIVING
result = lv_valid
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.
CALL METHOD cl_gui_frontend_services=>file_exist
EXPORTING
file = x_file_with_path
RECEIVING
result = y_file_exists
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.
Hope that helps,
Michael
Similar Messages
-
In ecatt - how to check at database level using ABAP
Hi,
How to check at database level using ABAP in Ecatt tool.
say,for example I want to check a particular sales order is invoiced or not ,at the database level and if it is invoiced I have stop proceeding to invoicing of that sales order number.
Could anybody suggest on this with an example?
thanks.Hi,
you can use the command GETTAB to access single db records.
Full specified or partitial specified keys can be use at GETTAB. It will return always only one record, also if a couple could match your selection.
For more advanced scenarios you can also use eCATTs Inline ABAP. In a block between the commands ABAP. ENDABAP. you can code ABAP statements, e.g. SELECT ... INTO TABLE ...
eCATT script parameters of type 'V' defined in that script using ABAP/ENDABAP will be transfered into the ABAP block and back to script after ABAP perform.
Best regards
Jens -
Changing physical path in FILE TCODE using ABAP CODE
Hi all ,
I want to change physical path linked to logical path in TCODE FILE dynamically using ABAP program. Is it possible.
If yes then how?
Thanks for your help.
Regards,
Uday.s
-
Checking file exist using file exist operator
Hi all,
My environment is owb 9i. DB is oracle 9.2.0.8
My business requirement is,
If file exists in the landing directory the next instant my mapping should start execution other wise it should wait untill the file arrives there.
How could i achive this functionality???
For this i am utilizing the file exist operator in process flow.
When the file exists in the specified directory i am able to execute the process flow quite fine but when the file doesnt exist in the specified directory the file exist operator is in wait state and even after when the file is placed into the directory, still the process flow remains in the wait state.
please suggest me a way.
thanks in advance.
ram.Hi Ram,
The problem you are hitting here is that there is no wait activity and no loop activity (yet) in the process flow editor. So it is hard to model this logically.
Would it be a good idea to write shell script that does similar things? You could check for a file, pauze and check again. Then error out or succeed...
In the 10gR2 release of OWB you can completely model this using waits and loops.
Thanks,
Jean-Pierre -
Use thread to check for file exists. How?
public class FileSearcher extends Thread
String name = "Unknown";
//RunFileSearcher rfs = new RunFileSearcher(name);
//FileSearcher rfs = new FileSearcher(name);
File f = new File();
Thread t = new Thread(); // create the thread
t.start(); // start the thread running
public void run(name)
if( f.exists(name) )
System.out.println("*** File " + f + " has been created. ***");
else
System.out.println("Searching for file " + f) ;
}How do I use each thread to check for each file exists per sec??
Please Help Thanks1) Why are you using Threads?
2) It is preferrable to implement Runnable.
3) This is all incredibly pointless (see point 1) -
Dialog prompt and check if file exists, and use the result of dialog
I have this working script and I want to change the way it behaves.
I want a dialog to come up, Do you want to skip or replace existing files.
Then the result of the dialog to be used in the reast of the script.
I've added it in the script where I need to use it. in noce big letters, hopefully its not a big job.
Many thanks
property type_list : {"8BPS"}
property extension_list : {"psd"}
script o
property theseNames : {}
end script
-- empty log file
do shell script "echo 'Files not processed in Photoshop :' > ~/Desktop/LogPhotoshopError.txt"
set noError to true
--Setup list of folders and process details of folders
set dtF to paragraphs of (do shell script "ls -F ~/Desktop | grep '/' | cut -d'/' -f1")
set tc to (count dtF)
repeat with i from 1 to tc
set folderName to item i of dtF --<: is the folder name, no need to use text item delimiters -->":"
if folderName does not start with "2_" and folderName does not start with "Hot" and folderName does not start with "Press" and folderName does not start with "Design" and folderName does not start with "Keywords" and folderName does not start with "Season" and folderName does not start with "Sue" and folderName does not start with "Design" then
set {oldTID, my text item delimiters} to {my text item delimiters, "_WK"}
set FolderEndName to last text item of folderName
set brandName to first text item of folderName
set my text item delimiters to "_PSD"
set weekNumber to first text item of FolderEndName
set my text item delimiters to oldTID
set theFolder to ("Hal 9000:Users:matthew:Desktop:" & folderName)
--set up names to destination folders and create locally based on brand name and week number
set this_local_folder to "Images:2012-2013"
set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
set localBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", localBrandFolder)
set localBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", localBrandFolder)
set localBrandFolder_PSD to my getFolderPath(brandName & "_WK" & weekNumber & "_PSD", localBrandFolder)
set this_Network_folder to "GEN:Brands:Zoom:Brand - Zoom:Upload Photos:2013:"
set networkWeekFolder to my getFolderPath("Week" & weekNumber, this_Network_folder)
set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkWeekFolder)
set website_images to "GEN:Website_Images:"
--set up names to destination folders and create over Netwrok for FTP collection (based on a mounted drive)
set this_ftp_folder to "pulse:"
set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
--at the beginning of the script, ask whether to replace or skip existing files? to apply to all?
--use the result for the if file exists?
display dialog "Should I replace or skip exisiting files?" buttons {"Replace", "Skip (Faster)"} default button 2 with icon 1
--taking the folder identify which process it must follow.
if brandName is equal to "BH" then
try
tell application "Finder" to set o's theseNames to (name of files of alias theFolder whose file type is in the type_list or name extension is in the extension_list)
on error
set o's theseNames to {} -- no psd files or "8BPS"
end try
set numOfNames to (count o's theseNames)
repeat with j from 1 to numOfNames
set thefile to theFolder & ":" & (item j of o's theseNames)
-- B H Folder Photoshop Process
--if thefile exists in the folder localBrandFolder_PSD then do the result of dialog.
--"Skip" the file and move on to next
--If "replace" continue the rest of the script.
tell application "Adobe Photoshop CS5.1"
-- I remove the command activate, Photoshop stay in background
set ruler units of settings to pixel units
try
open (alias thefile) showing dialogs never
set origName to name of current document
set myOptions to {class:JPEG save options, quality:12}
set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
tell current document
--If the quick mask mode has been left on then delete the channel Quick Mask
if (quick mask mode) then delete channel ¬
"Quick Mask"
--If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
if (exists layer "Original Layer") then ¬
tell layer "Original Layer" to set name to "Original Image"
save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
(delete layer "Original Image") flatten
resize image resolution 300 resample method none
--sharpen image
filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
save in (localBrandFolder_High_Res & name) as JPEG with options myOptions without copying
--get file path, return path of the JPEG file, work with (without copying)
-- (with copying) : it return path of PSD file
set newFile to file path --( return path of type alias )
-- duplicate file using the Finder -->on duplicateFile(..)
my duplicateFile(newFile, {ftpBrandFolder_High_Res})
--Prepare for Low RES by resetting image history
set current history state to history state 3
flatten
resize image width 1348
resize image resolution 300 resample method none
filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
--add save to lowResFolder with same options
save in (localBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
set newFile to file path
set newFile2 to newFile as string -- for testing end of name
if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" then -- exclude website_images
my duplicateFile(newFile, {networkBrandFolder_Low_Res, ftpBrandFolder_Low_Res})
else
my duplicateFile(newFile, {networkBrandFolder_Low_Res, ftpBrandFolder_Low_Res, website_images})
end if
close saving no
end tell
on error
set noError to false
my myLogs(thefile) -- write path to log file in Desktop
try
close saving no --if exists, close current document
end try
end try
end tell
end repeat
--End BH
-- else if and the rest of the script.....
end repeat
if not noError then do shell script "/usr/bin/open ~/Desktop/LogPhotoshopError.txt'"
on myLogs(t)
try
do shell script "echo " & (quoted form of t) & ">> ~/Desktop/LogPhotoshopError.txt'"
end try
end myLogs
on duplicateFile(tFile, foldersPath) -- tFile is an alias, foldersPath is a list of folder
tell application "Finder" to repeat with folderPath in foldersPath
with timeout of 200 seconds -- adjust it, error if the copy is longer that 200 seconds
duplicate tFile to folder folderPath with replacing
end timeout
end repeat
end duplicateFile
on getFolderPath(tName, folderPath)
tell application "Finder" to tell folder folderPath
if not (exists folder tName) then
return (make new folder at it with properties {name:tName}) as string
else
return (folder tName) as string
end if
end tell
end getFolderPath
tell application "Finder"
open "Hal 9000:Users:matthew:Desktop:LogPhotoshopError.txt"
end tellHi,
I think that's what you want.
I put the dialog in the beginning, so it does not appear to each folder, otherwise put it in the loop as it was originally.
property type_list : {"8BPS"}
property extension_list : {"psd"}
script o
property theseNames : {}
end script
-- empty log file
do shell script "echo 'Files not processed in Photoshop :' > ~/Desktop/LogPhotoshopError.txt"
set noError to true
--at the beginning of the script, ask whether to replace or skip existing files? to apply to all?
--use the result for the if file exists?
display dialog "Should I replace or skip exisiting files?" buttons {"Replace", "Skip (Faster)"} default button 2 with icon 1
set skipFiles to (button returned of the result) is "Skip (Faster)"
--Setup list of folders and process details of folders
set dtF to paragraphs of (do shell script "ls -F ~/Desktop | grep '/' | cut -d'/' -f1")
set tc to (count dtF)
repeat with i from 1 to tc
set folderName to item i of dtF --<: is the folder name, no need to use text item delimiters -->":"
if folderName does not start with "2_" and folderName does not start with "Hot" and folderName does not start with "Press" and folderName does not start with "Design" and folderName does not start with "Keywords" and folderName does not start with "Season" and folderName does not start with "Sue" and folderName does not start with "Design" then
set {oldTID, my text item delimiters} to {my text item delimiters, "_WK"}
set FolderEndName to last text item of folderName
set brandName to first text item of folderName
set my text item delimiters to "_PSD"
set weekNumber to first text item of FolderEndName
set my text item delimiters to oldTID
set theFolder to ("Hal 9000:Users:matthew:Desktop:" & folderName)
--set up names to destination folders and create locally based on brand name and week number
set this_local_folder to "Images:2012-2013"
set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
set localBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", localBrandFolder)
set localBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", localBrandFolder)
set localBrandFolder_PSD to my getFolderPath(brandName & "_WK" & weekNumber & "_PSD", localBrandFolder)
set this_Network_folder to "GEN:Brands:Zoom:Brand - Zoom:Upload Photos:2013:"
set networkWeekFolder to my getFolderPath("Week" & weekNumber, this_Network_folder)
set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkWeekFolder)
set website_images to "GEN:Website_Images:"
--set up names to destination folders and create over Netwrok for FTP collection (based on a mounted drive)
set this_ftp_folder to "pulse:"
set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
--taking the folder identify which process it must follow.
if brandName is equal to "BH" then
try
tell application "Finder" to set o's theseNames to (name of files of alias theFolder whose file type is in the type_list or name extension is in the extension_list)
on error
set o's theseNames to {} -- no psd files or "8BPS"
end try
set numOfNames to (count o's theseNames)
repeat with j from 1 to numOfNames
set thefile to theFolder & ":" & (item j of o's theseNames)
-- B H Folder Photoshop Process
tell application "Finder" to set b to exists file (localBrandFolder_PSD & item j of o's theseNames)
if b and not skipFiles then -- file exists and "replace" (continue the rest of the script).
tell application "Adobe Photoshop CS5.1"
-- I remove the command activate, Photoshop stay in background
set ruler units of settings to pixel units
try
open (alias thefile) showing dialogs never
set origName to name of current document
set myOptions to {class:JPEG save options, quality:12}
set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
tell current document
--If the quick mask mode has been left on then delete the channel Quick Mask
if (quick mask mode) then delete channel ¬
"Quick Mask"
--If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
if (exists layer "Original Layer") then ¬
tell layer "Original Layer" to set name to "Original Image"
save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
(delete layer "Original Image") flatten
resize image resolution 300 resample method none
--sharpen image
filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
save in (localBrandFolder_High_Res & name) as JPEG with options myOptions without copying
--get file path, return path of the JPEG file, work with (without copying)
-- (with copying) : it return path of PSD file
set newFile to file path --( return path of type alias )
-- duplicate file using the Finder -->on duplicateFile(..)
my duplicateFile(newFile, {ftpBrandFolder_High_Res})
--Prepare for Low RES by resetting image history
set current history state to history state 3
flatten
resize image width 1348
resize image resolution 300 resample method none
filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
--add save to lowResFolder with same options
save in (localBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
set newFile to file path
set newFile2 to newFile as string -- for testing end of name
if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" then -- exclude website_images
my duplicateFile(newFile, {networkBrandFolder_Low_Res, ftpBrandFolder_Low_Res})
else
my duplicateFile(newFile, {networkBrandFolder_Low_Res, ftpBrandFolder_Low_Res, website_images})
end if
close saving no
end tell
on error
set noError to false
my myLogs(thefile) -- write path to log file in Desktop
try
close saving no --if exists, close current document
end try
end try
end tell
end if -- else "Skip" the file and move on to next
end repeat
--End BH
end if
end if
end repeat
if not noError then do shell script "/usr/bin/open ~/Desktop/LogPhotoshopError.txt'"
on myLogs(t)
try
do shell script "echo " & (quoted form of t) & ">> ~/Desktop/LogPhotoshopError.txt'"
end try
end myLogs
on duplicateFile(tFile, foldersPath) -- tFile is an alias, foldersPath is a list of folder
tell application "Finder" to repeat with folderPath in foldersPath
with timeout of 200 seconds -- adjust it, error if the copy is longer that 200 seconds
duplicate tFile to folder folderPath with replacing
end timeout
end repeat
end duplicateFile
on getFolderPath(tName, folderPath)
tell application "Finder" to tell folder folderPath
if not (exists folder tName) then
return (make new folder at it with properties {name:tName}) as string
else
return (folder tName) as string
end if
end tell
end getFolderPath
tell application "Finder"
open "Hal 9000:Users:matthew:Desktop:LogPhotoshopError.txt"
end tell -
Problem Checking if File Exists When App is Launched
I'm developing an app which checks a file "lastuser.txt" to determine which database to open, as sometimes people share phones. Anyway, I'm trying to call TryGetItemAsync() in the OnLaunched() section in App.xaml.cs but I get the message
"The name 'TryGetItemAsync' does not exist in the current context". I am new to C# and phone app development. Any help would be greatly appreciated. Below is my code:
tia
CS
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using SQLite;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Storage;
using System.Threading.Tasks;
using System.Diagnostics;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Animation;
using Windows.UI.Xaml.Navigation;
// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=391641
namespace BP_Alert
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
public sealed partial class App : Application
public static string DBPath = string.Empty;
public static string LastUser = string.Empty;
public static DateTime Time_Taken { get; set; }
private TransitionCollection transitions;
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
this.InitializeComponent();
this.Suspending += this.OnSuspending;
/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used when the application is launched to open a specific file, to display
/// search results, and so forth.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
protected async override void OnLaunched(LaunchActivatedEventArgs e)
#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
this.DebugSettings.EnableFrameRateCounter = true;
#endif
Frame rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
// TODO: change this value to a cache size that is appropriate for your application
rootFrame.CacheSize = 1;
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
// TODO: Load state from previously suspended application
DBPath = Windows.Storage.ApplicationData.Current.LocalFolder.Path;
LastUser = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path,"LastUser.txt");
bool result = await TryGetItemAsync(LastUser); <--Error!!!!!!!!!!!!!!!
// Place the frame in the current Window
Window.Current.Content = rootFrame;It seems that TryGetItemAsync is a method on a StorageFolder, so you will need to do something like:
myStorageFolder.TryGetItemAsync(LastUser);
See here:
https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.storagefolder.trygetitemasync.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1
If you go to that link and scroll down to the bottom of the page, it says:
Minimum supported phone
None supported -
Check if file exists returns false. File is in system32
I'm having a problem detecting if a file exists which was simply copied to the system32 directory. I tried moving the file to various other directories and simply using a vi with the "Check if file or folder exists" action. I've narrowed it down to not being able to find the file if I copy it to either c:\windows or c:\windows\system32.
I thought this could be a permissions issue, but did my best to assign the user name full control of the folders.
Another interesting thing is if I make the file input a control and click on the "folder" icon to open a list of files, I cannot see the newly copied files in system32 directory either. Very strange.
This is on a Dell PC, Windows 7 professional/Labview 2010 SP1 (note I am running the vi. as an executable on this machine). Could it be some setting in my project build?
Solved!
Go to Solution.If you're using Windows 7 64-bit, it may be related to the problems the user was having here:
http://forums.ni.com/t5/LabVIEW/Problem-Using-quot-msg-quot-command-with-quot-System-Exec-vi/m-p/153...
It may be that the LabVIEW functions are 32-bit and are getting redirected. -
Applet checking if file exist and if no copy this file
Halo, everyone,
I'm new to java and I need an applet which is able to check if certain file exist on user's hard drive and if not to copy it.
I read that this is possible in certain circumstances, that applet has to be trustes and so on, but that's not my problem. My request is the applet code that checks of existance of certain file.
I'll lbe very thankful if someone could give me such applet or point me to place where I can see steps to creare it myself.
Thank you in advace onse again.Thnaks a lot for your answers. I really ppreciate!
How could I make the applet using such permissions i
how than it would work?I don't understand, in your first post you said "I read that this is possible in certain circumstances, that applet has to be trustes and so on, but that's not my problem. ". I assumed from this that someone else was dealing with the security aspects.
A starting point to signing Applets is - http://java.sun.com/developer/technicalArticles/Security/Signed/ but Google willl find you a whole load of information. -
How to check whether file exist or not?
hello,
i wanted to know that how can i check whether a file exist or not independent of underlying Operating system?
please help .
Thank you.Use exists() on a File instance.
-
Java script in HTMLDB to check if file exists in Unix file system
How do I use javascript to check if file is exists in Unix file system. I would like to dispaly the columns only if file is exists.
Hello,
This is one of those features that the manuals do not cover.
How to use and build AJAX features could be a whole book all by itself, and it's not really HTML DB specific feature even though we have built some hooks in application and javascript to make it easier.
Take a look at this thread
Netflix: Nice UI ideas
and I've built some examples here
http://htmldb.oracle.com/pls/otn/f?p=11933:11
Or just search the forums for AJAX or XMLHTTP
Carl -
Check if file exists in file receiver adapter
hello,
we have following scenario -> proxy to file
before appending to the file, it should be copied/renamed to a "tmp" file
xi should then append to that tmp file and copy/rename the file back to the normal name
I tried it with "Run operating system command before message processing" but
it's not working
anybody has an example on how to use those settings before/after message processing ?
regards,
michelHi Michel,
little confused,
1) before message processing do there any file exists?
2) why should we change file name to 'tmp' and append data to that and again rename that file ?
con't we directly proceed in append mode with file name?
When we use single command say for example cp or mv (copy or move) the commands then
eg: cp %F /var/opt/data/outbound/Test/Dummy.txt
when we club commands together or try to redirect the outputs of commands
eg: cp %F /var/opt/data/outbound/Test/Dummy.txt & mv %F /var/opt/data/outbound/Test/Dummy.txt
or
cp %F /var/opt/data/outbound/Test/Dummy.txt
mv %F /var/opt/data/outbound/Test/Dummy.txt
Include all ur command in one file and call that file in the OS parameter
Regards,
Pradeep A. -
Opening a pdf file without using ABAP
Hi All,
Can I open a pdf file in the ITS without using ABAP
coding. I mean by using Java Script in an another
dialog/page can i open a pdf file. If anyone has got
any idea or sample code please let me know.
Thanks,
AmitabhHi,
Where exactly you want to open the file?
The most simple way would be to upload the file under MIMES and provide the URL in the corresponding ITS service.
BR,
Disha.
Pls reward points for helpful answers. -
Open *.PDF file by using ABAP program
Hi,
Can anyone please tell me about " how to open a PDF file by using an ABAP program".
Regards,
PrasanthWelcome to SDN.
Refer this class - CL_GUI_PDF_VIEWER
You may refer this thread also -
Re: Open Jpg, Excel, word, pdf files from SAP screen.
Regards,
Amit -
How to Check Images File Exist? in different server
Hi,
I have 10 different coldfusion server.
for example 9 server is for the web application site - for
example
http://myserverone/studentweb
the other one is for images website, just for displaying
student picture - for example
http://myserverimage/studentpicture.
the purpose of this website is to display student picture
that i store as gif files.
from my studentweb website i will call the images from
studentpicture website as source for my image placeholder.
for example this is my code i'm calling form
http://myserverone/studentweb
website:
<img src="
http://myserverimage/studentpicture/#studentnumber#.gif"
alt="" name="studentpicture" width="160" height="200">
my problem is, if there is no specific student picture in my
studentpicture website, then the placeholder will display an X (
mean the images not found )
how do i prevent the X to display?
how do i using coldfusion or any kind of way to check if the
images exist on that website ( different server ), so if the images
is not found, i can display a default images? i can do this if i'm
calling the website in the same server, but not using a different
server.
this is like using other website images for your own personal
website and sometimes the owner delete the images from their
website, and i want to display my own images if that images been
removed from the source website.
anyone have done this before?
thanks for suggestion and guide...
haire1. Use CFHTTP with method="HEAD".
2. See, if the HTTP status code is 200.
The head-method is of course more efficient, as it doesn't
need to "get" the message body. However, a status code of 200 is
possible even when the requested image file is no longer on the
server.
Maybe you are looking for
-
ORDImageSignature Invalid data type in Oracle 8i
hi there, i have just started working on Intermedia, i am using Oracle 8i. i have configured the intermedia and executed the ordwebutl.sql file. all othe media data types are working perfectly like, ORDAudio, ORDImage,ORDVideo, but the ORDIMageSIgnat
-
Hello I have the following Servlet code: package server; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.PrintWr
-
How to run add-opt-in.py script in swf
I am using flash professional for my project , now i like to use adobe scout for profiling. I have read that for flashpro we have dowload python scripts and run the add-opt-in.py script on your SWF etc. how to run the python script in a swf. can u ex
-
10g Question, or issue, anyone smarter than me?
Hi, We want to install 10g, we are currently running 9i. We want to do this in silent mode since we have so many databases to move to 10g. We've got a few questions & concerns about the procedures that are supposed to be done. If someone could kindly
-
Has anyone tried to close the inventory module before payables module?
We are currently in 12.0.4. and have recently changed our expense PO's to accrue at receipt rather than month end. We recognize the Oracle documentation requires that we close AP, Purch, and then Inventory. We were wondering if anyone had ever tried