Document attachment in SAP

Hello Everybody ,
We are hainvg SAP on DB2 and AS/400
I have a quesetion regarding attachmenet done in SAP .
1. Where the documents are stored in SAP ?
2. Are all documents are stored in single file or database table ?
3. How can we delete them ?
Thanks in Advance .
Dhaval Raje

Hi Dhaval,
Have a look at SAP Note 530792 (Storing documents in the generic object services).  It describes where documents are stored when stored in the database by Generic Object Services (GOS).  SAP Note 491271 (Authorizations for generic object services) describes how to control authority to storing documents in the database. 
Your SAP license includes the SAP Content Server so you have the ability to store attachments in an external system without much additional cost.  The downside of the SAP Content Server is that it doesn't run on OS/400 so you have to have a Windows or *nix server in your landscape.  Backup coordination also becomes an issue when you store the documents on a separate server.  We FTP the Content Server backup file to the iSeries so it is included on our iSeries backup.  This allows us to keep documents out of the operational database, but provides us with a common backup for recovery purposes.  We're currently running the SAP Content Server on Windows, but may consider a Linux partition in the future.
HTH,
Stan

Similar Messages

  • How to print documents that attached to SAP FI document?

    Hi,
    Is there a program or function module to print documents that have been attached to SAP FI documents?
    I have requirements to develop functionality to print attached documents.
    Thanks in adavance,
    Mike

    You can do an advanced find on 'Notes' where 'Is Document' is Yes. You won't be able to see the actual attachment in the results obviously, but you can add information like file name etc and then open them up to see the actual document.
    Hope that helps
    Paul
    If my response helped you find your answer please show your thanks by taking the time to "Mark As Answer" and "Vote As Helpful".

  • Insert document attached located in sap server(=legacy syst)

    Hello,
    I wish to program an interface to insert document attached (in particular : the pictures) in the Crm product in a specified repertory. (transaction : “COMMPR01”, tab : « Document »)
    I found and tested methods CL_CRM_DOCUMENTS-CREATE_WITH_FILE
    To create, the picture (if there is located in my computer = presentation server) is well inserted into the article (parameter business object)in the repertory desired (parameter: parent_folder) but I have a problem.
    => I want to insert pictures which are located in MY SAP SERVER. (in MY LEGACY SYSTEM) (/usr/sap/filein..)
    I have the same problem with the function FM : COM_PROD_MATERIAL_MAINTAIN_API
    By advance, thank you for your assistance.
    Kind regards,
    Greetings,
    Servane Coppalle

    Hi Coppalle,
    I am trying to use CL_CRM_DOCUMENTS-CREATE_WITH_FILE to upload the image from presentation server, Can you please suggest me what all parameter and what value i have to pass to execute this method.
    I am trying to get it done but i am not getting the result.
    Thanks in Advance.
    Regards,
    Manoj Tiwari

  • Programmatically Attach a Document To a SAP Document

    Hi Experts,
    We would like to be able to automatically attach supporting documentation to a SAP document via our SAP content server so that the user do not have to open SAP. Is there any BAPI or RFC that would help us do that? If not, how would you approach this?
    Thanks
    Martin

    There are more than one ways to do this.
    You can use, BAPI_DOCUMENT_CREATE2 & pass following parameters to it:
    DOCUMENTYPE
    DOCUMENTNUMBER
    DOCUMENTVERSION
    DOCUMENTPART
    USERNAME
    STATUSEXTERN
    STATUSINTERN
    CADINDICATOR
    CREATEDATE
    Please refer Problem with BAPI_DOCUMENT_CREATE2 for more details
    Other way of achieving this is, use LSMW
    I hope this is useful for you.
    Regards
    Amaresh Makal

  • Create External document (URL) in SAP Personas

    Hi Smart People!
    To save some steps and incorporate a scanner I am working on creating buttons to "Attach Documents" in different areas such as MM03, FB03, and a few others where we have to keep a scanned in document attached to certain other Materials or Payables and such. All docs are scanned in and saved online and then we use the "create external document (url) menu option to link it where it is needed in SAP.
    In one place it works just fine and in the others it is not working at all and custom button or even just following the already existing menu options it keeps giving me this error. I tried search on the SCN and Google and no such luck on this error. Anyone have any ideas? See pic below and also the text below is the separated error so you can see what it actually says.
    [Unknown] ses[0]/wnd[0]/usrUSRAREA/ctlcntITS/itsdoc
    Thank you for any help you can give!

    That screen shot is for the Silverlight browser plugin.
    You can check your Personas version and patch level in System -> Status. Clicking on the magnifying glass in the SAP System Data box will list all the components of the ERP system. It will tell you what Personas version and SP is installed.
    Something like this:
    The above means Personas 2.0 SP2.
    If you indeed happen to have Personas 2.0 with no support package (so SP level says 0000), then the first thing I'd recommend is to bring the system to the latest level, which would be like in the screen shot, and then trying again. There is a good chance the problem will be resolved.
    If your system is completely up-to-date and it still gives you trouble, then create an OSS incident.

  • Office 2007 Document Attaching in Solution Manager

    Dear Gurus,
    When document attaching in Solution Manager 7.01, the system does not support Microsoft Office 2007 formats. (docx, xlsx) Are there any customizing for this topic?
    Thank you,

    Hi,
    Thanks, in lieu with your detailed system message, please try with this
    The warning is because the file extension docx is not known for the
    system. All the known extension is defined in table SDOKMIME by standard
    . And customer can extend it in table SDOKMIME_C.
    Actually that is only a warning message, which will not block the
    following up processing. The docx file will be attached if you click on
    the green tick. And the file can be previewed and checked later on.
    If you would like to get rid of this warning anyway, you may extend the
    customer table using the following step:
    -spro->SAP Customizing Implementation Guide
    ->SAP NetWeaver->Knowledge Management
    ->Settings in the Knowledge Warehouse System
    ->Document Management Service
    ->Define MIME Type for File Name Extension
    -add an entry like
    File name extension = docx
    MIME type of a Web object = application/vnd.openxmlformats
    After everything has been done as above, please retry to attach, it should help.
    Cheers,
    sh

  • New DMS document attachment to order header - can it also be done to a task list?

    With business function LOG_EAM_CI_6, you can now attach DMS documents to the order header or operation level in the 'Additional Data' tab.
    Since a lot of clients use documents to list complex preventive maintenance instructions, is it also possible to attach a DMS document to a task list header (or operation) and have it show up in the new 'Additional Data' screen area of the resulting order (using a maintenance item/plan to generate the order)?  Or do we still have to use the task list operation PRT functionality and have it show up in the order's operation PRT?

    Hi Arthur,
    I have configured Task list as per the SAP note 1821916  & activated DOC_TL_GUI. This allowed me to attach documents to the Operation &/or Header of the Task Lists. The problem I am facing is when I assign the task list to the work order the documents are not transferred . You have stated that they have transferred to the work order so I am wondering if there is something I missed.
    Arthur Balajthy wrote:
    And I checked that by adding documents to a task list header or operation, the work order generated from a maintenance plan/item referencing that task list does have those documents attached also.
    I haven't tried from a Plan but will do that now.
    I assumed if they were attached to the Task List Operation they would transfer to the Work Order like everything else on the Task List
    Thanks in advance

  • 'BAPI_DOCUMENT_CREATE2': store attachment using 'SAP-SYSTEM'

    while i am checkin a document (attachment) using storage category KPRO ,the document is getting stored but when i use SAP-SYSTEM the Document is not getting stored. How can I get it stored using 'SAP-SYSTEM'
    Following is the code;
    DATA:
    lv_docnum TYPE bapi_doc_aux-docnumber,
    lw_docdata TYPE bapi_doc_draw2,
    lw_return TYPE bapiret2,
    lw_dsp TYPE bapi_doc_drat,
    lw_objlink TYPE bapi_doc_drad,
    lw_docfile TYPE bapi_doc_files2,
    lt_dsp TYPE STANDARD TABLE OF bapi_doc_drat,
    lt_objlink TYPE STANDARD TABLE OF bapi_doc_drad,
    lt_docfile TYPE STANDARD TABLE OF bapi_doc_files2.
    START-OF-SELECTION.
    *CALL 'SAPCORE' ID 'ID' FIELD 'VERSION'
    ID 'TABLE' FIELD kernel_version-sys*.
    *READ TABLE kernel_version INDEX 11.
    *w_hostname = kernel_version-data.
      CLEAR lw_docdata.
      lw_docdata-documenttype = 'ZAP'.
      lw_docdata-documentversion = 'A0'.
      lw_docdata-documentpart = '000'.
      lw_docdata-laboratory = '001'.
      CLEAR lw_dsp.
      lw_dsp-description = 'Test created by xyz'.
      lw_dsp-language = 'E'.
      APPEND lw_dsp TO lt_dsp.
      lw_docfile-docfile = 'C:\test.pdf'.
       lw_docfile-docpath = 'C:\test.pdf'.
    LW_DOCFILE-ORIGINALTYPE = '1'.
      lw_docfile-storagecategory = 'SAP-SYSTEM'.
    lw_docfile-storagecategory = 'DMS_C1_ST'.
      lw_docfile-wsapplication = 'PDF'.
      lw_docfile-language = 'E'.
      lw_docfile-checkedin = ' '.
    lw_docfile-checkedin = 'X'.
      lw_docfile-active_version = 'X'.
      APPEND lw_docfile TO lt_docfile.
      CLEAR lw_objlink.
      lw_objlink-objecttype = 'VBAP'.
      lw_objlink-objectkey = '0040011233000010'.
      lw_objlink-documentdirection = 'X'.
      APPEND lw_objlink TO lt_objlink.
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
          documentdata         = lw_docdata
    pf_ftp_dest = 'SAPFTPA'
    pf_http_dest = 'SAPHTTPA'
        IMPORTING
          documentnumber       = lv_docnum
          return               = lw_return
        TABLES
          documentdescriptions = lt_dsp
          objectlinks          = lt_objlink
          documentfiles        = lt_docfile.
      IF lw_return-type CA 'EA'.
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
        MESSAGE ID lw_return-id
        TYPE lw_return-type
        NUMBER lw_return-number.
      ELSE.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
        CLEAR lw_return.
        CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
          EXPORTING
            documenttype    = 'ZAP'
            documentnumber  = lv_docnum
            documentpart    = '000'
            documentversion = 'A0'
          IMPORTING
            return          = lw_return
          TABLES
            documentfiles   = lt_docfile.
        IF lw_return-type CA 'EA'.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          MESSAGE ID lw_return-id
          TYPE lw_return-type
          NUMBER lw_return-number.
        ELSE.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
        WRITE: / 'document number = ', lv_docnum.
        ENDIF.
      ENDIF.

    Hi,
    based on the posted coding I think that the reason for this behavior is that the used document type has set the flag 'Use KPRO' in transaction DC10. Because the storage category 'SAP-SYSTEM' is not a KPRO storage category like DMS_C1_ST. So if this flag is set in the customer then only originals checked in to a KPRO storage category are displayed. Without this flag the originals in "older" storage categories are displayed (e.g. SAP-SYSTEM, archive,...).
    Regarding the limitation of 2 originals per document info record, I can inform you that this is a standard restriction of you do not
    check in your originals to a KPRO. With the KPRO storage there is no such limitation.
    Generally I'm asking myself why you are using the BAPI_DOCUMENT_CREATE2 and then also the CHECKIN BAPI. Because you can enter the original data also at the CREATE2 BAPI. If you want to checkin files to the KPRO then the filedata has to be
    handed over in table DOCUMENTFILES. If you want to check in originals to SAP-SYSTEM then the data has to be entered in table DOCUMENTDATA. For further information please see SAP note 766277 which has a complete BAPI documentation added in its attachment area.
    Best regards,
    Christoph

  • Content server for Document attachment through "services for object" Icon.

    Guys,
    I have typical problem in installation of Content server for storing external documents.
    We all know that we can attach the document in SAP using the icon “SERVICES FOR OBJECT”. By this we can attach the document to the specific object we want.
    -Since my client wants only document attachment method not to completely implement SAP DMS, I proposed this method of attaching documents through services for object method.
    -If documents are stored though services for object ,The attached document will directly get stored in sap database(correct me if I am wrong) while  in  DMS it ask you to select the storage location while u check in for any document
    -By storing the doc thru "services for object " For long run when we store the documents in sap database our system will drastically get slow down.
    -In this regard I have a plan to incorporate external storage server.
    -Now I should know that how I should customize content server configuration so that the attachment through services for object will store into this content server I need to know how to define Client, Content Category, Content Repository, Document Area, Physical Machine, IP Address, Port. (OACT & OAC0)
    I appreciate for immediate solution and <u><b>Points will be rewarded for sure.</b></u>
    Regards,
    Murali.S

    Hi Murali,
    Don't Worry, its possible,
    All attachments can be stored in SAP Content Server also, but through archiving process.
    Set up a database storage system.
    Preparation
    Make sure that the HTTP plugin is active.
    Transaction <b>SMICM,</b> "Display Services" function key (shift F1)). The list of services must contain a port other than 0 for HTTP.If not, you must adjust the relevant profile parameter.
    <u>Typical entry:</u>
    icm/server_port_0         PROT=HTTP, PORT=1080, TIMEOUT=900
    <b>Make sure that the /sap/bc/contentserver service is active.</b>
    If no user is defined, then use transaction SU01 to create a new user. Use the "System" user type.Assign
    the SAP_ALL and SAP_NEW profiles to the user. (Eg: HRUSER/PLMUSER/PPUSER etc)
    Transaction <b>SICF,</b> select: default_host - sap - bc -contentserver. Select the function to display/change the service. Make sure that a user is defined.
    Using the relevant data from the newly created user, maintain the anonymous logon data for the
    /default_host/sap/bc/ service and save & activate the changes in transaction <b>SICF</b>.  Double click on content server and give the user name which has been created (HRUSER/PLMUSER/PPUSER/MMUSER etc)
    Check the system PSE.
    Start transaction <b>STRUST</b>. Expand the system PSE. The system PSE must be "green" for each application
    server.
    Determine a suitable exchange directory.
    The exchange directory must be accessible from each application server. If all application servers are running on the same platform (for example, Windows), one network directory that is accessible on all application server (for example,
    server\share) is sufficient. You can generally use the global directory
    (profile parameter DIR_GLOBAL).You can use the RSPARAM report to determine the profile parameters.
    Setting up the storage
    Create a table for storing the data. Using transaction <b>SE11</b>, create a copy of the SDOKCONT1
    table. If you want to create the repository database, you can name the table ZCONT_DB, for example. Save the
    table as a local object. Activate the table.
    Create a repository.
    Use transaction <b>OAC0</b> to create a new repository.
    Use the following parameters:
    Repository Max. two characters, for example,” Z1”
    DocArea: ARCHLINK
    Storage type: R/3 database
    Storage subtype: normal
    Version no. : 0046 
    Contents table <table name> for example: ZCONT_DB
    Exchange directory <directory name> for example:
    server\share\
    Make sure that the exchange list ends with a \ (or /on Unix).If you are using a variety of platforms, you must use transaction FILE to define a suitable logical file name and use this name. Save the settings.
    1. Maintain view table <b>TOAAR_C</b>, via SM31
       Cross client table displayed as information, forget it
    2. In field 'StSytm' you must entered 'Z1' as your system need, or anything that you need but you must configure HR Archive link too.
    3. In field 'Arch.path' (direct above Spoolpath), entered path in your system, this real path in your operating system. May be you should confirm to your Basis consultant where exactly you could store picture files. So if you enter '/', your file exists at root directory at your UNIX system.
    4. Choose 'File store' radio button
    5. Save.
    First
    <b>1. You have to create a number range for SAP ArchiveLink.
        IMG: Basis Components-> Basis Services -> SAP ArchiveLink -> Basic Settings-> Maintain number ranges   
        (Trxn <b>OANR).</b> Create number range 01 from 0000000001 to 9999999999 without the external number flag. 
    2. Document type <b>HRICOLFOTO</b> must exist with document class JPG.
        IMG: Basis Components->Basis Services->SAP ArchiveLink->System Settings->Maintain document types
        (Table<b> TOAVE, Trxn OAC2).</b>
    3. Document type <b>HRICOLFOTO</b> must be linked to object type PREL and Infotype PA0002.
        IMG: Personnel Management->Personnel Administration->Tools->Optical archiving->Set up Optical Archiving
        in HR.  (View V_T585O, no Trxn). In the first two columns there are minuses, the third (Date) has
       a plus - don't put a flag in the check box.
    4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object type  
        PREL. IMG: <b>Basis Components->Basis Services->SAP ArchiveLink->Basic Settings->Maintain Links (Table 
       TOAOM_C, Trxn).</b></b>
    Test
    • Test the repository.
    Use transaction SE38 to start the RSCMSTH0 report. Specify your repository (i.e. Z1) and start the test.
    The report must run without errors. If no problems occurred, you can use the new repository with Archive Link after you carry out the Archive Link Customizing. If problems do occur, check whether one of the related
    notes helps.
    For More Details :
    http://service.sap.com/archivelink.
    <u><b>
    NOTE:- Screen Shots are missing, i was not able to paste here, One more thing is we did this for uploading a PHOTOS into Content Server, Similarly you have to create a REPOSITORY and Z-TABLE to bring all the Attachments from all the selected Objects and then route them to the CONTENT REPOSITORY.</b></u>
    Your Senior ABAP guy would help you in this, if not i may try to help you more by monday.
    Regards
    Rehman
    <b>Reward Your Points if Satisfied.</b>

  • Print word document attached to an order

    my requirement is to print the sap script for the PM order and as well as word documents attached to the order.
    for an order, for an operations when PRT tools selected
    word documents attached to it.
    i need to print those word douments attached to PRT tools for an oparation.
    pgm used is RIPRJT00
    form PM_COMMON
    i am able to oepn the documents attached to the order in PRINT PREVIEW.
    when choosing print option it goes to update termination
    Ajay

    In order to save any type of document on your phone you need to have an app that supports that form of document.
    There are several word processing apps but I prefer Pages.  Buy this app. Once it is on your phone you can tap the Word document in your email to view it then tap the Share icon and Open in Pages.
    If you edit the document and email it you will have the choice to send it as a Pages document, a Word document or a PDF file.

  • Print Preview of 'Document' attached to a PR/PO, Sale Order line item

    Is there a BADI/BAPI involved in 'Print Preview of Document attached to a PR/PO, Sale Order line item'. When I select a line item in PO for which a DIR is attached, it doesn't display the files content in the Print Preview.
    Q:) Is the system supposed to display the 'Original file' content attached to a DIR in the Print Preview Or is this the standard behavior that system won't display attached DIR - file content.
    Please advise.
    -Thanks

    Hi,
    unfortunately I have to inform you that from DMS point of view such a 'file preview' function is not available in the standard of the R/3 system.
    If you want to raise a development request at SAP please see the SAP note 11 for further information.
    Best regards,
    Christoph

  • Document Attachement to PO

    Whenever  a PO output gets triggered the document attachement in the PO also should go along the PO to the vendor.
    Is this function possible with the standard SAP settings

    It is currently not possible to send attached documents in a purchase
    order for email or SAPmail. The technical reason is: During the output,
    the form (e.g. MEDRUCK) is already handelled as an attachment. Therfore,
    it is not possible to attach documents together with the form.
    You could send a purchase order (PO) document via email "external send"
    as body text or to convert this PO as PDF attachement. To add aditionnal
    attachements in the same mail is not supported from the application.
    Therefore, for manual use, you could send the external mail to your
    mailbox and add any attachements before sending the email.

  • Document attaching with Procurement document and Invoicing also

    Hello Experts,
    The query is to attach document with PR/PO, Invoice etc.We don't have DMS implemented in our system and we don't want to save these documents in SAP . The aim is that the attachment should be attached to these documents but is should be saved in a repository outside SAP because these attachments contain >70 pages (>100 sometimes in case on Invoicing). How can we achieve it?
    We have .Net and SharePoint in place. Can we use them for this purpose?
    Or if there is some other workaround to achieve the same.
    Thanks for four valuable suggestions.
    Saurabh

    Thanks for your response Jurgen.
    Though I have marked the discussion as answered yet I got few more points to ask from you,hope you understand that:
    Firstly,during document attachment ,can we disable option for 'Create attachment' and keep the option for URL enabled?Please suggest me the way for it..
    Also,perhaps in MM all transactions will not provide the options for linking document with URL or create attachment options,wherever necessary . Then which is the preferred way to deal with such transactions?
    Secondly, If I attach a document with this way (screen shot) then source and destination remains the same as shown below:
    Now, my query is " Is that possible the document is saved under a separate directory (like L drive) instead of the path shown in the screen shot (source and destination are same, I want a default store location with this where all such document will get stored). I hope you got what I am looking for..
    Thanks & regards
    Saurabh

  • Document attachment

    Hi,
    I am working with document attachment (DMS), Here I am facing the problem. The Document available at one PC. Create document In SAP and attached in material master.
    SAP system finds the document in same System and did not find in other system. Because document is not available in other system.
    Pl help me for find the document in all SAP system .What are the configuration need for that and where store the original document in SAP for all SAP user.

    What do you mean for "all" systems?  Are you referring to multuple clients?  Multiple instances of SAP?
    If you made the proper attachment in DMS the document should be available to everyone.  If you just made a link or reference to a document, it must be on computer system available to the network like a network file server.
    Craig

  • DMS Document Attachment for Z Transactions

    Dear All,
    I have a Z transaction ( Module Pool ) , its getting used for some customer business process which is not mapped in sap. now my user requirement is that he wants to attach some documents ( diff types ) to that ztransaction like DMS functionality for normal business transactions.
    Please help me to achieve this..
    Regards
    Gee

    What do you mean by DMS type document attachment to the t-code powered by a Z-program? Can you elaborate on the requirement?
    What type of module pool is this? Are you trying to build a report using it?

Maybe you are looking for