T code F-28 Upload

Hello,
Folks,
Could you please help me?  I just wanted make upload directely from some excel file to t-code f-28. How can I do it?
Best Regards,
Queiroz

Jose
You have several choices available to you, you can either make use of a BDC session with SAP natively, however this requires some technical skill and it also requires you to have the appropriate security authorizations. Alternatively you can look at third party solutions like those offered by a number of partners in the [Ecohub|http://ecohub.sdn.sap.com/irj/ecohub/solutions?query=excel#sort_sdn_rating].

Similar Messages

  • This is my Jsp code for image upload in database:

    This is my Jsp code for image upload in database:
    -----------Upload.jsp----------------
    <html>
    <head>
    </head>
    <body bgproperties="fixed" bgcolor="#CCFFFF">
    <form method="POST" action="UploadPicture.jsp" enctype="multiform/form-data">
    <%! int update=0; %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="java.sql.Date" %>
    <%@ page import="java.io.*"%>
    <%@ page language = "java" %>
    <%
    try
    String ct="3";
    String path;
    File image=new File(request.getParameter("upload"));
    path=request.getParameter("upload");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:itPlusElectronics","","");
    PreparedStatement pstmt=con.prepareStatement("insert into graphics values(?,?,?)");
    pstmt.setString(2,path);
    pstmt.setString(3,ct);
    InputStream is=new FileInputStream(path);
    pstmt.setBinaryStream(1, is, (int)(image.length()));
    int s=pstmt.executeUpdate();
    if(s>0)
    out.println("Uploaded");
    else
    %>
    unsucessfull
    <%}
    is.close();
    pstmt.close();
    catch(Exception e)
    }%>
    </p>
    <p><br>
    <img src="UploadedPicture.jsp">image</img>
    <p></p>
    </form>
    </body>
    </html>
    My database name is itPlusElectronics and the table name is "graphics".
    I have seen as a result of the above code that the image is stored in database as "Long binary data". and database table is look like as follows-------
    picture path id
    Long binary data D:\AMRIT\1-1-Picture.jpg 3
    To retrive and display i use this JSP code as--
    ------------------------UploadedPicture.jsp------------------------------
    <html>
    <head>
    </head>
    <body bgproperties="fixed" bgcolor="#CCFFFF">
    <%! int update=0; %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="java.io.*"%>
    <%@ page language = "java" %>
    <%@page import="javax.servlet.ServletOutputStream"%>
    <%
    try
    String path;
    path=request.getParameter("upload1");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:itPlusElectronics","","");
    PreparedStatement pst = con.prepareStatement("SELECT * FROM graphics WHERE id ='3'");
    // pst.setString(3, id);
    ResultSet rs = pst.executeQuery();
    path=rs.getString("path");
    if(rs.next()) {
    byte[] bytearray = new byte[4096];
    int size=0;
    InputStream sImage;
    sImage = rs.getBinaryStream(1);
    response.reset();
    response.setContentType("image/jpeg");
    response.addHeader("Content-Disposition","filename=path");
    while((size=sImage.read(bytearray))!= -1 )
    response.getOutputStream().write(bytearray,0,size) ;
    response.flushBuffer();
    sImage.close();
    rs.close();
    catch(Exception e)
    %>
    </body>
    </html>
    Now after browsing a jpg image file from client side and pressing submit button ;
    I am unable display the image in the Upload.jsp file.Though I use
    <img src="UploadedPicture.jsp">image</img> HTML code in Upload.jsp
    file .
    Now I am unable to find out the mistakes which is needed for displaying the picture in the Upload.jsp page..
    If any one can help with the proper jsp code to retrive and display the image ,please please help me !!!!!!!!!!!!!!!!!!!!!!!!!!

    dketcham wrote:
    cotton.m wrote:
    >
    2) I'm looking at how you called stuff, and you're trying to call the jsp file as an image? That jsp isn't the source of the image, just a page linking to an image. I think if you really want to do things that way you're going to need to just include that jsp within the jsp you're calling it from (or you can do it the easy way, and if you have the information to get the path of the image you want, you could simply call the image from the first jsp you posted)This is incorrect.
    There are two JSPs. The second when called will (if it worked) return the source of an image as stored in the database.even when called with <img src=xx.jsp>??
    Yes.
    If any of what I say next seems obvious or otherwise negative I apologize, just trying to explain and I don't know what you know vs what you don't.
    The link in the src is just a URL not a filetype. So just because it ends with JSP does not mean it has to return HTML. The content type is determined by the browser using the Content-Type header returned by the server in the HTTP response. In this case the header is set to be a jpeg so that's what the browser will attempt to interpret the content part of the response as.
    So in fact one is not limited to just HTML or images but whatever content type you would like to return (that the browser can understand anyway). This could be HTML or it could be an image of some type or it could be a PDF or it could be an Excel spreadsheet. All you have to do in the JSP is set the header appropriately and then send content that is actually in that format.
    This does not just apply to JSP by the way but all other web programming languages. You can do similar things to produce the same results in PHP, Perl, ASP etc.
    The only JSP/Servlet complication is whether or not doing this in a JSP is a "good" idea but I am not an expert enough at that to make a definitive statement. Mostly though JDBC in a JSP is a no-no.

  • Java code sample for uploading file

    Guys can some one give me a java code sample for uploading more than 1 file .
    I have a working example but that is only for one file.
    thanks
    M

    Throw it away. Go to the [http://commons.apache.org/fileupload] and carefully read both 'User Guide' and 'Frequently Asked Questions' sections.
    And please, please also carefully read this article: [http://balusc.blogspot.com/2008/06/what-is-it-with-roseindia.html].

  • Is there need of code obfuscation for uploading the app in appstore ?

    Hi
        Is there any chance that .app file can be decompiled ? For security perpose, is there need of code obfuscation for uploading the app in appstore ? What are the ways to obfuscate the code ?

    Apps are compiled and signed. For extra security against pirates, you should verify the signed receipt as well. All the instructions are on the developer site.

  • Transaction code used to upload the data in the application server SCM syst

    Hi
    Could you please anyone tell me the transaction code which has been used to upload the data into the application server in SCM ( APO) system from presentation server. 
    For ex : R/3 system CG3Y , CG3Z has been used to upload the data into application server similarly way could you please tell me the transaction code is used in the APO system for uploading the data into application server.
    Thanks advance for your support.
    Regards,
    Kiran

    try tcode SXDA_TOOLS - copy
    (1st you must fill all obligatory fields)
    A.

  • How would I code a file upload for in flash?

    The title says it all. Anyone know how I would code a file/pic upload form in flash. I have seen examples that you can use php. However I have tried the php/java I designed for my dreamweaver sites. I think It's time I get with the real designers and us flash for my websites.
    Any imput would be great!

    you can use the filereference class to upload a file using actionscript.  to save the file to your server, you'll need to also use server-side scripting like php.

  • Template code changes after upload

    I am working on a site that appears perfectly in Firefox. But
    the background image doesn't appear in Internet Explorer. I got
    advice to fix a code problem. Fixed it in the template, uploaded
    it, and the code remains unchanged (or somehow automatically
    changes back?). I think the image is supposed to go in the table
    tag NOT in the table row tag. I have spent way too much time on
    this. Anyone know what's going on? Code below shows first how it
    appears in DW8, then the same code as it appears in both Firefox
    and IE after upload and refresh. Site address is:
    http://www.talkeetnaguestcabin.com
    Thanks!

    > Fixed it in the template, uploaded it, and the code
    remains unchanged (or
    > somehow automatically changes back?)
    When you saved the template after the change, did a dialog
    box come up and
    apply the change to the child files of the template?
    You have to upload all the changed local files.
    Uploading the template to the remote server doesn't do
    anything.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Code for  File upload / down load from WD java application

    Hi experts ,
    I am creating a WD java application , I want to add Picture upload and piucture download ( from / To ) KM . I also want to specify the path ( where it has to be uploaded in KM ) and picture name . can i get any code so that i can use it in WD application .
    Regards
    Abhay

    First you need to make sure your web dynpro application has permissions to access the file in the first place, but you could use the standard java.io.File class:
    File file = new File("/path/file.sh");
    file.setExecutable(false);
    file.setReadable(false);
    file.setWritable(false);

  • While recording a t.code for lsmw upload

    How to obtain data collection template from LSMW object for example BOM creation.  I forgot this step.  Can some one help.

    Dear,
    LSMW-> 1 Maintain Object Attributes  --> Flag on Batch input recording --> insert name and t-code in order to start registration.
    Let me know if i solved your dubt.
    Daniele

  • Please give me some code for file upload. I am working in websphere

    Hi,
    I have made the form with encript = multipart. with four text field to enter some information about the file. now i want to upload a file f1.txt in the folder project.com.dos.files. And also I want to make appear the file and the four information regarding that file in a another jsp page as grids.
    Please help how to do that. I am using Websphere Studio Application Developer. Please help with some code

    Check out the fileupload package in the apache commons project

  • Initial Stock Upload T code MB1C and Movement Type 561through LSMW - Error

    Hi,
    Trying to Upload the Initial Stock, Transaction Code MB1C and Movement Type 561 through LSMW.
    While recording the fileds, system giving a message of Code Block.
    Please let us know about Code Block while uploading the Initial Stock.
    Thanks
    Siddu.

    Check this thread
    [Re: Coding Block in LSMW recording via MB1C|Coding Block in LSMW recording via MB1C;
    thanks
    G. Lakshmipathi

  • Can u please send me a sample code to upload and download a file using java

    Hi,
    Please can u send me a sample code to upload a file and to download the same file from a remote server using a java servlets. The file should be read byte by byte.
    Message was edited by:
    user461713

    Hi, Thank u.
    Sorry, I forgot to attach a code. Here it is.
    Actually i need to upload a file to a remote server and download it from a server to my machine. I'm trying it using servlets and using tomcat5.0 as a servlet container. Here i'm sening a code used to upload a file. Let me know whether it works. Only few lines are here.
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.lang.Object;
    import java.util.*;
    import java.lang.String;
    import com.oreilly.servlet.MultipartRequest;
    public class FileUpload extends HttpServlet{
         public void doPost(HttpServletRequest req, HttpServletResponse res)throws
         ServletException, IOException{
         MultipartRequest multi=new MultipartRequest(req);     
         String file="file1";
         byte[] b=file.getBytes();
         InputStream in=null;
         BufferedInputStream bis=null;
         FileWriter fw=null;
    try{
         in=multi.getInputStream("file1");
    bis=new BufferedInputStream(in);
         File output=new File("/fileuploadtest");
         fw=new FileWriter(output);
              int i;
              i=bis.read();
              while (i != -1) {
    fw.write(i);
    i = bis.read();
         catch(IOException e){
              System.out.println("Exception=" +e);
    finally{
         try{
              if(in!=null)
              in.close();
              if(bis!=null)               
              bis.close();
              if(fw!=null)
              fw.close();
         catch(Exception e){
              System.out.println(e);
    This code is giving error as: cannot resolve symbol: class MultipartRequest
    Why is this happening?
    Pls let me know whether this code works or no and also i have written form.html.
    Can u pls tel me whether there are ways in which i can write a code to upload a file using servlets without using third party packages. Pls help.
    Also how should be the servlet mapping for this code.?
    Regards
    Message was edited by:
    user461713

  • Code to Upload Register Groups In ISU

    Hi Experts,
    Can anyone assist me on the following 2 things:
    1. BAPI to create Register Groups in ISU.
    2. Code relevant to upload register groups in isu.
    Thanks a lot,
    Karan

    Hello karan,
    Check out this function module:
       ISU_S_EZWG_CREATE
    or 
    search the function modules with     ISU_O_*
    I hope it may helpful.
    Regards,
    Narendar Konakanchi

  • Can any body Help me  how to upload the BANK SORT codes File other LSMW

    Dear Experts
    I Could not under stand  how to upload bank "sort codes" file in to SAP system  other than LSMW,
    could please some body help me ,
    the file which have "CSV" format,  is the format is correct format  to upload into  SAP system?
    and Country code is  Great Britan
    Best regards
    Ranamka

    HI
    I have to sort codes ordered to upload into SAP , I have the date which i have below mentioned format  can any body guide me weather formate is correct or not , if wrong please provide me which is correct format and also give me which it the transaction code for uploading
    Field No.     Field Description     Data Type     Max.Length
    1          Record Type                     
    2          Branch or place                    
    3          BIC Bank Code                    
    4          BIC Branch Code          
    5          6 Digit Sort Code     
    6          Address Line 1          
    7          Address Line 2          
    8          Address Line 3          
    9          Postcode                     
    10          Telephone Number           
    11          Branch Title                    
    12          Bank Name                         
    13          Town                          
    14          Date Last Amended
    Best Regards
    Ranamka

  • Code for UpLoad program to load Custom PA infotype

    I need to develope UpLoad program to load Custom PA infotype which I created with 9001.
    Can you please give the complete code to Write upload program using standard available FM .
    Points will be awarded........
    Thanks
    Raj

    As this is a custom Infotype and no code is readily available, I would suugest that you try transction SHDB and record loading data into this Infotype.  This interm can be converted to a program which you can then tweek.  If I get stuck writting a BDC upload program then this is where I start.
    Regards
    J

Maybe you are looking for

  • How do I move a photo into an existing album on my Mac in 'Photos"?

    "Photos" just got dumped on me with the OSX upgrade. I cannot find out how to move a photo into an existing album after importing it into "Photos" It is NOT intuitive on how to create and manipulate albums.

  • How to fix error 9 for iphone4 with windows 7

    I tried to upgrade my iphone 4 (32GB) software from itunes as there was always a message coming. After few time my iphone went to black screen and since that time it is showing me to connect my iphone to itunes ,whenever I am connecting it it is sayi

  • Archiving EC_PCA_ITM object: Profit center

    We are doing the archiving for the object EC_PCA_ITM (Profit ctr. accounting: actual and plan line items) The system display an error message about a configuration in customizing: "The are no versions in Customizing that match your selections" In Cus

  • Export drop down menu choices changed

    I just went to export a movie and went to select Chapter Markers under the Markers drop down menu and the only choices were: Faster (linear) Normal Best How did this happen?

  • Upgrade 11.5.9 to 12.1.2

    Hi There, We are currently in oracle application 11.5.9 and planned upgrade to 12.1.2 We would like to know the following 1. Is there any change in the table structure of OM, AR and GL modules in 12.1.2 when compared to 11.5.9 2. What would happened