Upload (Attach) documents to a custom application

Hi Experts,
We have a requirement.
our finance team is getting the Bank Guarantee in Hard copy.
And at present they are maintaining  all the Details(Like bank name, bank address, Value, customer, customer name, Guarantee valid from & to ) in Excel sheet and the scanned document in a folder on their desktop.
Now they want to bring into SAP.so for that data to maintain I created a Z Table & Maintained all the data & given a Z report for seeing the data.
But they want to upload (Attach) the scanned copy of that Bank guarantee to the corresponding document in z table. so how to upload the scanned (pdf or image or word) copy into sap and they want to open & see in the sap itself.
already I searched the sdn, for GOS creation for custom program , but that document is for 4.6c version.we are on ecc 6.0 version.
So please suggest a solution , how to upload  & manage the documents.
Thanks in advance,
Regards,
Venkat

Hi Abhi,
All object services require a unique identifier for the object processed. The Internal
Number for a document is used as the key. But this number is not created until the request  is saved. Therefore it is only possible to add an Object such as an attachment through  change mode fb02.
try this and assign points if it useful.
Regards
Ravinagh Boni

Similar Messages

  • Attach documents to a customer parked invoice (FBV2)

    Hi,
    I need to attach documents to a customer parked invoice, in short I need to replicate 'Adding Attachments'  functionality in Transaction FBV2.
    Can any1 please guide me how, I am unable to find any solution to this problem.
    Cheers
    Abhishek

    Hi Abhi,
    All object services require a unique identifier for the object processed. The Internal
    Number for a document is used as the key. But this number is not created until the request  is saved. Therefore it is only possible to add an Object such as an attachment through  change mode fb02.
    try this and assign points if it useful.
    Regards
    Ravinagh Boni

  • Uploading a document from a custom UI

    I need to upload a document to the iFS from a remote machine using a jsp page and servlet. the servlet must receive the document content as an InputStream object. Is it possible?

    DataInputStream fis = null;
    PublicObject folder = null;
    int boundaryIndex = content.indexOf ("boundary=");
    //Get the boundary string
    String boundary = content.substring (boundaryIndex + 9);
    int boundaryStrLength = boundary.length ();
    ServletInputStream servIn = request.getInputStream ();
    fis = new DataInputStream (servIn);
    if (fis != null)
    filename = "Test.msg";
    // Lop off the headers from the content (read until you get a blank line)
    String line;
    int x = 0;
    while ((line = fis.readLine ()) != null)
    // request.getServletContext().log("Got line: " + line);
    out.println(line + " Line number: " + x);
    x++;
    if (line.trim().length() == 0) break;
    try
    ifs.putDocument(filename, fis, "public", null, parse, null);

  • Safari not allowing me to upload/attach documents

    All of a sudden Safari isn't allowing me to 'upload' or 'attach' files (photos etc) to hotmail or gmail messages and other site where I need to upload documents.
    Has anyone else experienced this.
    Is there a quick fix?

    the only time I had this sort of problem was with safari caching turned off, via safari enhancer or a similar prog.
    If you have/had any such programs installed it's worth checking to make sure that caching is still enabled. My prob wasn't with hotmail/gmail, but a photo upload site.

  • Attaching documents in a Support Mesage

    We can attach document in a Support Desk by using the Documents tab.I am sending mail to the Key user and Message Processor whenever a support message is created.Now I want to attach the documents in the Support Message along with mail sent.How to do it?
    I am using SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail.

    Hello Vinay
    I assume you are searching for this: [How to Attach Documents to Any Custom Program Using Generic Object Services|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3]
    Regards
      Uwe

  • Attaching documents in Create Leave Request UI5 application

    Hi,
    We are planning to implement the SAP HR Renewal 2.0 FP1 based HR implementation with ESS/MSS based on the UI5 as well.
    I would like to know if the SAP UI5 application for Create Leave Request has the option to upload the documents or not in the standard delivery.
    Please let me if the attachment facility is available for the Create Leave request application in UI5 based ESS.
    Thanks & Regards,
    Urmi

    Hello Urmi,
    Yes, attachment option is available in Standard Leave Request in UI5.
    Best Regards,
    Deepak.. 

  • Upload and attach documents within dialog programs

    Hi
    I need to include an 'Add attachment" option on one of my screens. (I am busy developing a stand-alone labour relations system in R/3. The system is case number driven) The option should allow for the user to upload related documents which should be linked to a case number. The user should then be able to view these documents later during display mode.
    Should I use one of the DOCU_* Function Modules to attach the document to the case number? Should the documents be uploaded to the server first?
    Is this at all possible?
    Your advise will be appreciated and examples are also welcome.

    Hi
    I think you should use the Services for Object: it's the tool allows to manage many functions to be linked to a document (object): to create note, add attachment and ....
    In the standard the icon to run "Services for Object" is up on the left of the screen (see FB03 for example).
    I've never used them, but I think it isn't very hard. I know you can create it for a custom transaction.
    See SAP HELP:
    http://help.sap.com/saphelp_46c/helpdata/en/24/370b374e4e7c64e10000009b38f839/frameset.htm
    Max

  • When trying to upload a document or attach a document in an email Firefox gives me an error "Failed to load CTDFMRES.dll" and stops responding, I have no issues in any other browsers. And I am using Firefox 4, Fixes???

    When trying to upload a document or attach a document in an email Firefox gives me an error "Failed to load CTDFMRES.dll" and stops responding, I have no issues in any other browsers. And I am using Firefox 4, Fixes???

    You don't have to disable any addons or extentions!!!You guys are not going to believe this I figured out the problem it's really dumb...ok here goes the attachment uploader loads seperate so I got to thinking it's a popup so I went to options content and under block pop ups there is an option exceptions click on that and in the box type firefox.com and hit allow pow its fixed!!!!! :-)

  • Attach Documents to Custom Program Using Generic Object Services

    Hi There,
             I created Object type ZGOS and used in the custom program, when i try to attach documents it allows and then shows in attachment list.
            But When I use that program next time that document attached is not available.
    Is there any separate save Class or FM available for saving the document to the specified custom program.
    I am using following code in the program,
      CLEAR obj.
    SET OBJECT TYPE TO 'ZGOS'
      obj-objtype = objtype.
    SET OBJECT KEY = REPORT NAME
      SELECT SINGLE name
      FROM trdir
      INTO obj-objkey
      WHERE name = sy-repid.
    CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
      CREATE OBJECT manager
        EXPORTING
          is_object = obj
        EXCEPTIONS
          OTHERS    = 1.
    Thanks in advance.

    Check the Naimesh Patel Blog he explain very well
    http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html

  • Upload / Download document to KM Content Server from WebDynpro Application

    I have a requirement where I need to upload / download document into / from KM Content Server from my WebDynpro Application.
    Is it technically possible and if Yes, can I get any Sample code for this.

    Hi Tahzeeb,
    first of all i would point you to the JavaDocs for KMC API.
    https://media.sdn.sap.com/javadocs/NW04/SPS15/km/index.html
    And here is a small example of reading and storing KM resources.
    For reading:
         * Returns a resource as an InputStream from the KM repository
         * at the given path. The IUser is needed for authorization.
         * @param user      IUser for checking authorisation.
         * @param resPath   Path to the KM resource.
         * @return          Requested resource as a stream.
        private InputStream getKmResource(final IUser user, final String resPath)
            throws ResourceAccessException {
            try {
                final IResourceFactory factory = ResourceFactory.getInstance();
                final RID rid = RID.getRID(resPath);
                final IResource kmResource =
                    factory.getResource(
                        rid,
                        new ResourceContext(getDeprecatedIUser(user)));
                if (kmResource == null) {
                    throw new ResourceNotFoundException(
                        "KM resource not found: " + resPath,
                        resPath);
                return kmResource.getContent().getInputStream();
            catch (WcmException e) {
                throw new ResourceAccessException("Error accessing KM resource: " + resPath, e, resPath);
    And for writing:
         * Stores a resource in the KM repository at the given path with the given name and mimetype.
         * Content is taken from the given inputstream.
         * @param user          IUser for checking authorisation.
         * @param resName   Name of the resource
         * @param resPath     Path to the resource
         * @param mimeType MimeType of the resource
         * @param inputStream  Resource content
         * @throws ResourceAccessException
        private void putKmResource(
            final IUser user,
            final String resName,
            final String resPath,
            final String mimeType,
            final InputStream inputStream)
            throws ResourceAccessException {
            try {
                final ResourceContext rContext = new ResourceContext(getDeprecatedIUser(user));
                final RID rid = RID.getRID(resPath);
                final ICollection kmCollection =
                    (ICollection) ResourceFactory.getInstance().getResource(rid, rContext);
                if (kmCollection == null) {
                    throw new ResourceNotFoundException(
                        "KM resource not found: " + resPath,
                        resPath);
                else {
                    IContent kmContent = new Content(inputStream, mimeType, -1);
                    IResource kmResource = kmCollection.createResource(resName, null, kmContent);
            catch (ResourceException e) {
                throw new ResourceAccessException("Error accessing KM resource: " + resPath, e, resPath);
            finally {
                try {
                    inputStream.close();
                catch (IOException e1) {
                    throw new ResourceAccessException("Error closing InputStream when accessing " + resPath, e1, resPath);
    Hope that helps for a start.
    Best regards,
      ok

  • Attached document for data column in BPS Web application

    Hi,
       I have created layout for a BPS application, the layout has been configured to have the ability to allow the used to create the attached documentd for the data column. when the user open the layout through the planning profile, the icon for those documents is displayed and can be open by click those icons. After we generated the Web applicatios, those icons are gone and the user can not open them any more.
      I notice that there is document subcomponent under BPS-WB, I added that subcomponent to my web layout, it still not work.Anybody know how to display the attached documents on the Web, Is this doable?

    Hi Marc,
       I did exactly what you mention in your responce e-mail, but it still not work coreectly.
    following is my propperty configuration for layout and documents:
    Planning layout (layout_lay01)
    Only ready for output: True
    Row/Cell Selection: Cell
    Event on selection: true
    Document on planning layout (Document1)
    Layout: = layout_lay01
    Only ready for output: false
    When I launch the application through the Tcode BPS_WIF0
    There is no document icon display for each data columns which can been in UPSPL. Instead there is a generic document input/display space under the lauout,however there is no any document display within the box, and I can not input anything within the document box. I changes some of the property for the layout and document, but it not work.
    Did I forget some thing?

  • How to attach or upload a document on a resource form

    Hi,
    Is there any way to attach/upload a document while creating or modifying a user.
    I have a requirement where user will create a document(.xls/.csv/.doc) with his details and he needs to upload that document while updating the profile. If he is creating the profile then this document has to be forwarded to his manager. By validating the document manger will approve the request.
    Any help on this is greatly appreciated.
    Regards,
    mahantesh

    I would suggest you go to the BPEL forum and request how to create a workflow composite with the ability to upload a document into an approval workflow.
    -Kevin

  • EMail notification - While uploading any document in portal application

    Is there is any way to send an email notification to the groups of users, while user is trying to create any sub pages / adding new document in oracle portal application?
    --Balaji                                                                                                                                                                                                                                                                                                                                                                               

    Below link helps me to configure CMEF in portal application
    http://www.oracle.com/technology/products/ias/portal/pdf/portal_cmef_bpel_integration_technote.pdf
    --Balaji S                                                                                                                                                                                                                                                                                                                                                               

  • SOA Suite 11.1.1.2: Human workflow: custom application: Attachment: getCont

    Hello,
    i am building a custom application for the human workflow component in SOA Suite 11.1.1.2.
    I am able to add attachments to the created tasks. But when i try to get the contents with the function AttachmentType.getContent(), i always receive a null pointer.
    I have looket into the database and there are the entries in a blob in the content-column of the table wfattachment. But there is the contents binary, although i put it to the task Base64Encoded.
    Can someone help me to get the contents of the attachments?
    Best regards and thanks a lot
    Friedrich

    Thank you.
    I must have changed something by accident. I would never had caught that. I reversed the changes in the WebLogic Console and all was right in the world. The app deployed correctly and the Human Task Approval Form worked flawlessly.
    I guess I do some things right. ;-)
    Steve Davies

  • Error when attaching Documents during Process Control to Submit Data

    Hi,
    In HFM 411 the user's were able to attach documents (that were earlier uploaded to Custom Documents) in the Process Control while submitting the Data. In 931 they receive an error message that says it is unable to change the review level. However tehy are able to submit the data without attaching documents.
    The security set-up seems to be fine, as the admin receives an error message as well, but this time it says "Invalid Javascript returned by the server".
    Anyone any idea?
    Thank you so much for your help.

    Hi,
    I (as administrator) manage to attach document at every step of review level process.
    Can you check that MaxNumDocAttachments and MaxDocAttachmentSize are correctly set up in the metadata (application settings).
    Besides HFM User Guide stands : "To attach or extract any custom documents to or from the server, you must be assigned the Manage Custom Documents security role."
    Hope this is helpful.
    Regards,
    Lionel.

Maybe you are looking for