How to get the image stored in archieve link as an attachment in work item.
Hi All,
through transaction OAWD we are storing scanned images.
Once this transaction is executed a workitem appears in the inbox of the initiator with the scanned invoice as attachment.
When the user executes the work item FV60 screen is displayed where the user enters the data based on the scanned invoice attachment.
After the user Parks the document the custom workflow triggers and a workitem appears in the inbox of an approver.
Our requirement is that the scanned image should also appear as the attachment.
Can you please suggest how to get the image stored in archieve link as an attachment in work item.
Regards
Shraddha
Hi Martin,
with every parked document a scanned image is linked.
I need to create a link under objects and attachments in the work item, such that when the user clicks that link the image is displayed.
At present the following functionality is available.
The BO used is FIPP
Objects and attachments:
parkeddocument:AK0108500001252008.(via FIPP binding with WIOBJECT_ID)
On clicking the link below objects and attachments: the parked document AK0108500001252008 opens in display mode.
Now we want to have 2 links:
parkeddocument:AK0108500001252008.
image.
When we click on the link image then the scanned invoice linked to the document should get opened.
I am able to get the image id of the the image through SAP_WAPI_GET__OBJECTS,
export parameter leading_object provides the detail.
But I am not able to figure out how to use it in my workflow to display it as an attachment.
Hope this will give a better understanding of my question.
can you please suggest as to how I should proceed with it.
Similar Messages
-
[CS2]How to get the Image Width & Height using JS (ILLUSTRATOR CS2)
Hi,
How to get the Image width & height of an Image using javascript .Im using Illustrator CS2.
Any sample code
Regards
MyRiazyou can reference the dimensions of a loading image (or swf)
by referencing the target movieclip's dimensions AFTER loading is
complete. ie, use preloader code or the onLoadInit() method of a
moviecliploader listener. -
How to get the image in docking control in a report using doc management
HI All
My question is that is that i am storing one image using documents in jha2n.
Now I want to get that image in report using Document management.
Pls guide how to proceed as I am new and dont know anything about document management.
Thanks
PoojaHi,
Please kindly refer to the online help link below:
[http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/973035624811d1949000a0c92f024a/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/973035624811d1949000a0c92f024a/frameset.htm]
And for handling the DMS document, you may check the BAPIs in SAP Note: 504692
Function group: CVBAPI
BAPI_DOCUMENT_GETDETAIL2
BAPI_DOCUMENT_CREATE2
BAPI_DOCUMENT_CHANGE2
BAPI_DOCUMENT_DELETE
For display image in the docking control, pleae kindly refer to the SAP DEMO: RSDEMO_DOCKING_CONTROL
Cheers, -
How to access the images stored in folder which is kept inside theapplicati
Iam new to java..
I want to display the images (.jpeg,,.gif, flash) which are kept in one folder
Using Jsp...
Its Executing fine in local system..
Its not working 1)when i execute that jsp from other system
2)if i give the full url then only its executing in local system
Please help me...
thanks in advance...
by Priya
<%@ page import="java.io.*"%>
<html>
<head>
<title>Movie Details</title>
</head>
<body text="#000000" bgcolor="#FFFFFF">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="100%" id="AutoNumber1">
<%
File f=new File("..E:\application\Images");
File []f2=f.listFiles();
for(int ii=0;ii<f2.length;ii++)
if(f2[ii].isFile())
String fname=f2[ii].getPath();
%>
<tr>
<td width="87%"><%=fname%> </td>
<td width="14%"><img border="0" src="<%=fname%>" width="150" height="100" ></td>
</tr>
<%
System.out.println(f2[ii].getPath());
%>
</table>
</body>
</html>Hi,
Well i guess a Simple concept of a image servlet can cater your requirement here.
checkout the below example of how to do it
Configurations needed in /WEB-INF/web.xml:
<servlet>
<servlet-name>ImageServlet</servlet-name>
<servlet-class>com.ImageServlet</servlet-class>
<init-param>
<param-name>backupFolderPath</param-name>
<param-value>E:/application/Images</param-name>
<!--Could use any backup folder Available on your Server and make sure we place a image file named noImage.gif which indicates that there is no file as such-->
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>DownloadServlet</servlet-name>
<url-pattern>/Image</url-pattern>
</servlet-mapping>
ImageServlet.java:
package com;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
*@Author RaHuL
/**Image Servlet
* which could be accessed Image?fid=fileName
* or
* http://HOST_NAME:APPLN_PORT/ApplnContext/Image?fid=fileName
public class DownloadServlet extends HttpServlet{
private static String filePath = new String();
private static boolean dirExists = false;
public void init(ServletConfig config){
// Acquiring Backup Folder Part
filePath = config.getInitParameter("backupFolderPath");
dirExists = new File(filePath).exists();
private void processAction(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException{
// getting fileName which user is requesting for
String fileName = request.getParameter("fid");
//Building the filePath
StringBuffer tFile = new StringBuffer();
tFile.append(filePath);
tFile.append(fileName);
boolean exists = new File(tFile.toString()).exists();
FileInputStream input = null;
BufferedOutputStream output = null;
int contentLength = 0;
// Checking whether the file Exists or not
if(exists){
try{
// Getting the Mime-Type
String contentType = this.getContentType(tFile.toString());
input = new FileInputStream(tFile.toString());
contentLength = input.available();
response.setContentType(contentType);
response.setContentLength(contentLength);
String contentDispo = "";
try{
contentDispo = request.getParameter("coid");
}catch(Exception exp){
if(contentDispo != null && contentDispo.equals("69125"))
response.setHeader("Content-Disposition","attachment;filename=\""+fileName+"\"");
this.exportFile(input,response.getOutputStream());
}catch(Exception exp){
exp.printStackTrace();
this.getServletContext().log("Exception Occured:"+exp.getMessage());
throw new ServletException(exp.getMessage());
}else{
try{
// Getting the Mime-Type
String contentType = this.getContentType(filePath+"noImage.gif");
input = new FileInputStream(filePath+"noImage.gif");
contentLength = input.available();
response.setContentType(contentType);
response.setContentLength(contentLength);
this.exportFile(input,response.getOutputStream());
}catch(Exception exp){
exp.printStackTrace();
this.getServletContext().log("Exception Occured:"+exp.getMessage());
throw new ServletException(exp.getMessage());
/** Gets the appropriate ContentType of the File*/
private String getContentType(String fileName){
String url = java.net.URLConnection.guessContentTypeFromName(fileName);
if(url == null)
return "application/octet-stream";
else
return url;
or one may use
return new javax.activation.MimetypesFileTypeMap().getContentType(fileName);
NOTE: Do not forget to add activation.jar file in the classpath
/** Prints the Image Response on the Output Stream*/
private void exportFile(InputStream input,OutputStream out) throws ServletException,IOException{
try{
output = new BufferedOutputStream(out);
while ( contentLength-- > 0 ) {
output.write(input.read());
output.flush();
}catch(IOException e) {
e.printStackTrace();
this.getServletContext().log("Exception Occured:"+e.getMessage());
throw new IOException(e.getMessage());
} finally {
if (output != null) {
try {
output.close();
} catch (IOException ie) {
ie.printStackTrace();
this.getServletContext().log("Exception Occured:"+e.getMessage());
throw new IOException(ie.getMessage());
/** HttpServlet.doGet(request,response) Method*/
public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException{
// Calling respective Action Method to Provide File Service
this.processAction(request,response);
/** HttpServlet.doPost(request,response) Method*/
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException{
// Calling respective Action Method to Provide File Service
this.processAction(request,response);
NOTE: The following code could be used to provide service to stream any sort of files with any sort of content
with some minor modications.
Inorder to access all the images you can restructure your jsp like the one below
JSP:
<!--
And say we have are storing Image name & Movie details in the database and we are created a collection
of all the database results like bean here is how we would display all the details with images
Say you wrote a query to findout Moviename,timings,Hall Number & pictureFileName
example:
Movie: DIE HARD 4.0
Timings: 10:00AM,2:00PM,9:15PM
Hall NUmbers: 1,1,2,4
pictureFileName: die_hard_4.jpg
or
Movie: Transformers
Timings: 11:20AM,2:20PM,10:15PM
Hall NUmbers: 2,3,1,5
pictureFileName: transformers.jpg
say you are saving the information in a dtoBean with properties like
public class MovieBean{
private String movieName;
private String timings;
private String pictureFileName;
/* and followed by getters & setter of all those*/
and say we have queried the database and finally collected an ArrayList<MovieBean> from the query results and
saving it within the scope of session with the attribute name "MovieList"
-->
<%@ page language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<html>
<head>
<title>Movie Details</title>
</head>
<body text="#000000" bgcolor="#FFFFFF">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="100%" id="AutoNumber1">
<thead>
<tr>
<td>Movie Name</td>
<td>Timings</td>
<td>Hall Numbers</td>
<td>Poster</td>
</tr>
</thead>
<tbody>
<c:forEach var="movieBean" items="${sessionScope.MovieList}">
<tr>
<td><c:out value="${movieBean.movieName}"/></td>
<td><c:out value="${movieBean.timings}"/></td>
<td><c:out value="${movieBean.hallNo}"/></td>
<!-- Here is where we are making use of image servlet and trying to retrive images -->
<td><img src="Image?fid=<c:out value="${movieBean.pictureFileName}"/>" align="center" width="30" height="30"/></td>
</tr>
</c:forEach>
</tbody>
</table>
</body>
</html>Hope this might help,If that does do not forget to assign the duke stars which you promised :)
REGARDS,
RaHuL -
NSImageView - How to get the image file's path?
I'm working on an image uploader application, and am having difficulties getting the info I want from an editable NSImageView. Basically I have an NSImageView object which the user can drag an image file to display a preview and add to the list of images to be uploaded. The image is loaded into the NSImageView just fine, however for my purposes I need access to the actual file path of the image.
The NSImageView target function is activated when an image file is dragged onto the view, however at that point an NSImage is provided and I have yet to figure out how to get access to the file name. Anyone have any suggestions regarding this?This may be helpful.
http://nsnotfound.blogspot.com/2007/08/nsimageview-and-image-filenames.html
Eric -
Apple TV won't play back my album images from IPhoto in the edited order I want. The order seems to revert back to the time stamp for the photos. I have combined the photos from 3 different cameras and they had slightly different clock settings. I am working on an edited presentation of about 1500 Pics from travels in Turkey this summer and sometimes the order makes more sense if I move some of the images quite a ways. Is there any solution short of changing the time stamp on every single image?
Using the 'adjust date and time' setting is the best way to syncronise the photos from all your cameras. However as you say this merely puts them all in the correct order chronologically.
If there are photos that you feel would be best somewhere else in an album other than in date order, it may depend on how many as to which is the best option for you. If it's only a few you may wish to adjust the date/time on these few manually so they fit in with the rest where you want them.
If you have a lot of photos you want in a different order to the order by date, or you really don't care about what date/time is used and just want them in the order you want them in, then 'batch change' is the best option.
From the view menu, select 'sort photos - manually', drag the photos around until they are in the order you want, select all of them. Now select the batch change option and choose 'Date' from the 'set' options, type in a date and time for the first photo, it can be anything but it's probably a good idea to choose something close to the original date, then check the box 'Add'. You can keep the value set at 1 minute or enter any value you want, it may be more realistic to divide the length of your holiday by the number of photos you have to calculate a value, but it really isn't necessary. Clicking OK will adjust all the dates without affecting the title or description and the photos will now show on the Apple TV in that order.
Just to be sure iTunes is updated, you may want to go to the advanced menu/choose photos to share in iTunes and deselect the album, apply, reselect the album and apply again. -
How to get the image from web site
Hi,
Anybody know the coding that use to get or download the image from the web site when the image's url is given.
Thankshttp://www.exampledepot.com/egs/java.net/GetImage.html
-
How to get the correct stored procedure in oracle
Hi sir,
i am having one stored procedure which i converted from sql it's compiled successfully.
create or replace
PROCEDURE Spvalidateholiday1
v_pidate1 IN Date DEFAULT NULL ,
v_piEmpid IN VARCHAR2 DEFAULT NULL ,
v_pidate2 IN Date DEFAULT NULL ,
v_poRetVal OUT Number
--RETURN NUMBER
AS
v_date3 VARCHAR2(20);
v_date4 VARCHAR2(20);
v_date5 VARCHAR2(40);
v_date6 VARCHAR2(40);
v_scode VARCHAR2(10);
v_dayoff1 VARCHAR2(20);
v_dayoff2 VARCHAR2(20);
BEGIN
v_date5 := To_Char(To_Date(v_pidate1,'YYYY-MM-DD','D'));
v_date6 := To_Char(To_Date(v_pidate2,'YYYY-MM-DD','D')) ;
SELECT Shift_Code
INTO v_scode
FROM Employee
WHERE Emp_ID = v_piEmpid;
SELECT WeeklyOff1
INTO v_dayoff1
FROM Shift
WHERE Shift_Code = v_scode;
SELECT WeeklyOff2
INTO v_dayoff2
FROM Shift
WHERE Shift_Code = v_scode;
SELECT dayid
INTO v_date3
FROM Weekly
WHERE dayss = v_dayoff1;
SELECT dayid
INTO v_date4
FROM Weekly
WHERE dayss = v_dayoff2;
--select @date3=dayid from Weekly w join Site_Param s on w.dayss=s.WeeklyOff1
--select @date4=dayid from Weekly w join Site_Param s on w.dayss=s.WeeklyOff2
IF ( v_date5 = v_date3
OR v_date6 = v_date4
OR v_date4 = v_date5
OR v_date3 = v_date6 ) THEN
BEGIN
v_poRetVal := 0 ;
END;
ELSE
BEGIN
v_poRetVal := 1 ;
END;
END IF;
RETURN; --v_poRetVal;
END;
but getting error:
ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'SPVALIDATEHOLIDAY1' ORA-06550: line 1, column 7: PL/SQL: Statement
could u check the stored procedure?
thanksHi sir,
i am calling it my application
that is used like this
Dim hshParam As New Hashtable
hshParam.Add("Empid", '00000002')
hshParam.Add("date1", '2012-10-25')
hshParam.Add("date2", '2012-10-27')
intRetProc = objDataTier.ExecuteStoredProcedureWithReturnT("Spvalidateholiday1", hshParam)
and here is this method written:
Public Function ExecuteStoredProcedureWithReturnT(ByVal sStroredProcedureName As String, ByVal phshTbl As Hashtable) As Integer
Dim cmdCommand As OracleCommand
Dim prmParmOutput As OracleParameter
Dim pParam As IDictionaryEnumerator = phshTbl.GetEnumerator
Dim sKey As String, sValue As String
Try
ExecuteStoredProcedureWithReturnT = True
OpenDbConnection()
cmdCommand = New OracleCommand(sStroredProcedureName, conConnection)
cmdCommand.CommandType = CommandType.StoredProcedure
cmdCommand.CommandTimeout = 0
While pParam.MoveNext
sKey = "v_pi" & pParam.Key
sValue = pParam.Value
cmdCommand.Parameters.Add(New OracleParameter(sKey, sValue))
End While
prmParmOutput = New OracleParameter
cmdCommand.Parameters.Add(New OracleParameter("v_poRetVal", SqlDbType.Int)).Direction = ParameterDirection.Output
' If
cmdCommand.ExecuteNonQuery()
ExecuteStoredProcedureWithReturnT = CInt(cmdCommand.Parameters("v_poRetVal").Value)
Catch ex As Exception
ExecuteStoredProcedureWithReturnT = 2
Throw ex
End Try
End Function
now tell me is it correct? -
I need to cut some image into the PDF file, what Adobe product can help me with it?
Hi Hugo,
Please elaborate your issue. What exactly do you want to achieve?
Regards,
Rahul -
hello,
I am learning to use sprite class. I need those wonderful images.....Is there a tool to create such images, which would result in an animation ?
Thanks,
Abhijit Chandekaruse the copy cmd if working on Windows with the Runtime.exec()... I can only show you yhe path...
-
How to get the Image position on the layer
Hi. have a problem with a subj..
I have an image on the layer. certainly, image does not take full space on the layer. I need to know the RECT (with smaller bounds that layer), which consists with all image points.
is it possible to do this task with API functions?I am thinking about this, and use something like
JPanel.setFocusable(true). Thank you. -
How can I get the image data from Clipboard with LV
Anybody knows How can get the image data after pressd "print screen button" with LV?
I want to program a software which can save a image as a bmp or jpeg etc, and the image data is from pressed print screen button.
How to get it out from clipboard. I am trapping about. thanks in advance.
Try to make everything AutomaticYou can have a look at Rolf Kalbermatter's post here (give him stars) or, if you're using scripting, you can use the Application class Get Clipboard Image method.
Try to take over the world! -
How to get the pixel data so as to work on it?
Hi all,
I am trying to write a plug-in that will crop and scale the image, edit the selection in the image document based on image data. For this purpose I need the pixel data of the image. How to get the image data as different pixels and what is the data structure used to store this data?
Assumption: No layers i.e., only background
Thanks in advance,
SailuHi Ilya,
Thank you for your post. In the plugin architecture you propose (automation + filter), do you have an idea about how to share the pixel data between the two plugins? I have found a post that gives details about how to get pixel data and show it using ADM components
Matthew Hollingworth, "ADM Color Managed Preview?" #1, 22 Oct 2007 11:53 pm but it supposes that you have a filter plug-in.
Again, does anyone knows how to preview the current image in a AUTOMATION plug in? This seems impossible.
Thank you all for your help
Cheers,
Chaker -
To get the image value in servlet.
I have jsp page.
in jsp.
next button image is there.
when I click on that image.
I want that image value.
How to get the image value in servlet.
below is the code...
<input type="image" src="./img/btn_next.gif" name="next" value="next" onClick="ValidateNext();">
java script is
function ValidateNext()
document.ASCMasterView.submit()
now I want to get the image value in servlet.
then I will make decission for processing...
Any one help me on this.Crosspost allready answered here
-
The dates my photos were taken are not incorrect. Any suggestions on how to get the correct dates back?
Thank you Winston. This works and I can adjust several photos at the same time.
Maybe you are looking for
-
Help please, Flash Player still won't work
I posted a question a few weeks ago but have received no answers and I still can't find a solution to my problem, it is driving me crazy as there are so many sites that rely on Flash Player and I can find no way round it. My question is as follows: I
-
Thanks for taking the time to read my post! I am not able to burn CDs in the Finder through the use of a "burn folder." Even when I have inserted a blank disc my computer tells me to "Insert a blank disc to begin." Blank CDs do not show up on my desk
-
Multipe images for album art?
So, you can add multiple images to iTunes for each track. Like, the album cover and an image of the liner notes, or the back cover, or, something like that. I don't seem to be able to see those secondary images while using my 5G iPod that I synced af
-
Query on note 583933: Restrict material download based on sales area
Hi All, Has anyone implemented note 583933? We need to implement this note to have only those materials belonging to a particular sales area. My question is: Will the code changes mentioned in this note take care of delta download as well? After doin
-
.CHM Compilation causes crash
I have the Adobe Technical Communication Suite, running RoboHelp 8. All of sudden when trying to compile the chm file, RoboHelp crashes. I installed all the updates, restarted and tried all the basic obvious steps, but the crash still occurs. I can