DMS document attachment with Incoming Invoice

Hi All,
We are creating one DMS document and want to attach it to an Incoming Invoice (MIRO).
We are using the bapi BAPI_DOCUMENT_CREATE.  What are the fields to pass in Objectlink.
Please help us to achieving it.
Thanks

We have created an Incoming Invoice already using 'BAPI_INCOMINGINVOICE_CREATE'. We are now creating a DMS document using 'BAPI_DOCUMENT_CREATE' and want it to be linked to the existing Invoice. For this we are trying to use the 'OBJECTLINKS' table.
The linked document should be visible in T-Code FBL1N. Can you please throw some light on how to do this?
Edited by: Himansu.P on Jun 14, 2011 3:06 PM

Similar Messages

  • 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

  • BAPI for attachment to incoming invoice

    Hello,
    I am creating documents for incoming invoices with an RFC that uses BAPI_INCOMINGINVOICE_CREATE. I also want to attach an external file to the document created. Is it possible to achieve this with a BAPI or an fm?
    Thanks in advance,
    Ali

    Hi,
    I am giving a brief about the flow you should follow.
    PERFORM file_upload USING p_file.  (This is the perform in which you will upload your file with the business object of the document, document key, archiv type, the local path of attachment etc...)
      PERFORM validate_file.   ( This is to validate your entries from the file)
      PERFORM bo_existence_check. (This is to check the the existence check of the business object and document key in the system)
    LOOP AT gt_upload_file INTO gs_upload_file.  (This is looping through the file for each entry i.e. each document)
          PERFORM upload_attachment. ( This is to upload scanned attachment to optical archiv drive)
    Use FM SCMS_AO_FILE_PUT_FE for uploading the file
           PERFORM link_archiv.  (This is to link the uploaded document in archiv drive with the document in SAP system)
    USE FM ARCHIV_CONNECTIONTABLE_INSERT  for linking the document and attachment.
    ENDLOOP.
    Let me know if you find it useful.
    Thanks and Regards,
    Kiran Mohan

  • DMS document attachment to Service Entry sheet

    Hi All,
    One requirement, need to attach DMS document with Service entry sheet (t-code ML81N), any possibilites with object linking as in standard there is no object linking (ESSR object) available.
    Thank You,
    Manoj

    hi,
    1. I think u could use services for objects is the best way to fulfil requirement.
    note: a. If u want to use ESSR as business document. u need to go for Archive linking and store document as business
                  document in Services for objects.
    2. If u going to use standard object linking from DMS for 'ESSR' object so for not exist.
        Note:reason is not required any DMS object linking here as i guess. Coz u will be creating Entry sheet agianst Purchase
                orders and vendors too.
                 IN PLM, u can maintain DIR in purchase order or u can maintain in vendor masters. any how u r filling WBS nor also in
                 basic data sheeet of ML81N.
                 So datacan be easily tracable due to all are interconnected each other.
    3. If u want to use ESSR as object link from DMS u need go for development. but this is not required as i guess.
    Benakaraj
    ??P

  • DMS document attached to PO

    Hi,
    DMS document is attached to PO .The requirement is that the attachment should be outputted with PO to the vendor.
    Also ,I am able to see the attachment in ME 22/ME 23 but unable to see in ME22N/ ME23N.
    Please advice.
    Regards,
    Pratap

    Hello,
    In standard system, It is not possible to print attachment via the message output. Please refer Question 30 of attached
    note 457497.
    457497 FAQ: Message processing in purchasing
    "Can documents that are linked to a purchase order also be output in the message output? " And the answer is: No."
    There is no posibility to print attached documents from ME9F. Printing the PO from ME9F and print the document from ME22N by
    selecting the document and pressing print button. You will only be able to see the screen linked documents when an item in the po (or position) has been selected.
    Regards,

  • 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

  • DMS Document relationship with company code

    Hi All,
    I have to delete all DMS Documents for Document Type AAA and company code 8200. I am not able to find relationship between Document info records and company code in table level so can you please guide me How to get the relationship.
    I checked with tables : DRAW, DRAD, AUSP... but not got proper answer.
    -Thanks,
    Ajay

    Hi All,
    Thanks for your replay. This issue is resolved.
    In transaction CV04N with classification tab I have to option of Company code. I am able to get list of DIR's with company code and document type.
    -Thanks,
    Ajay

  • 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?

  • Malerial List With DMS document attached to it

    Hi
    Can any one have idea from where i can get Material list to which Documents are attached.

    Hello,
    In standard system, It is not possible to print attachment via the message output. Please refer Question 30 of attached
    note 457497.
    457497 FAQ: Message processing in purchasing
    "Can documents that are linked to a purchase order also be output in the message output? " And the answer is: No."
    There is no posibility to print attached documents from ME9F. Printing the PO from ME9F and print the document from ME22N by
    selecting the document and pressing print button. You will only be able to see the screen linked documents when an item in the po (or position) has been selected.
    Regards,

  • DMS document attachment

    Hi,
    I am new to DMS & I have to attached scanned images of invoices through MIRO transaction to SAP object. How should I go with it?
    Anyone has worked on DMS???
    kindly help...

    Hi,
    Try using this function module mentioned below:
      CALL FUNCTION 'CV120_KPRO_MASTER_DATA_GET'  " Checking whether the document already have any originals
                                                                                    " attached on it or not
        EXPORTING
          pf_dokar       = i_data_final-doc_type   "document type uploaded into an internal table from the external file
          pf_doknr       = i_data_final-doc_no      "document number uploaded into an internal table from the external file
          pf_dokvr       = i_data_final-doc_ver     "document version uploaded into an internal table from the external file
          pf_doktl       = i_data_final-doc_part      "document part uploaded into an internal table from the external file
          pf_active_only = ' '
          pf_comp_get    = ' '
        TABLES
          ptx_data       = i_data 
        EXCEPTIONS
          not_found      = 1
          error          = 2
          OTHERS         = 3.
    if i_data[] is initial.
    *- Documentdata
      doc_data-documenttype    = i_data_final1-doc_type.
      doc_data-documentnumber  = i_data_final1-doc_no.
      doc_data-documentversion = i_data_final1-doc_ver.
      doc_data-documentpart    = i_data_final1-doc_part.
      doc_data-statusintern    = i_data_final1-doc_stat.
      doc_data-username        = i_data_final1-drwng_creator.
      IF NOT i_data_final1-doc_desc IS INITIAL.
        doc_data-description   = i_data_final1-doc_desc.
      ENDIF.
      APPEND doc_data.
    *- ClassAllocations
      doc_class_alloc-classtype     = c_classtype.
      doc_class_alloc-classname     = c_classname.
      doc_class_alloc-standardclass = 'X'.
      APPEND doc_class_alloc.
    Adding Primary, SUBtye and Design Project Characteristics to the DRAWING Class
      CLEAR it_char_val.
      it_char_val-classtype = c_classtype.
      it_char_val-classname = c_classname.
      it_char_val-charname  = 'PRIMARYTYPE' .
      it_char_val-charvalue = i_data_final1-prim_type.
      APPEND it_char_val.
      CLEAR it_char_val.
      it_char_val-classtype = c_classtype.
      it_char_val-classname = c_classname.
      it_char_val-charname  = 'SUBTYPE' .
      it_char_val-charvalue = i_data_final1-sub_type.
      APPEND it_char_val.
      CLEAR it_char_val.
      it_char_val-classtype = c_classtype.
      it_char_val-classname = c_classname.
      it_char_val-charname  = 'DESIGN_PROJECT' .
      it_char_val-charvalue = i_data_final1-design_proj.
      APPEND it_char_val.
      CLEAR it_char_val.
    *Bapi called to create the document using tcode CV01N
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
          documentdata              = doc_data
           hostname     = gv_hostname
          pf_http_dest              = 'SAPHTTPA'
          pf_ftp_dest               = 'SAPFTPA'
       IMPORTING
         documenttype               = i_data_final1-doc_type
         documentnumber             = i_data_final1-doc_no
         documentpart               = i_data_final1-doc_part
         documentversion            = i_data_final1-doc_ver
         return                     = ls_return
       TABLES
         characteristicvalues       = it_char_val
         classallocations           = doc_class_alloc
    endif.
    Hope it helps
    Regards
    Mansi
    Edited by: MANSI  ASNANI on Oct 15, 2009 7:09 AM

  • Attachment for incoming invoice

    Hello All,
    I achieved to attach an external document to a PO with object id BUS2012. The same method did not work for BUS2081, which is vendor invoice. I use the method CL_BINARY_RELATION=>CREATE_LINK to create attachments. The method does not return any errors and ok message is issued but when I want to display the invoice with tx MIR4 there is no attachment.
    What should I check?
    Thx in advance,
    Ali

    Hi,
    I am giving a brief about the flow you should follow.
    PERFORM file_upload USING p_file.  (This is the perform in which you will upload your file with the business object of the document, document key, archiv type, the local path of attachment etc...)
      PERFORM validate_file.   ( This is to validate your entries from the file)
      PERFORM bo_existence_check. (This is to check the the existence check of the business object and document key in the system)
    LOOP AT gt_upload_file INTO gs_upload_file.  (This is looping through the file for each entry i.e. each document)
          PERFORM upload_attachment. ( This is to upload scanned attachment to optical archiv drive)
    Use FM SCMS_AO_FILE_PUT_FE for uploading the file
           PERFORM link_archiv.  (This is to link the uploaded document in archiv drive with the document in SAP system)
    USE FM ARCHIV_CONNECTIONTABLE_INSERT  for linking the document and attachment.
    ENDLOOP.
    Let me know if you find it useful.
    Thanks and Regards,
    Kiran Mohan

  • Document attachment with Workflow

    Dears,
    We are using SAP 4.7 R3 and currently we are configuring workflow just for alerts purposes for example we will send an alert to external server whenever logistics invoices verification document will be parked. We will send text to external emailer system and will be received by MS-outlook. We want to attach that document with my text . How can I do that?
    Regards,
    FR

    Hi,
      In an background activity step send a mail using 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
      Hope this link helps --> http://wiki.sdn.sap.com/wiki/display/Snippets/Sending%20mail%20with%20attachment
    Regards
    Narin

  • No accounting document created with cancel invoice.

    Dear All,
    I made a mistake. I tried to cancel an invoice that was created 14.7.2008 - Invoice 74111561 with accounting document 4600017717)
    I tried to cancel above mentioned invoice. I got a new cancel invoice number 34138341. But no accounting document was created.
    How can I correct this?
    Please help me out in this issue.
    Thanks a lot in advance!!

    You can manually try and generate the accounting document. Go to change mode of the invoice (VF02).
    Then, from the menubar:
    Billing document -> Release to accounting
    This will either manually release the invoice to accounting, or it will give you a spcific error as to why the invoice was not created.
    Cheers!

  • DMS-Document attachment in MIRO

    Dear All,
    Can we attach documents  in MIRO and FB60 transactions.
    Regards,
    Venkat.

    Hi Venkat,
    From dms point of view,you want to display (attach)the documents to perticular screen means object link needs to be given.
    In standard environment there is no MIRO or MIGO transaction as onject link.You can link to Material Master(MARA).I hope this you already know.
    If you want to see dms screen in MIRO or MIGO transaction,you have to go for z-deveploment which can be programe writen by abap consultant.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • Issue Related to Billing Document F2 with same Invoice Number.

    Hi All,
    I have 3 Sales Order with 2 Sales Order belonging to Sales Org A and one belonging to Sales Org B. The Invoice generated for all the deliveries for Sales Order has the same Invoice Number. As per the standard functinality it is not possible to generate same Invoice Number for Sales Order belonging to different Sales Organisation. I have chekced the Table VBFA the preceding document for the Invoice Number I am getting 3 entries. Please could you help me out in analysing his issue. Where the possible error could be ?.
    Thanks & Regards,
    Sam.

    Kindly check as it could be due to the Single Invoice generated for collective three Deliveries.
    As per the standard functinality it is not possible to generate same Invoice Number for Sales Order belonging to different Sales Organisation
    This is not a standard Functionality.But if you have made a Logic in the Copy Control Routine then it could be possible.
    Single Invoice Number can be generated for one or more Deliveries if you process it through VF04.
    Best Regards,
    Ankur

Maybe you are looking for

  • 8gb iPod touch is not working

    My iTouch has stopped working. I press power button and it still doesn't work. I charged it for many hours and nothing. Any help?

  • Verify that the database is created with the correct path  specification

    Dear All When I installed DB2 9.1 with SP4 on windows 2003 64 bit,I use Configuration Assistant tool which is problem SQL1031N  The database directory cannot be found on the indicated file system.  SQLSTATE=58031 Explanation: The system database dire

  • Hr master data migration

    Hi I am working in a sap hr master data migration project.The client is having sap hr system  in one location ,they want to migrate the datas of other 3 locations into sap hr system.(2 diffrent countries ).I have prepared a business blue print for 3

  • Cant add new contacts to phonebook.

    having reloaded software into my 9630, when I press "Add Contact", nothing happens. Has anyone any experience with this?

  • Accept license agreement again?? It's making me lose data.

    In Acrobat XI, I had several files open, filling out forms. Acrobat crashed, reopened, and asked if I wanted to recover the data I had already filled in. I did. Then, before it opened my documents, Adobe asked me if I would accept the license agreeme