Regarding BOM upload and Download
Dear all,
I am getting some problem with Bom upload and Download. Is there any report or Function module is to upload and download Bom. Please share your ideas with me . I am trying in various ways to do it. There is no success with it . If any one have work on this please share your ideas with me .
Regards,
Madhu.
Dear Keshav,
Thank you for your reply. Actually i tried to down load BOM. Here first i have to get header item Under 1 header item it may contain sum sub items.Again every item have dependency. I want to download in this passion.
Header item ( one Header may contain number of items, at every item level it have some sub items )
1) item every item contains dependency
2) item every item contains dependency
3) item every item contains dependency
From header the fields i required is Material,Plant,Usage,Base quantity,Base measurement,valid from date2
From item Details Item no,Component material,Quantity,BOM ,Item category.
Please suggest me how to download these all and upload into ECC.
Regards,
Madhu.
Similar Messages
-
Question regarding file upload and download utility
Hi
I am able to upload file with file browse contorl of APEX. Now i want to download the uploaded file. Is it possible that if word document is uploaded then when user clicks on it to download, that document is directly opened in microsoft word. Of if PDF file is uploaded then on download it is opened with acorobat pdf.
Requirement is like when user is downloading any uploaded file denpending on file type (text,excel,pdf,doc) relative application should opened with that document.
Thanks in advanceThat is controlled by settings in the browser that you cannot change. For instance, I have my browsers configured to use FoxIt PDF reader instead of Acrobat reader for PDFs, but no website could change that. The same is true when it comes to downloading vs opening. Sorry.
Tyler Muth
http://tylermuth.wordpress.com
"Applied Oracle Security: Developing Secure Database and Middleware Environments": http://sn.im/aos.book -
Upload and download a PDF in BSP
Hi All,
I need to do the following funtionalityin BSP (business server page ).
1)upload and download a PDF
Pls anyone help me by providing the necessary code to do this .
Thanks in Advance
RizwanHi,
This link is useful for U
http://help.sap.com/saphelp_nw04/helpdata/en/eb/8c683c8de8a969e10000000a114084/content.htm
http://wiki.sdn.sap.com/wiki/display/BSP/HandlingBinaryData
Regards
kk -
File upload and download through web Dynpro2.0.9.
Hai All,
File upload and download through web Dynpro "IWDResource" package is used.But in web Dynpro 2.0.9. this package is not possible.How to uplolad and download files through web Dynpro2.0.9.
Anyone can help me?
Thanks in Advance,
Kindly Regards,
K.Saravanan.Hi Saravanan,
You can go through these links,
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/63/9c0e41a346ef6fe10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/63/9c0e41a346ef6fe10000000a1550b0/frameset.htm</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/5a/90ff4cd0c8cd48a69b836e5e550880/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/5a/90ff4cd0c8cd48a69b836e5e550880/frameset.htm</a>
So, apart from putting FileUpload UI on your view, you have to implement a method which will do the actual uplod for you.
Hope this helps.
Regards,
Mausam -
How to upload and download in BLOB?
I tried webutil but is not working properly according to my needs is there any other way to upload and download files in BLOB?
If any body knows solution please tell me.
Regards,Dear Colleague,
In my Forms application, I use the WEBUTIL to load files into a BLOB column. However, prior to getting WEBUTIL to work, I loaded files into the BLOB column using the following PL/SQL code.
Note, that the example assumes that the row already exists in the table and you are updating it by loading the file into the BLOB. You will also be required to first create a Database Directory object (in my case, it was called "RKMS_DOC_DIR")
I do not have an example for downloading, as I use the WEBUTIL functionality for this.
Good luck!
Randy
PL/SQL (DBMS_LOB Package): Loading an Internal Persistent BLOB
with BFILE Data
The following example illustrates:
How to use LOADBLOBFROMFILE to load the entire file without getting its length first.
How to use the return value of the offsets to calculate the actual amount loaded.
DECLARE
src_loc BFILE := bfilename('RKMS_DOC_DIR','ROPE_Offerte_v2.pdf') ;
v_author VARCHAR2(10) := 'RKMS_MGR' ;
dst_loc BLOB;
src_offset NUMBER := 1;
dst_offset NUMBER := 1;
src_osin NUMBER;
dst_osin NUMBER;
bytes_rd NUMBER;
bytes_wt NUMBER;
BEGIN
-- SELECT ad_composite INTO dst_loc FROM Print_media
-- WHERE product_id=3106 and ad_id=13001 FOR UPDATE;
SELECT doc INTO dst_loc FROM docs
WHERE USER_AUTHOR_ID = v_author FOR UPDATE;
/* Opening the source BFILE is mandatory */
dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
/* Opening the LOB is optional */
dbms_lob.OPEN(dst_loc, dbms_lob.lob_readwrite);
/* Save the input source/destination offsets */
src_osin := src_offset;
dst_osin := dst_offset;
/* Use LOBMAXSIZE to indicate loading the entire BFILE */
dbms_lob.LOADBLOBFROMFILE(dst_loc, src_loc, dbms_lob.lobmaxsize, src_offset, dst_offset) ;
/* Closing the LOB is mandatory if you have opened it */
dbms_lob.close(dst_loc);
dbms_lob.filecloseall();
COMMIT;
/* Use the src_offset returned to calculate the actual amount read from the BFILE */
bytes_rd := src_offset - src_osin;
dbms_output.put_line(' Number of bytes read from the BFILE ' || bytes_rd ) ;
/* Use the dst_offset returned to calculate the actual amount written to the BLOB */
bytes_wt := dst_offset - dst_osin;
dbms_output.put_line(' Number of bytes written to the BLOB ' || bytes_wt ) ;
/* If there is no exception the number of bytes read should equal to the number of bytes written */
END ;
/ -
Using CSA to filter MSN Messenger file upload and download
How would i go about filtering out the file upload and download functionality in messenger ?
I've already disallowed the possibility of uploading or saving from Messenger by not allowing the program the read or write files. But when a PC without this policy on it uploads to a CSA protected host. The CSA will download the entire file but then refuse to save the file.
I'd rather disallow this functionality alltogether ? my guess are that i would hae to do some COM filtering ?
I'd be greatfull for any hints you might have.
Best Regards,
LasseThe document Blocking Peer-to-Peer File Sharing Programs with the PIX Firewall has more information on blocking file sharing applications.
http://www.cisco.com/en/US/tech/tk583/tk372/technologies_tech_note09186a00801e419a.shtml -
Please help me on file upload and download
Dear all..
i am new in this i try to apply the tutorial for file upload and download but it is old i work on net weaver 7.1 and many proery has change and i cant applyb this tutorial...Thanks. If you can provide some more details about where - some application, or a web page - are you trying to upload or download a file we can discover to documentation you need. Also, it will be of help if you tell what is the name of the outdated guide you mentioned.
Best regards,
Rossen -
Reg :File upload and download from client machine
hi..
anyone help me the way that how to upload and download word
document file from client machine.. i am using j2eeserver1.4 in linux..
i want upload file from client machine(windows) to server(linux.) please
help me . tell me idea regarding..
i have tried this coding.. but i can transfer txt file. only. when i upload mirosoft word file.. it will open with some ascii values with actual content.
<!-- upload.jsp -->
<%@ page import="java.io.*" %>
<%String contentType = request.getContentType();
String file = "";
String saveFile = "";
FileOutputStream fileOut = null;
if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0))
DataInputStream in = new DataInputStream(request.getInputStream());
int formDataLength = request.getContentLength();
byte dataBytes[] = new byte[formDataLength];
int byteRead = 0;
int totalBytesRead = 0;
while (totalBytesRead < formDataLength)
byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
totalBytesRead += byteRead;
try {
file = new String(dataBytes);
saveFile = file.substring(file.indexOf("filename=\"") + 10);
saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
saveFile = saveFile.substring(saveFile.lastIndexOf("/") + 1,saveFile.indexOf("\""));
int lastIndex = contentType.lastIndexOf("=");
String boundary = contentType.substring(lastIndex + 1,contentType.length());
int pos;
pos = file.indexOf("filename=/" + 1);
pos = file.indexOf("\n", pos) + 1;
pos = file.indexOf("\n", pos) + 1;
pos = file.indexOf("\n", pos) + 1;
int boundaryLocation = file.indexOf(boundary, pos) - 4;
int startPos = ((file.substring(0, pos)).getBytes()).length;
int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
String folder = "/tmp/uploads/";
fileOut = new FileOutputStream(folder + saveFile);
fileOut.write(dataBytes);
fileOut.write(dataBytes, startPos, (endPos - startPos));
fileOut.flush(); } catch(Exception e) { out.print(e);
} finally
{ try
{fileOut.close();
}catch(Exception err)
%>
please which package will help me to upload word document file with no errror. send me how can use in ftp.. send me some sample program..
Regards..
New User M.Senthil..Hi,
Well,i don't know whether if this helps people here are not.
It is always a good practise to do it via Servlet and then download content.
The adavantage of doing this is
1). You may not need to pack the downloadable with the .war which you ultimately genrate which ceratinly help us in terms of faster deployment.
3). You may update the new content just by moving a file to the backup folder.
2).One may definately download the content irrespective to the content/file.
Hope example below helps..
Configurations:
In the above example we are assuming that we placing all downlodable file in D:/webapp/downlodables/ and you have configured the same path as a init param with the name "filePath" in your web.xml.
something like the one below.
<servlet>
<servlet-name>DownloadServlet</servlet-name>
<servlet-class>com.DownloadServlet</servlet-class>
<init-param>
<param-name>filePath</param-name>
<param-value>D:/webapp/downlodables/</param-name>
<!--Could use any backup folder Available on your Server-->
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>DownloadServlet</servlet-name>
<url-pattern>/downloadFile</url-pattern>
</servlet-mapping>DownloadServlet.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;
import javax.activation.MimetypesFileTypeMap;
*@Author RaHuL
/**Download Servlet
* which could be accessed downloadFile?fid=fileName
* or
* http://HOST_NAME:APPLN_PORT/ApplnContext/downloadFile?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("filePath");
dirExists = new File(filePath).exists();
private void processAction(HttpServletRequest request,HttpServletResponse response) throws Exception{
// Some Authentication Checks depending upon requirements.
// 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();
// Checking whether the file Exists or not
if(exists){
FileInputStream input = null;
BufferedOutputStream output = null;
int contentLength = 0;
try{
// Getting the Mime-Type
String contentType = new MimetypesFileTypeMap().getContentType(tFile.toString());
input = new FileInputStream(tFile.toString());
contentLength = input.available();
response.setContentType(contentType);
response.setContentLength(contentLength);
response.setHeader("Content-Disposition","attachment;filename="+fileName);
output = new BufferedOutputStream(response.getOutputStream());
while ( contentLength-- > 0 ) {
output.write(input.read());
output.flush();
}catch(IOException e) {
System.err.println("Exception Occured:"+e.getMessage());
System.err.println("Exception Localized Message:"+e.getLocalizedMessage());
} finally {
if (output != null) {
try {
output.close();
} catch (IOException ie) {
System.err.println("Exception Occured:"+e.getMessage());
System.err.println("Exception Localized Message:"+e.getLocalizedMessage());
}else{
response.sendRedirect("/errorPage.html");
public void doPost(HttpServletRequest request,HttpServletResponse response) throws Exception{
processAction(request,response);
public void doGet(HttpServletRequest request,HttpServletResponse response) throws Exception{
processAction(request,response);
NOTE: Make sure You include activations.jar in your CLASSPATH b4 trying the code.
therefore,if you have something like above set as your application enviroment in the above disccussed
can be done by just giving a simple hyper link like
<a href="downloadFile?fid=fileName.qxd" target="_blank">Download File</a>REGARDS,
RaHuL -
Tracking file upload and download details
Hi All,
We are using TMG in our place,all users/servers are used to connect the internet with TMG server..
is there a way to track the information of file upload and download details in TMG..
KJSUBBUHi,
Please check the blog below. I haven't try it.
Live monitor for TMG server
Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee
the accuracy of this third-party contact information.
Best Regards,
Joyce
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
File upload and download through web Dynpro2.0.9. with Java
Hai All,
I am working in web Dynpro2.0.9 with Java.For file upload and download "IWDResource" is used.But this package is not available in web Dynpro2.0.9.How to download and upload files through using this version?
Anyone can help me?
Thanks in Advance,
Kindly Regards,
S.V.Selva Bala.Hai Noufal,
I successfully upload the files to the database.
For file download i create two views.
In the first view files are fetched from the database(datatype for the file is image in the database)and it is converted to byte from image.Afterthat the byte is converted to string by using the following code.
byte source[]=new byte[1024];
if(rs.next()){
source=rs.getBytes("cv_document_file");
String sourcestr=source.toString();
wdContext.currentContextElement().setDownloadfile(sourcestr);
Now i put the converted string into the second view.In the second view i try to convert the string value into bytes by using the following codes.
String sourcestr=wdContext.currentContextElement().getDownloadfile();
byte bs[]=new byte[1024];
bs=sourcestr.getBytes();
wdContext.currentDownloadElement().setDownloadfile(bs);
But it doesn't work and no error.
Now i am expecting the valuable suggestions from you.
Thanks in Advance,
Kind Regards,
S.V.Selva Bala. -
Minimum version required to upload and download files using Netweaver Gateway
What is the minimum service pack required to use the feature of Upload and download files using netweaver gateway. I already have a SP05
Hi,
as per this blog How to Read Photo from SAP system using SAP Gateway this should be possible with SP05.
also refer How To Upload and Download Files Using SAP NW Gateway SP06
Regards,
Chandra -
I am working on a web site development work. I am working with STRUTS framework tht is made over the jsp tag library..Can any one help me about how to upload and download files from server and to the server.If possible using struts framework. Pls do give a pratical example..
regards jayLike this:
//upload
String fileName = formFile.getFileName();
Sting destFile = "c:/upload/" + fileName;//path to save the upload file on server
try {
InputStream in = formFile.getInputStream();
OutputStream out = new FileOutputStream( new File(destFile) );
int n = 0;
byte[] buff = new byte[8192];
while( (n = in.read( buff, 0, 8192 )) != -1 ) {
out.write( buff, 0, n );
out.close();
in.close();
}catch(Exception e){
//download
String serverFile = "c:/upload/a.txt";//file path on server to be downloaded
File serverF = new File(serverFile);
response.setContentType("text/html");
response.setHeader("Content-Disposition","attachment;filename="+serverF.getFileName()+";");
try {
ServletOutputStream outStream = response.getOutputStream();
FileInputStream stream = new FileInputStream(serverF);
BufferedInputStream bis = new BufferedInputStream(stream);
BufferedOutputStream bos = new BufferedOutputStream(outStream);
byte[] buff = new byte[2048];
int bytesRead;
try{
while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
bos.write(buff, 0, bytesRead);
} catch (Exception e) {
} finally {
if (bis != null) bis.close();
if (bos != null) bos.close();
if (stream != null) stream.close();
}catch (IOException e){
} -
Hi,
I have to upload and Download the scanned images using my Webdynpro Abap application.Please send anybody having sample app document for this.
Regards,
KumarL KHi,
Refer these online help: [FileUpload|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm], [FileDownload|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/09/a5884121a41c09e10000000a155106/content.htm].
I hope it helps.
Regards
Arjun -
Uploading and downloading files in webdynpro java
how to upload and download xl files in webdynpro java application .
Hi ,
Refer these links they maybe helpful to you
You can check this sampple example from SDN
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40db4a53-41a9-2910-d4a2-9c28283f6658
Uploading and Downloading Files In Web Dynpro Java
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f
http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm
Uploading and Downloading Files In Web Dynpro Tables
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f
Some more links regarding Uploading and DownLoading Files
Uploading and downloading files
Upload and Download file through RFC called by java
Regards,
Saleem -
What is the Program name to Upload and Download Scripts
Hi ALL ,
Can anybody help me out by the program name by which we upload and download scripts ..
Thanks in Advance
Regards
ShankarRSTXSCRP
Regards,
Aparna
Maybe you are looking for
-
One Day it Works, next day it doesn't
*We're having a nightmare with ICHAT, some days it works fine, others it does now.* *Here's the code from the log, can anyone help us out here?* Date/Time: 2007-11-20 11:38:06.266 +0000 OS Version: 10.5.1 (Build 9B18) Report Version: 4 iChat Connecti
-
Hi I need help. Does anyone knows joel brotonel? I bought an iPhone from him because he said he is working in apple warehouse. He tricked me. I just want to ask what should I do to get my money back?
-
User32.DLL PostMessagea
We are creating an application with a VB front-end communicating with Forte through OLE. The VB component is successfully sending information to the Forte application. However, we are not able to communicate back to the VB front-end asynchronously du
-
Disp+work.EXE - Application Error
Hi, I downloaded both rars in c:\netweaver and unzipped the first rar in c:\netweaver as well and started the installation. After some time the installation was finished without any warnings, however when I clicked the 'start SAP' checkbox I got the
-
Istall Lightroom 5 32 bit (CC)
Hi! I've used the try-version of Lightroom 5 (I had problems with the 64 bit version so I needed to install the 32 bit). Now the 30 day trial went out and I got a CC-membership instead but I can't find any way to install the 32 bit version; the CC on