Reversal of stock upload file:- Urgent

Gurus,
    By mistake at intial stock upload file is  upladed twice, how could i reverse  the same. I uploaded  through   T -code MB1C/ Mvt type 561; and showing at 998 storage type( interemediate bins). How could I will reverse the excess stock from the same.
Please let me know the process . its is urgent. by what logic shoulsd I make  BDCetc.
Regds,
Sanjay rahangdale
[email protected]

Hi,
re run the file again but this time with a 562 movement type, this should reverse the error exactly how you want it.
Steve b

Similar Messages

  • Urgent !!!!!!!!!!!!!Uploading File problem

    Hi I stucked on a problem...... I want to upload file from html page....On this page I want only a upload button so that when I click on this button file will upload from my client m/c to server m/c.... I have code n all but browse button on html page....now I want to remove this browse button n want to give the file path somewhere in the code itself........so that on html page there will only the uplod button and by click on this button file will upload from client to server.......server path already there in code.....Please do the needful  Abhishek  I m putting the code here:-  FileUpload.java  /* upload-FileUpload.java  NOTE: This file is a generated file. Do not modify it by hand! */  package upload;   //custom imports for FileUpload //add your custom import statements here  import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import com.oreilly.servlet.MultipartRequest; import java.util.*;   public class FileUpload extends javax.servlet.http.HttpServlet { protected boolean create() throws java.lang.Exception {  return true; }   public FileUpload() { // Constructor.  } private void unhandledEvent( String listenerName, String methodName, java.lang.Object event ) {  } /** * destroy Method */  public void destroy() { super.destroy(); // TODO: implement } /** * doGet Method */  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println("abhishek"); response.setContentType( "text/html" );  PrintWriter out = response.getWriter();  out.println("<HTML>");  out.println("<HEAD><TITLE>FileUpload</TITLE></HEAD>");  out.println("<BODY>");  out.println("<H1>FileUpload</H1>");  out.println("Hello World!");  out.println(" Default Implementation From PowerJ  ");  out.println("</BODY></HTML>");   // TODO: implement } /** * doPost Method */  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {   PrintWriter out = response.getWriter();  try{ response.setContentType("text/html"); out.println("<HTML>"); out.println("<head><Title>Decoded Uploaded File</title><head>");  out.println("<body>"); out.println("<H1>UploadFile</h1>");  // path must be absolute to upload dir // This is the decoder class that extracts the parameters and transfer file // request argument = Http input stream // c:\\temp\\upload = directory to save file // 15*1024*1024 = 15mb max size file MultipartRequest multi = new MultipartRequest(request, "c:\\temp\\upload",15*1024*1024);   // Lists form parameters out.println("Params:"); Enumeration params = multi.getParameterNames(); out.println("<pre>");  while (params.hasMoreElements()) { String name = (String)params.nextElement(); String value = multi.getParameter(name); out.println(name + " = " + value); }  out.println("</pre>");   // Show details of uploaded file out.println("Files:"); Enumeration files = multi.getFileNames();  out.println("<pre>"); while (files.hasMoreElements()) { String name = (String)files.nextElement(); String filename = multi.getFilesystemName(name); String type = multi.getContentType(name); File f = multi.getFile(name); out.println("name: " + name); out.println("filename: " + filename); out.println("type: " + type); if (f != null) { out.println("f.toString(): " + f.toString()); out.println("f.getName(): " + f.getName()); out.println("f.exists(): " + f.exists()); out.println("f.length(): " + f.length()); out.println(); } out.println("</pre>"); }  }catch (Exception e){ out.println("<pre>"); e.printStackTrace(out); out.println("</pre>"); } out.println("</body></html>"); } /** * init Method */  public void init(ServletConfig config) throws ServletException { super.init(config); // TODO: implement } /**************************************** * data members ****************************************/   // add your data members here }  --------------------------------------------------------------------------------------------------  UploadFile.html  <html>  <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>File Upload using EAS</title> </head>  <body>  <form method="POST" enctype="multipart/form-data" action="upload/FileUpload">  <b>File Upload using EAS </b>    Select file to send: <input type="file" name="name" size="30">    Your Name: <input type="input" name="yourname" size="20">     <input type="submit" value="Send File" name="submit">   </form>  </body>  </html> ----------------------------------------------------------------------------------------------  You can download the oreilly files from :- (same code is also here)  http://www.sybase.com/detail?id=1011664

    I m putting the code again with code tags:-
    code is here
    FileUpload.java
    package upload;
    //custom imports for FileUpload
    //add your custom import statements here
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import com.oreilly.servlet.MultipartRequest;
    import java.util.*;
    public class FileUpload extends javax.servlet.http.HttpServlet
    protected boolean create() throws java.lang.Exception
    return true;
    public FileUpload()
    { // Constructor.
    private void unhandledEvent( String listenerName, String methodName, java.lang.Object event )
    * destroy Method
    public void destroy()
    super.destroy();
    // TODO: implement
    * doGet Method
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    System.out.println("abhishek");
    response.setContentType( "text/html" );
    PrintWriter out = response.getWriter();
    out.println("<HTML>");
    out.println("<HEAD><TITLE>FileUpload</TITLE></HEAD>");
    out.println("<BODY>");
    out.println("<H1>FileUpload</H1>");
    out.println("Hello World!");
    out.println("
    Default Implementation From PowerJ
    out.println("</BODY></HTML>");
    // TODO: implement
    * doPost Method
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    PrintWriter out = response.getWriter();
    try{
    response.setContentType("text/html");
    out.println("<HTML>");
    out.println("<head><Title>Decoded Uploaded File</title><head>");
    out.println("<body>");
    out.println("<H1>UploadFile</h1>");
    // path must be absolute to upload dir
    // This is the decoder class that extracts the parameters and transfer file
    // request argument = Http input stream
    // c:\\temp\\upload = directory to save file
    // 15*1024*1024 = 15mb max size file
    MultipartRequest multi = new MultipartRequest(request, "c:\\temp\\upload",15*1024*1024);
    // Lists form parameters
    out.println("Params:");
    Enumeration params = multi.getParameterNames();
    out.println("<pre>");
    while (params.hasMoreElements()) {
    String name = (String)params.nextElement();
    String value = multi.getParameter(name);
    out.println(name + " = " + value);
    out.println("</pre>");
    // Show details of uploaded file
    out.println("Files:");
    Enumeration files = multi.getFileNames();
    out.println("<pre>");
    while (files.hasMoreElements()) {
    String name = (String)files.nextElement();
    String filename = multi.getFilesystemName(name);
    String type = multi.getContentType(name);
    File f = multi.getFile(name);
    out.println("name: " + name);
    out.println("filename: " + filename);
    out.println("type: " + type);
    if (f != null) {
    out.println("f.toString(): " + f.toString());
    out.println("f.getName(): " + f.getName());
    out.println("f.exists(): " + f.exists());
    out.println("f.length(): " + f.length());
    out.println();
    out.println("</pre>");
    }catch (Exception e){
    out.println("<pre>");
    e.printStackTrace(out);
    out.println("</pre>");
    out.println("</body></html>");
    * init Method
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    // TODO: implement
    * data members
    // add your data members here
    }UploadFile.html
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>File Upload using EAS</title>
    </head>
    <body>
    <form method="POST" enctype="multipart/form-data" action="upload/FileUpload">
    <b>File Upload using EAS </b>
    Select file to send: <input type="file" name="name" size="30">
    Your Name: <input type="input" name="yourname" size="20">
    <input type="submit" value="Send File" name="submit">
    </form>
    </body>
    </html>[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Upload File Validation Urgent pls..........................

    hi ,
    i want to validate FileAttachment If i give some junk data in IE7 It is not executing that page but it's working fine in IE6 And if i give more than 2MB,it is not enter inside the if loop ( if(attachmentFileName != null {...... }) at all .this is my code
    if(attachmentFileName != null){
    try{
    InputStream inputStream = new FileInputStream(attachmentFileName);
    if(attachmentFileName.length() > ApplicationDefs.TWO_MB){ addActionError("Sorry your file is size is greater than 2 MB");
    return;
    if(inputStream.available() == 0){
    addActionError("Invalid file format");
    return;
    if(!isValidFileFormat(attachmentFileName)){
    addActionError("Invalid file format");
    return;
    }catch(FileNotFoundException fne){
    addActionError("Uploaded file not found");
    return;
    }catch(IOException io){
    addActionError("Unable to read the uploaded file");
    return;
    }//end of try-catch
    }//end of if
    showing the following errors
    15:36:47,339 ERROR [MultiPartRequest] org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (2264141) exceeds the configured maximum (2097152)
    15:36:52,839 ERROR [FileUploadInterceptor] the request was rejected because its size (2264141) exceeds the configured maximum (2097152)
    please any one help me
    sreenu
    Thank You

    I looked at the sample code, (getCategory() == null ). I wasn't sure if it's ok for me to validate the contentType sheet in the ActionForm, it's not a String. I moved the validation to the Action after its not working. I placed the code back to the ActionForm and debugged the code and ti worked. Thanks.

  • Itunes Producer Problems Uploading - File not saving - file does not Exist.

    Can someone please help me out, this problem is killing me. I've uploaded over 200 UPC Albums using Old G3 and Elderly ITunes Producer, but apple asked me to upgrade, so new machine to me Macmini maverics 10.9.? ITunes Producer 3.1.
    So I click open ITunes producer 3.1. Click on make project from Audio
    Files. Name and Save the project in Music-ITunes Producer-Playlists.
    Plug in my external Flash drive and import the 40 Audio files for the
    project. I am using an external flash drive as I can’t get ITunes Producer to
    see my internal hard disk, I do not know if this is normal??
    Go through the process of saving the project to Music – ITunes Producer –
    Playlists – in this case 5060101121313
    I then go through name all Tracks and make sure that all Data is correct.
    Then when I finally go to either save the document or send it to you I get the
    first Screen shot saying
    "The Document "5060101121313" COULD NOT BE SAVED. The File does not exist".
    As I say I have delivered 200 UPC’s to you with the old software and never
    had any problems, I am in urgent need of making significant delivery to you so
    would appreciate you help ASAP.
    Paul

    I have been victorious. Now I am going to post my solution for all those that may have the same problem in the future. I'll even throw in a few key words so it will be more easily found by the search engine.
    Connection conn = null;
            try{
                //connect to database
                DAOManager dao = new DAOManager();
                conn = dao.connectToDB();
                String query = "update ASSIGNMENT set file_object = ?, filename = ?, filetype = ? where a_key = 1"; //sql query
                PreparedStatement pstmt = conn.prepareStatement(query);
                ByteArrayOutputStream baostream = new ByteArrayOutputStream();
                //write to output stream
                byte[] buffer = new byte[1024];
                int len = -1;
                while ((len = instream.read(buffer)) >= 0 )
                    baostream.write(buffer, 0, len);
                baostream.flush();
                byte[] filebytes = baostream.toByteArray();
                baostream.close();
                pstmt.setBytes(1,filebytes); //set blob
                pstmt.setString(2,filename);
                pstmt.setString(3,filetype);
                pstmt.executeUpdate();
                pstmt.close();
            catch (SQLException e) {
                System.out.println(Tools.getLoggingDate() + " upload() Error uploading file -- " + e);
                e.printStackTrace();
            catch (Exception e) {
                System.out.println(Tools.getLoggingDate() + " upload() Error: " + e);
            finally {
                try{
                    conn.close();
                }catch (SQLException e) {}
            }Keywords: setBinaryStream(), setBytes(), MySQL, upload file, InputStream, Blob

  • Error in upload file

    Hello,
    I have tried all thread regarding upload file on tomcat server.
    but still i dont get proper solution on that.
    In my project I want to send mail with attachment in jsp. Email sending
    is working properly but attachment is not still send.
    It gives nullpointerException error.
    for that I hv tried upload a file but my file is not uploading properly.
    So plz tell me step wise procedure for that with sample code
    Plz!!!!!!!!!!!!!!!!!!!!!!!!
    Reply me urgent

    I have tried below code but its giving me error
    NullPointerException
    After runnning following code file will be copied in specify folder.
    I also dont know how to invoke following code to attach file code
    Plz send me reply urgently with stepwise
    NewUpload.jsp
    <%@ page import="java.util.*,java.io.*"%>
    <%
    String path=request.getParameter("filename");
    String newPath="";
    int count=0;
    if(path!=null)
    ArrayList arr=new ArrayList();
    StringTokenizer st=new StringTokenizer(path,"\\");
    while(st.hasMoreTokens())
    arr.add(count,st.nextToken());
    count++;
    // create ur own path
    out.println(path);
    newPath="d:\\Shilpa\\" + arr.get(count-1);
    out.println(newPath);
    int c;
    FileInputStream fis=new FileInputStream(path);
    FileOutputStream fos=new FileOutputStream(newPath);
    while((c=fis.read())!=-1)
    fos.write((char)c);
    out.println("Thanks for using");
    out.println("<br>");
    out.println("<br>");
    out.println("1.File1 Uploaded from :: "+path);
    out.println("<br>");
    out.println("<br>");
    out.println("2.Uploaded File1 is Saved in :: "+newPath);
    %>
    Up;oadFile.html
    <!--Html Code for Browsing Purpose-->
    <html>
    <head>
    <form action="NewUpload.jsp" name="upform" enctype="multipart/form-data">
    <table width="60%" border="0" cellspacing="1" cellpadding="1" align="center" class="style1">
    <tr>
    <td align="left"><b>Select a file to upload :</b></td>
    </tr>
    <tr>
    <td align="left">
    <input type="file" name="filename" size="50">
    </td>
    </tr>
    <tr>
    <td align="left">
    <input type="hidden" name="todo" value="upload">
    <input type="submit" name="Submit" value="Upload">
    <input type="reset" name="Reset" value="Cancel">
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>

  • Unable to upload File to DMS (Document Managemt Sys) Via web Dynpro App

    Hi .
    I want add file to DMS i,e, SAP Document Management System .
    I first tried calling BAPI : BAPI_CREATE_DOCUMENT2 in Report and I was successfull.
    I am trying out same thing via Web Dynpro Application but I am getting error in Return of BAPI .Error is Error while checking in and storing: C:\Documents and Settings\Desktop\Hi.doc.
    I am pasting code I have written on click of Upload .
    method ONACTIONON_UPLOAD .
    implicitly available data objects
    wd_Context type ref to if_wd_context_node.
    wd_This type ref to if_FileUpload.
    DATA: gv_documento TYPE draw-doknr ,
    gv_clase TYPE draw-dokar VALUE 'Z99' ,
    gv_version TYPE draw-dokvr VALUE '00',
    gv_part TYPE draw-doktl VALUE '000',
    gv_descripcion TYPE drat-dktxt VALUE 'Description111',
    gv_return TYPE bapiret2,
    filename(60) type c ,
    lt_documentdata TYPE STANDARD TABLE OF bapi_doc_draw2,
    ls_documentdata LIKE LINE OF lt_documentdata,
    lt_characteristicvalues TYPE STANDARD TABLE OF bapi_characteristic_values ,
    lt_classallocations TYPE STANDARD TABLE OF bapi_class_allocation ,
    lt_documentfiles TYPE STANDARD TABLE OF bapi_doc_files2 ,
    ls_documentfiles LIKE LINE OF lt_documentfiles ,
    lv_content type xstring ,
    size type i.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
    DATA ls_context TYPE wd_this->element_context.
    DATA lv_filename LIKE ls_context-filename.
    get element via lead selection
    lo_el_context = wd_context->get_element( ).
    get single attribute
    lo_el_context->get_attribute(
    EXPORTING
    name = `FILENAME`
    IMPORTING
    value = lv_filename ).
    ls_documentdata-documenttype = 'Z99'.
    ls_documentdata-documentversion = '000'.
    ls_documentdata-documentpart = '00'.
    ls_documentdata-description = 'Test Document Created Parag'.
    ls_documentdata-STATUSEXTERN = 'WR'.
    ls_documentdata-USERNAME = 'I046361'.
    ls_documentdata-WSAPPLICATION1 = 'DOC'.
    ls_documentdata-DOCFILE1 = lv_filename.
    ls_documentdata-DATACARRIER1 = 'DEFAULT'.
    ls_documentfiles-wsapplication = 'DOC'.
    ls_documentfiles-docfile = lv_filename.
    ls_documentfiles-storagecategory = 'DMS_C1_ST'.
    ls_documentfiles-checkedin = 'X'.
    APPEND ls_documentfiles to lt_documentfiles.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
    EXPORTING
    documentdata = ls_documentdata
    pf_http_dest = 'SAPHTTP'
    IMPORTING
    return = gv_return
    TABLES
    documentfiles = lt_documentfiles.
    IF gv_return-type CA 'AE'.
    WRITE gv_return-message.
    ELSE.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = 'X'.
    ENDIF .
    endmethod.
    Now Can anyone tell
    In case of Web Dynpro what Is this code right ?
    Do I need to change value of Parameters I have Set ?
    Do i need to some change as I am trying to Upload file Via WebApplication ?
    Do I have to change data Carrier ?
    Please let me know urgently .Points will be surely Given ...
    Regards ,
    Parag

    Hi ,
    Finally I was successfull in Uploading Docs.It seems I was not getting right Parameters ..anyways correct code is as follows ...
    method ONACTIONON_UPLOAD .
      implicitly available data objects
      wd_Context type ref to if_wd_context_node.
      wd_This    type ref to if_FileUpload.
    DATA:     gv_documento    TYPE draw-doknr            ,
              gv_clase        TYPE draw-dokar   VALUE 'Z99'  ,
              gv_version      TYPE draw-dokvr              VALUE '00',
              gv_part         TYPE draw-doktl VALUE '000',
              gv_descripcion  TYPE drat-dktxt VALUE 'Description111',
             gv_return       TYPE  BAPIRETURN ,
              gv_return       TYPE  BAPIRET2 ,
              gv_ruta         TYPE bapi_doc_files2-docfile VALUE 'C:\BAPI_DMS.doc' ,
              filename(60) type c ,
              lt_documentdata         TYPE STANDARD TABLE OF bapi_doc_draw2,
              ls_documentdata         LIKE LINE OF  lt_documentdata,
              lt_characteristicvalues TYPE STANDARD TABLE OF bapi_characteristic_values ,
              lt_classallocations     TYPE STANDARD TABLE OF bapi_class_allocation ,
              lt_documentfiles        TYPE STANDARD TABLE OF bapi_doc_files2 ,
              ls_documentfiles        LIKE LINE OF lt_documentfiles ,
              lv_content type xstring ,
              size type i ,
              lt_binary              TYPE TABLE OF sdokcntbin ,
              ls_binary              LIKE LINE OF lt_binary ,
              lv_size                TYPE I  ,
              ls_doc_status          TYPE  CVAPI_DOC_STATUS ,
              ls_API_ctrl            TYPE  CVAPI_API_CONTROL ,
              l_MSG                  TYPE  MESSAGES ,
              lt_files type STANDARD TABLE OF CVAPI_DOC_FILE  ,
              lt_drao  TYPE STANDARD TABLE OF DRAO  ,
              ls_drao  LIKE LINE OF lt_drao ,
              lv_documenttype      TYPE  DRAW-DOKAR ,
              lv_documentnumber TYPE  DRAW-DOKNR ,
              lv_documentversion TYPE  DRAW-DOKVR ,
              lv_documentpart  TYPE  DRAW-DOKTL ,
              lv_text          TYPE string .
          FIELD-SYMBOLS <fs> TYPE ANY.
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_filename LIKE ls_context-filename   .
    get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    get single attribute
      lo_el_context->get_attribute(     EXPORTING       name =  `FILENAME`     IMPORTING       value = lv_filename ).
      lo_el_context->get_attribute(     EXPORTING       name =  `FILECONTENT`     IMPORTING       value = lv_content ).
    CONCATENATE lv_text 'by' sy-uname 'cretaed at ' sy-uzeit INTO lv_text .
      ls_documentdata-documenttype    = 'Z99'.
      ls_documentdata-documentversion = '00'.
      ls_documentdata-documentpart    = '000'.
      ls_documentdata-description     = 'Test Document Created in Web Dynpro ABAP '.
      ls_documentdata-STATUSEXTERN    = 'WR'.
      ls_documentdata-USERNAME        = 'I046361'.
      ls_documentdata-WSAPPLICATION1 = 'DOC'.
      ls_documentdata-DOCFILE1        = lv_filename.
      ls_documentdata-DATACARRIER1    = 'DEFAULT'.
      ls_documentfiles-DOCUMENTTYPE       = 'Z99'.
      ls_documentfiles-WSAPPLICATION      = 'DOC'.
      ls_documentfiles-DOCUMENTVERSION    = '00'.
      ls_documentfiles-DOCUMENTPART       = '000'.
      ls_documentfiles-DOCFILE            = lv_filename.
      ls_documentfiles-description        = 'Test Document Created in Web Dynpro ABAP  '.
      ls_documentfiles-CREATED_BY         = sy-uname.
      ls_documentfiles-CHECKEDIN          = 'X'.
      ls_documentfiles-DOCFILE            = lv_filename.
      APPEND ls_documentfiles  to lt_documentfiles .
        CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
            documentdata    = ls_documentdata
            pf_http_dest    = 'SAPHTTPA'
        IMPORTING
            DOCUMENTNUMBER  = lv_DOCUMENTNUMBER
            return          = gv_return
        TABLES
          documentfiles = lt_documentfiles.
    IF gv_return-type CA 'AE'.
      WRITE gv_return-message.
    ELSE.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING     wait = 'X'.
       get message manager
       data lo_api_controller     type ref to if_wd_controller.
       data lo_message_manager    type ref to if_wd_message_manager.
       lo_api_controller ?= wd_This->Wd_Get_Api( ).
       CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
         RECEIVING
           MESSAGE_MANAGER = lo_message_manager
    CLEAR lv_text .
    CONCATENATE 'Dcoument ' lv_filename 'Successfully stored with Document No. ' lv_DOCUMENTNUMBER INTO lv_text .
       report message
       CALL METHOD lo_message_manager->REPORT_SUCCESS
         EXPORTING
           MESSAGE_TEXT             = lv_text
          PARAMS                   =
          MSG_USER_DATA            =
          IS_PERMANENT             = ABAP_FALSE
          SCOPE_PERMANENT_MSG      = CO_MSG_SCOPE_CONTROLLER
          VIEW                     =
          SHOW_AS_POPUP            =
          CONTROLLER_PERMANENT_MSG =
          MSG_INDEX                =
          CANCEL_NAVIGATION        =
    ENDIF .
    endmethod.

  • Upload file in KM using webdynpro without portal.

    Hi Experts,
    Can we upload files in KM using webdynpro without portal ? If  it is possible then please give the whole step by step process? Please reply....its urgent...
    I am very new in webDynpro...
    Thanks
    Regards
    Nutan Champia

    Hi
    Go through this
    <a href="/people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis
    also you can see this
    <a href="/thread/452368 [original link is broken]
    Regards
    Abhijith YS

  • Upload file in Webserver using Flex

    I am currently working in Flex and in a requirement I need to upload a file from local file system to a webserver. The webserver I am using is Apache Tomcat web server . I tried doing that using FileReference class but got IOException when tried to call upload function. Anybody know how to upload
    file in Flex please help me out. Its very urgent for me.
    Thanks
    Purna

    You can't upload files to the server directly by using only Flex. You'll need a server-side script that can handle the actual writing of the data. I posted an example on a simple PHP + Flex file uploader back a while, you can take a look at it here: http://blog.wisebisoft.com/2009/01/28/simple-flex-file-uploader/ Good luck.

  • SAP JV upload file template

    Hello,
      Can anyone send me a template of a JV upload file to post JV's in SAP . I am new to this interface .
    Any help will be appreciated .
    Thanks

    Raju,
    I would highly appreciate if you could send me JV upload document at my email address [email protected]
    I am in urgent need of advise how to do mass upload of JV transactions.
    Thanks,
    Sheila

  • Stock upload conversion program

    Hello Experts,
    I have few questions below.
    What is the case that we require to do a BDC program for stock upload? What is the difference of using LSMW Vs BDC?
    I have about 500 materials and need to upload the stock into SAP from external excel file and need to move them into physical bins.
    Do I need to develop a conversion program for LSMW to full fill my requirement.I am asked to write a functional spec for stock upload.Please help..
    Do i need a seperate conversion program for stock transfer from 998 storage to physical bin?I should also print the SU labels during this program.
    Please explain the process.
    Thanks for your time in advance.
    Edited by: RKsap193 on Oct 13, 2008 12:28 PM

    If you send your personal email than i can send you the document with screen shot.
    Here is the complete step bu step process to load initial stock with LSMW
    you can use LSMW or BDC program
    LSMW can eb designed by analyst and BDC can be desined by ABAPer
    I did not find any documentation describing scenario of initial stock entry of material to HU & WM managed storage location. It inspired me to write this wiki.
    I use the following scenario of loading initial stock entry:
    u2022     Creation of inbound delivery using standard batch input import method - program RM07MMBL  with following tip:
    o   Input file from legacy system is prepared it such a way that one line contains information about one palette (or other packing materials) and storage bin coordinate.
    o   In the standard field MTSNR (Material slip) storage bin coordinates information is recorded.
    o   Field MTSNR is transferred to field LIKP-LIFEX (External Delivery ID)
    u2022     Creation of transfer order in reference to inbound delivery using batch input recording of transaction LT03
    o   Field NLPLA (Destination Bin) is read using simple ABAP code from delivery header - LIKP-LIFEX
    To create transfer order for inbound delivery in transaction LT03, material in inbound delivery must be packed, i.e. handling unit must be created. It can be archived by using an automatic packing functionality (packing instruction and packing instruction determination). 
    After TO confirmation the goods receipts can be posted for deliveries.
    Standard output can be generated for handling unit using message type E128 (EAN128 sticker). If needed storage bin information can be printed to simplify label  sticking on palette or other packing materials in the warehouse complex.
    In this scenario homogeneous materials are packed into one handling unit.
    Step 1: LSMW for initial stock entry in MM using 561 movement type:
    This is the well known standard LSMW procedure which use standard batch input import method - program RM07MMBL .
    1a. LSMW Process steps:
    I apply only following tip: in the standard field MTSNR (Material slip) storage bin coordinates information is recorded.
    1b. Maintain Source Fields LSMW process (step No. 3):
    1c. Input file - example:
    1d. Create batch input session LSMW (step No. 14).
    It is important to set "1" for Max. number of items. It ensures that one delivery is created per one input line.
    1e. Log sample from batch input session.
    1f. Inbound delivery monitor - transaction VL06I
    Selecting deliveries for Putaway you can control deliveries created in preceding step
    Each delivery is packed:
    and output - message type E128 is created:
    Step 2: LSMW for transfer order creation in reference to inbound delivery:
    This LSMW procedure is based on batch input recording of LT03 transaction. 
    2a. LSMW Process steps
    2b. Maintain Source Fields LSMW (step No. 3).
    Deliveries numbers can be simply generated to input file form inbound delivery monitor (see 1f step)
    There is no need to fill LGTYP (Storage type) and LGPLA (Storage section) because these fields are derived in LT03 transaction from storage bin - LGPLA (only if LGPLA is unique for all storage types and storage section - LAGP table).
    2d. Display Read Data LSMW (step No. 10)
    2e. Run Batch Input Session (step No. 14)
    Log from the batch input session:
    LT23:
    I have customized the system to automatically confirm TO. Finally all HU are put away.
    Tip & Trick
    You can confirm TO using RF devices (standard transaction LM02) while label sticking on a palette.
    Last step is to post GR for inbound deliveries which were put away. It can be done collectively in inbound delivery monitor by selecting deliveries for goods receipt: 
    Summary
    u2022     Easy to implement: two simple LSMW scenarios (one with few ABAP lines)
    u2022     Standard message type for label printout with information about storage bin coordination
    u2022     Possibility to analyze correctness of data migration in inbound delivery monitor before posting GR
    u2022     Possibility to confirm label sticking with RF transaction
    u2022     This scenario can be adapted for non homogeneous HUs

  • Adobe Muse won't publish (Error uploading file)

    After making simple animations using Adobe Edge Animate it seems as though none of the assets will publish with my site after importing them into Muse.
    In Edge animate I saved for "web animation" and published. Then I went to muse and hit "place". I went to preview and everything works fine. When I go to publish there are always errors in uploading my assets with '.png' extensions.
    Any help is much appreciated. I have completely scrapped my website and created another, reinstalled Animate and have renamed all my files, I'm not sure whats wrong here.
    I got one animation working, and that can be seen here under the Photography section, but I have multiples that will be shown on my page at one time.
    http://chasebodydesign.businesscatalyst.com

    I get the error uploading file everytime I try publishing the animation.

  • Change upload file name with com.oreilly.servlet.MultipartRequest to handle the file upload

    1. when use com.oreilly.servlet.MultipartRequest to handle the file upload, can I change the upload file name .
    2. how com.oreilly.servlet.MultipartReques handle file upload? do it change to byte ?
    what  different?  if I use the following method?
       File uploadedFile = (File) mp.getFile("filename");
                   FileOutputStream fos = new FileOutputStream(filename);
                    byte[] uploadedFileBuf = new byte[(int) uploadedFile.length()];
                   fos.write(data);
                 fos.close();

    My questions are
    1) when use oreilly package to do file upload , it looks like i line of code is enough to store the upload file in the
    file direction.
    MultipartRequest multi =
            new MultipartRequest(request, dirName, 10*1024*1024); // 10MB
    why some example still use FileOutputStream?
    outs = new FileOutputStream(UPLOADDIR+fileName); 
        filePart.writeTo(outs); 
       outs.flush(); 
      outs.close();
    2) can I rename the file name when I use oreilly package?

  • Request.getParameter() when uploading files

    Hi, I need to upload files and do other works .. such that, in my html ..
    <form name="composer" method="post" ENCTYPE="multipart/form-data">
    <input type=hidden name="a" value="a">
    <input type=File name=inputfile>
    <inpu type=button name=Upload onClick='upload file'>
    <inpu type=button name=otherStuff onClick='do other stuff'>
    </form>
    In the jsp for 'do other stuff', I have the following statement to get the value of a
    String a = request.getParameter("a");
    However, it returns 'null', if I erase the 'ENCTYPE' part from the html file, it works. How can I get it right?

    If your ENCTYPE is multi-part/form-data, then there is another technichque to read the form parameters.
    request.getParameter() won't work.
    first u need to read the requenct explicitely and divide the contents into parameters, files etc. and then read the parameter values.
    you can get a lot of stuff regarding this on web, like 'uploading files using jsp'.
    have fun!!

  • Remove link for uploaded files in application

    Hi all,
    I've been following the tutorial on how to upload and download files in application at http://download-uk.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/up_dn_files.htm. I have now created my own table which stores the uploaded files and can download them successfully. I would now like to add the ability to delete these files within the application and was wondering what the best way of doing this was?
    I would like to add another column to the displayed report with a 'Remove file' link for each listed file, which when clicked would delete the file from the table. I've already tried using a similar method to the one used to upload the files (instead of uploading the file, the called procedure deletes it from the table using the specified ID), but this causes the application to display a blank page when the link is clicked, which I dont want (but does delete the file).
    I would appreciate any suggestions.
    Regards,
    Dave

    Dave,
    See the login page:
    http://htmldb.oracle.com/pls/otn/f?p=31517:101
    There are details on how to access the application builder, where you can see how the
    setup of that download, delete, upload application has been done.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Delete an uploaded file (in custom table) from a report

    Hi,
    I have a report of uploaded files (the files are saved in my own table, not in APEX_APPLICATION_FILES) - I'd like to add a delete link to each file in my report so that the user can delete a particular file.
    How do I go about doing this?
    Thanks.

    Melissa,
    It is now working. You missed couple of things:
    1. javascript in the header
    2. you were pointing to the page 1 and your process was on the page 2
    3. you passed the value to a non existing item on the page 3
    4. the request which would fire the delete process was triggered by a wrong request
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • How to create a simple web.xml for using servlets

    Hello i wanna configure the web.xml that i can use sevlets and beans, but how can i do that? This is de directorie i have installed my webapp C:\Tomcat 4.1\webapps\testapp C:\Tomcat 4.1\webapps\test\WEB-INF\classes (in this dir, I wanna put my beans

  • Substitution Variable for Field Name - Use in LOV Defintion

    Hi, I need to build an application with a lrage number of fields based on an LOV (Select List). All the LOVs will be sourced from a single table: LOOKUP_TYPE VARCHAR2(30) LOOKUP_CODE VARCHAR2(30) MEANING VARCHAR2(100) Each field will therefore need a

  • Calendar is not adding my events after submission since ios8.1

    Anyone tried to add a Calendar event, mine won't add submitted data.

  • Records Manager error message

    Hi there, We just recently upgraded to Records Manager from TRIM version 7.1 and we have been having some issues that I am hoping someone can give me advice on. My collegue keeps getting an error message saying "The requested operation cannot be perf

  • My aunt's Skype account does not appear in search ...

    My aunt created a Skype account for herself so that we could all do Skype calls with her when she is away.  I tried to add her to my Skype contact list today and her username does not appear in search results, when it used to, before.  I logged onto