Attachments in WD ABAP

Hi Experts,
I have following requirement.
1) To upload the documents using Fileupload UI element.
2) All the uploaded documents should be displayed in table as an URL link.
3) When clicking on this Link the uploaded document should be displayed.
I have completed the first and second step.
Can someone please let me know how can i go about for last step.
Also is there any Class using which i can store the uploaded file and display the file
data when user clicks on URL link.

>
Abhishek Jain wrote:
> Thanks Radhika.
>
> I have implemented the steps you mentioned and it worked.
>
> There is an another issue, i am able to view only text file correctly.
> When i upload PDF/MS word/Excel the data appears but in random text format.
> Everything i upload gets converted to text format.
>
> Is there any steps to be implemented so that i can view the same file and in same format that i have uploaded?
It sounds like somewhere along the way you are chaning from an XSTRING to a STRING field.  As long as you keep the content in its binary format (XSTRING) is should remain in tact.  We would have to know more about what you are doing to the content after it was uploaded to be able to comment further.

Similar Messages

  • Display attachments through WebDynpro Abap

    Hi all,
    I am currently working on the Generic Object Services and I manage to create attachment and retrieve them. however I can't find how to display attachments into a WebDynpro interface.
    The context:
    I have two applications which communicate with RFC:
        - The first application is the business application. It contains some RFC functions to handle data, business objects and attachments. This application is under SAP R/3 4.6.C environment and attachments are stored via GOS linked to standard transactions (VA03 / CV03 / IW53).
        - The other application is a WDA interface for the final users which calls, via RFC, the functions implemented in the first application. This application is under SAP R/3 ECC6.0 environment.
    The goal:
    I would like to implement the possibility to display some documents (PDF, DOC, XLS) stored with GOS in the first application (SAP R/3 4.6.C) via the web application (SAP R/3 ECC6.0). To do this, I will use RFC functions but I don't know the functions/methods I have to call to perform this process.
    Does someone know the information that I need? Please do not hesitate to ask me should you need further information.
    Many thanks.

    Hi.,
    For Displaying PDF use interactive form UI and bind data source to context attribute. Now set  the  downloaded data from RFC to the context attribute. It will display the PDF.,
    let the experts reply for ur query..
    Thanks & Regards
    Kiran

  • How to create attachments from an abap program?

    I have an abap report that shows material documents.
    Now by clicking on a button (at the end of each row), it should allow the user to attach a document.
    How to achieve this?
    (I tried to see the code behing the Private Objects of a document at FB03 but I could not decipher it much).
    Thanks,
    Ven..

    CONSTANTS : objtype TYPE borident-objtype VALUE 'ZGOS2'.
    DATA : manager TYPE REF TO cl_gos_manager,
           obj     TYPE borident,
           gs_lopr TYPE sibflpor.
    parameter: srlno type matnr.
    IF srlno IS NOT INITIAL.
        obj-objtype = objtype.
        obj-objkey  = srlno.
        gs_lopr-instid = srlno .
        gs_lopr-typeid = 'ZGOS2'.
        gs_lopr-catid  = 'BO'.
       AT SELECTION-SCREEN OUTPUT. 
      CREATE OBJECT manager
          EXPORTING
            is_object    = obj
            is_bc_object = gs_lopr
            IP_NO_COMMIT = 'R'      "This is commit document for that material.
          EXCEPTIONS
            OTHERS       = 1.
      ENDIF.
    try this it will work

  • Attachments from Workflow to ABAP Webdynpro launched from UWL

    Hi All,
    You might have seen a recent post from me for sending attachments from ABAP Webdynpro to Workflow.
    I could do that by just calling SAP_WAPI_ATTACHMENT_ADD. I didnt have to create an instance of the SOFM object
    by passing the ATT_ID from this function module.
    Now the next task of the workflow which is sent to UWL, automatically carries the attachements in the Workitem.
    I didnt do binding from workflow container to Task container. (I dont know how!!)
    But I need to get those attachments on my ABAP Webdynpro after it is launched from UWL.
    For this I am using SAP_WAPI_GET_ATTACHEMENTS. But this FM is giving me the BOR reference.
    How do use this to get the attachments displayed on my Webdynpro as links?
    Thanks
    Deb

    Hi Debabra,
    I have similar requirement where I want to add new attachment from Webdynpro abap to workflow and again next level want to view it in UWL in another Webdynpro abap from workflow.
    I am trying to attach the document from Webdynpro to Workflow I used FM SAP_WAPI_ATTACHMENT_ADD and looks like it attached in workflow.
    Can you please tell  how the second part was solved where I want to attach document from workflow to Webdynpro abap
    Thanks,
    ST

  • Query on ABAP List Viewer and Table Control?

    Hi all,
    I was trying to solve the exercises in these areas....but was unable to do as some of the concepts were not clear to me as I'm new to this field.
    So Can any one help me out in giving me the Notes or attachments on the ABAP List Viewer(A.L.V.) and Table Control.
    My ID: [email protected]
    Waiting for a reply...
    A New Entrant in ABAP.
    Message was edited by:
            saikumar b

    Hi saikumar,
    I just start to work with Abap too. All links i Know:
    http://www.erpgenie.com/abap/controls/alvgrid.htm
    http://www.abapfans.hpg.ig.com.br/links.htm
    http://abap4.tripod.com/index..html
    http://paginas.terra.com.br/educacao/abap/
    http://www.sdn.sap.com/
    http://www.sap-img.com/
    http://www.planetsap.com/Tips_and_Tricks.htm
    http://www.abap4.com.br/
    http://www.erpgenie.com/sap/abap/index.htm
    Good lucky

  • Incoming Image file with XML payload processing

    Hi,
    We have PI 7.1 and the interface is from file to standard RFC scenario with ABAP proxy in ECC.
    2 incoming files need to be processed by the interface - xml file with transaction details and the corresponding Image file.
    These files have to be mapped to the standard RFC and then pushed into ECC.
    Can the Java mapping be used in message mapping to pass the image file in the RFC as I do not want to use the Java module?
    If yes, can someone please help with the code and the mapping aspects?
    Regards,

    Abhishek,
    Though I never worked with server proxy with attachments,
    In my opinio, when it is possible to send attachments from outbound ABAP proxy,  then logically it should be possible to read attachments in the inbound proxies.
    I just saw this link in forum,
    [Re: Inbound proxy with attachments.|Re: Inbound proxy with attachments.]
    Regards,
    Praveen Gujjeti.
    Edited by: Praveen Gujjeti on Apr 8, 2010 5:25 PM

  • Reg : F4 Value Help

    Hi Experts,
                    I am new to web dynpro abap. My scenario is to implement F4 value help. I had searched in the forum, But mostly i got the solution for OVS. For eg, I have to  display the key and text value of the country. I am going to call a RFC to get the key and text of the country. Could anyone please help me to implement this as step by step procedure. Thanks in advance..
    Regards,
    Mugundhan

    Hello,
    Please see the following material for reference:
    [ABAP Dictionary Search Help|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2fhelp%2fsdn_help_nw04s%2fsaphelp_nw04s%2fhelpdata%2fen%2f3d%2fe53642e2a3ab04e10000000a1550b0%2fcontent.htm]
    [Using Search help attachments for WebDynpro ABAP|https://wiki.sdn.sap.com/wiki/x/v4LWAw]
    [ABAP WD Object Value Selector(OVS)|https://wiki.sdn.sap.com/wiki/x/vBkB]
    Regards.

  • How can I print PDF attachments from ABAP report in transaction ME23N?

    Hi,
    Users attach PDF files using "services for objects" in transaction ME23N.
    How can I print the PDF attachments from ABAP report ?
    Thanks in advance,,

    Hi,
      check this link,this might help you to solve your problem
    /people/thomas.jung3/blog/2005/04/28/setting-up-an-adobe-writer-for-abap-output
    Regards
    Kiran Sure

  • GOS Attachments Display URL in WD ABAP

    HI,
      We have to display the GOS attachments list in the the WD ABAP application. Unfortunately the class and Function module which can do that are not working in the WD ABAP application. Like CL_GOS_DOCUMENT_SERVICE...
      Any thoughts?
    Thanks
    Raghav

    hi Kumar,
    Please go through this...
    GOS and FileUpload UiElement
    Global object Services ( GOS ) in WD4A
    Attachement Details (GOS) in Web Dynpro (ABAP)
    cheers,
    Kris.

  • Webservice in ABAP using Attachments

    Hi,
    as far is I was able to find similar questions it seems that Abap is not supporting attachments for webservices (at least not for 6.20 or 6.40).
    I want to send a file (e.g. Pdf, Wrd) with a webservice but when I try to create a rfc enabled function i am not allowed to use a STRING or XSTRING in a table parameter. I need to have a table because there could more than one files to send.
    Is there a better way to do that than cutting the file into a char type with a defined lenght and fill a table and rebuild it on the receiver side?
    Thanks,
    Christoph

    Rather than using a TABLES parameter, use IMPORTING / EXPORTNIG / CHANGING parameters using a table type.
    You can then use type STRINGTAB - a table of strings.
    Michael

  • Attachments via ABAP Proxy

    I have come across one client requirment where he needs to send the txt/pdf file as an attachment from R/3, currently that interface is using the ABAP Proxy, is there any idea about How to send the attachments via ABAP Proxy?

    Hi,
    Refer
    XI: RFC or ABAP Proxy ? ....ABAP Proxies with attachments
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    Problem sending xls file in an attachment via ABAP proxy
    Receive mail with PDF attachment into XI and send to ABAP proxy
    http://help.sap.com/saphelp_nw70/helpdata/en/51/d5cd16235e4643ae8ec92395c4ad97/frameset.htm
    Thanks
    Swarup

  • Webdynpro abap to workflow attachments

    Hi gurus,
    I have opened same meaasge in workflow forum also since I was not sure which will be more helpful.
    I added  the attachment to workflow using the following code from my webdynpro abap application:
    DATA: lv_xstring TYPE xstring,
            att_id TYPE swr_att_id,
            ls_msg_ln TYPE TABLE OF swr_messag,
            ls_msg_str TYPE TABLE OF swr_mstruc,
            lv_objkey TYPE swr_att_doc_id,
             ls_header             TYPE swr_att_header.
      lv_xstring = lv_file.
      ls_header-file_type      = 'B'.
      ls_header-file_name      = 'Attachment'.
      ls_header-language       = sy-langu.
      CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
        EXPORTING
          workitem_id          = lv_wi_id
          att_header           = ls_header
         att_bin              = lv_xstring
         do_commit            = 'X'
       IMPORTING
         return_code          = rc
         att_id               = att_id
    TABLES
       message_lines        = ls_msg_ln
       message_struct       = ls_msg_str .
    I see the attachments in the workitem but am unable to open the attachment.
    Another question is how can I show the same documents in another webdynpro application as attachments.
    Thanks,
    ST

    used the standard webdynpro component WDK_POWL_WF_DETAIL and it has whatever was needed for attachments.
    Thanks,
    St

  • Adding attachments to workflow from Web Dynpro ABAP Application program.

    Hi,
    workflow is supposed to start by a Web Dynpro ABAP Application.
    The user can attach files to it.
    A superior is supposed to review the files and either approve or reject the request.
    I tried the following in Web Ddynpro ABAP:
    CALL FUNCTION 'EWW_WORKFLOW_START'
    EXPORTING
    X_TASK = 'WS90000074'
    IMPORTING
    Y_WORKFLOW_ID = lv_WF_ID
    TABLES
    X_CONTAINER = lv_IT_CONTAINER
    EXCEPTIONS
    then followed by:
    CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
    EXPORTING
    WORKITEM_ID = lv_wf_id
    ATT_HEADER = lv_swr_att_header
    ATT_BIN = Item_FILENAMEATTACHED
    DOCUMENT_OWNER = SY-UNAME
    LANGUAGE = SY-LANGU
    IMPORTING
    ATT_ID = lv_swr_att_id
    The Workflow has only one user decision step and one notification Step.
    In the user decision step, there is a binding from ATTACHOBJECTS to the task.
    But, in the log, you can see the attachment in the Workflow Container of the workflow instance, but you don't see it in the task (neither Inbox nor UWL)
    I have checked the binding it is correct. I am getting the attachment in workflow container in '_attach_objects' element. but this attachment has to go to the user decision step, so I am binding the '_attach_objects' of workflow container to '_attach_objects' of user decision step. But the attachment was not going to user decision step.
    Could you please let me know where am i doing wrong?
    Thanks,
    V.Nagaraju

    @Ruslim Chang 
       Sorry to point out but the FM will return the Workitem ID only so there is no problem with the LV_WF_ID variable.
    @vundralla nagaraju
    Instead of making binding between attachobjects make binding between
    WiGroup_ID <---- attachobjects
    and then on the next step you try to make biniding in the user decision step by using WiGroup_ID.I think it should work.

  • How to upload and store attachments to an object in ABAP Webdynpro ?

    Hi all,
    I would like to upload file attachments of various types to a document within SAP (in this case Expense Reports), using Webdynpro ie. The attachment belongs to a particular expense report.  So each document , whether Word, Text, Bitmap etc. would be accessible thereafter by an Expense Report number.
    In SAPGUI, we have the powerful function module GOS_ATTACHMENT_LIST_POPUP which takes a user-defined object key to create and change documents. 
    I'm trying to find an equivalent interface for this in WDynpro. I looked at the component WDK_POWL_WF_DETAIL, but this seems to be suited to Workflow. Can anyone out there give some further tips or examples around this ?
    Regards,
    Gabriel

    Upload using the com.oreilly.servlets package- I don't recall the exact method for using this but it is pretty easy.
    Check the file size and type on upload. Only accept gifs and jpgs smaller than 50k (standard for web- go above this if you like but will take time to download and possibly annoy users.)
    Use AWT to create standard size thumbnails of the pictures or to standardize them so they will fit on the page properly.
    Write the images to the requisite directory. I would suggest giving them a name which matches them directly with the record id number (such as catalogueitem1.jpg) or submit the image name to the database.
    If you are serving on Unix you will need Xvfb or something like it running on your server for AWT to work.
    To display it just take the value from the database and add it to the filename, e.g. :
    <img src="/catalogue/catalogueitem<%=databaseid%>.jpg">
    I'm afraid the code I do this with at the moment is very poor and you will do a lot better with a little research into the topic than trying to follow what I have written.

  • ABAP Proxy Attachments

    Hi All,
    We have an ABAP proxy that calls the function module BBP_PD_SC_CREATE and creates a ShopppingCart from an external XML file sent via HTTP post. We would now like to expand this by accepting messages and passing these into the ABAP proxy and on to SRM.
    Does anyone have any code samples or information on doing this?  Looking at the existing SAP Invoice Proxy we found some information on the form "map_attachment_in" which uses the method lo_attachment_prot->get_attachments.
    regards

    in such a case you have to extend BBP_PD_SC_CREATE .
    create a z wrapper RFC FM for BBP_PD_SC_CREATE  with additional parameter to take in attachment details (may be a xstring field to receive the file content) and create a proxy out of this zfm . you can write the code within this zfm, to create the shopping cart using BBP_PD_SC_CREATE  and then the code attachment.
    Regarding the code for attachment, do you want to store them in Business Document System of SAP - (BDS) or is it somewhere else?
    Raja

Maybe you are looking for

  • Right way to manage ADF Library Dependencies

    Hi, I am working on an application where we are trying to components in individual Libraries for re-usability and logical grouping. These jar files are then imported into parent projects which can result in different levels of dependency hierarchies.

  • 720p24 to 1080i60 - best workflow?

    Hello all - long time no type... I have a long-form program that has been edited in DVCPRO HD 720p24 (23.98). I am getting ready to master this thing to D5. I have access to a Blackmagic Multibridge Eclipse, as well as a Decklink Extreme HD, and an I

  • PayloadZipBean for nested zip files

    Hi, My scenario is file (zip) to file (unzip). Zip file contains one parent folder, parent folder has 6 nested folders and each folder contains 12 files. (all the 12 files are .jpg and .tif files). Few folders contains the same file as well, like A00

  • IPod Radio Issues

    I have the latest iPod software on my 30GB video, but I do not have the radio...I go into settings > main menu > Radio > on but it does not show up in the menu, and I can't access it. I have reset and restored my iPod however it still won't show up.

  • Unable to insert into table of PointBase database

    Hi, I have written one sample application which uses PointBase of JSC. It was working fine but now while trying to insert a record into table I am getting this exception javax.faces.el.EvaluationException: javax.faces.FacesException: java.sql.SQLExce