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

Similar Messages

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

  • Posting Program for Incoming Invoice

    Hello,
             I have a requirement to develop an Inbound Interface for Incoming Vendor Invoice which needs to be posted into SAP. Is IDOC_INPUT_INVOIC_MM the Posting Function Module which is used for this Purpose? Or do I need to develop a Custom Posting Program for Posting Invoices in MIRO? Please suggest the available BAPIs & FMs for MIRO Transaction if I need to go for a Custom Development.
    Thanks,
    Venkata Phani Prasad K.

    Hi,
    The posting program for Posting an Vendor Invoice is IDOC_INPUT_INVOIC_MRM which is associated with the process code INVL.
    I have used the above FM only to post the Vendor invoice idocs and it was successful.
    Thanks,
    Mahesh.

  • User exit for incoming invoice - MIRO/MB60

    Hi,
    Can anybody suggest me the user exit to set the payment block during the creation of incoming invoice document through MIRO(With PO reference) / FB60 (With out PO reference).
    Kindly dont run the program and send the list of the exists.
    Thanks
    Suri

    HI Suresh,
      Just execute this report and enter input value as FB60 then it will display alll the user exits related to this  t-code.
    report zuserexit no standard page heading.          
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.          
             tables : tstct.          
    data : jtab like tadir occurs 0 with header line.          
    data : field1(30).          
    data : v_devclass like tadir-devclass.          
    parameters : p_tcode like tstc-tcode obligatory.          
    select single * from tstc where tcode eq p_tcode.          
    if sy-subrc eq 0.          
       select single * from tadir where pgmid = 'R3TR'          
                        and object = 'PROG'     
                        and obj_name = tstc-pgmna.     
       move : tadir-devclass to v_devclass.     
          if sy-subrc ne 0.     
             select single * from trdir where name = tstc-pgmna.     
             if trdir-subc eq 'F'.     
                select single * from tfdir where pname = tstc-pgmna.     
                select single * from enlfdir where funcname =     
                tfdir-funcname.     
                select single * from tadir where pgmid = 'R3TR'     
                                   and object = 'FUGR'     
                                   and obj_name eq enlfdir-area.     
                move : tadir-devclass to v_devclass.     
              endif.     
           endif.     
           select * from tadir into table jtab     
                         where pgmid = 'R3TR'     
                           and object = 'SMOD'     
                           and devclass = v_devclass.     
            select single * from tstct where sprsl eq sy-langu and     
                                             tcode eq p_tcode.     
            format color col_positive intensified off.     
            write:/(19) 'Transaction Code - ',     
                 20(20) p_tcode,     
                 45(50) tstct-ttext.     
                        skip.     
            if not jtab[] is initial.     
               write:/(95) sy-uline.     
               format color col_heading intensified on.     
               write:/1 sy-vline,     
                      2 'Exit Name',     
                     21 sy-vline ,     
                     22 'Description',     
                     95 sy-vline.     
               write:/(95) sy-uline.     
               loop at jtab.     
                  select single * from modsapt     
                         where sprsl = sy-langu and     
                                name = jtab-obj_name.     
                       format color col_normal intensified off.     
                       write:/1 sy-vline,     
                              2 jtab-obj_name hotspot on,     
                             21 sy-vline ,     
                             22 modsapt-modtext,     
                             95 sy-vline.     
               endloop.     
               write:/(95) sy-uline.     
               describe table jtab.     
               skip.     
               format color col_total intensified on.     
               write:/ 'No of Exits:' , sy-tfill.     
            else.     
               format color col_negative intensified on.     
               write:/(95) 'No User Exit exists'.     
            endif.     
          else.     
              format color col_negative intensified on.     
              write:/(95) 'Transaction Code Does Not Exist'.     
          endif.     
    at line-selection.     
       get cursor field field1.     
       check field1(4) eq 'JTAB'.     
       set parameter id 'MON' field sy-lisel+1(10).     
       call transaction 'SMOD' and skip first   screen.
    Hope this helps you. reply for queries.
    Regards,
    Kumar.

  • Table with barcode for incomming invoice

    Hello,
    i need small help. When we are storing incoming invoice we have a popup with a barcode. Where is then barcode information stored(in which table)? i was not succesfull while searching for this table....and i dont know if our customizing is done well and barcode is really stored
    thanks,
    JJ

    Try TOA01 <a href="http://help.sap.com/erp2005_ehp_02/helpdata/en/d7/e21dde408e11d1896b0000e8322d00/content.htm">More details!</a>

  • Form Attachment for FI Invoice

    Hi
    Is there a place where we can attach a form for printing FI Invoices. I gather that in SD, in config there is a transaction where a customized form maybe attached- do we have any such thing in FI too?
    Thank you
    Rukshana

    Hi:
    You can use correspondence,T.code FB12 - Request and also F.64 - Maintain .Have a look and see if it fits your requirement.
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

  • Archive link for Incomming Invoice

    Hi All,
    I have a requirement to link my incomming Invoce with Image of Invoce....which is stored in another server (not SAP) called Basware.
    we should be able to clik on link of image from Invoice document and Image should be open from Basware server.
    I dont know anything about Archive link and how to use it.....so If you can provide me step by sterp procedure to it....it will be a greate help.
    thanks,

    It must be an SAP Certified solution to do this. I am not aware whether Basware is certified link to SAP as a repository.

  • BAPI for MIRO Incoming Invoice

    Hi All,
    I want BAPI for MIRO Posting ie for Incoming Invoice.
    .here MIRO is being done with Delivery Note number
    Following are the necessary entries for MIRO Posting
    Invoice date
    Reference
    Amount
    Calculate Tax
    Tax amount
    Delivery Note
    Vednor
    Business Area
    Please suggest me suitable BAPI for MIRO Incoming Invoice Posting with sample code.
    immediately.Please give some sample code for my reference.
    Rewards will be given.
    Regards.
    Ulhas

    Hi,
    BAPI for Invoice Verification: Post Invoice
    BAPI_INCOMINGINVOICE_CREATE
    The method can only carry out your function if no error messages were
    generated in the Return table. This is the case if the header data and
    all the items were processed successfully.
    Transaction control is not implemented. The calling program therefore
    has to execute the Commit Work itself after this method has been
    successfully called (in other words, if no errors were reported in the
    Return parameter).

  • EDI - Incoming Invoice Error and GR based Invoice Verification - 51 No GR

    Hi,
    We are implementing EDI for incoming invoices and use Goods Receipts based Invoice Verification.  When processing an inbound IDOC Invoice (type INVOIC01) where the Goods Receipt has not yet been posted, then Inbound IDOC is siiting at Error Status, 51 - No GR documents found.
    Is there any way we can process this as a Parked Invoice or for Verification in the background (MIRA)?  because the current situation is a problem, as 95% of our Inbound Invoices will be received electronically before the Goods are Received. 
    The actual Vendor's delivery note is stored in the segment E1EDP02 (Qualifier 016), field BELNR.
    Currently the IDOC as to sit in error until the Vendor's Delivery Note is Goods Receipted which can be several days later - SAP OSS Note 393883 fro 2001 suggests doing this, but surely this is a common situation.  The IDOC sitting in error in WE02 in the list of IDOCs is difficult to isolate from true errors.
    If this is was mnaul Invoice it could be processed through MIRA for background Invoice Verification later with program RMBABG00.
    We havd SAP version ECC 6.0
    I have spotted OSS Note 501524 which implies that is possible automatically Park Incoming EDI IDOC Invoices, has anyone tried this?  and what would be the transaction/program that could be used to post several at once when the GR has been processed (similar to RMBABG00)

    Hi ,
    You can use the program   RBDMANI2   which will reprocess all the IDOCs (EDIinvoices )that have failed . You can schedule this program in the background and it will post all failed invoices which have the GR posted later .
    We had the same scenario and we have scheduled this program as a daily job at night .
    Regards,
    Hari.

  • Incoming invoice from third party system

    Hi All,
    Could you please help in choosing functional module or bapi or badi's for incoming invoices that are receiving from third party system. I have no ideal about that but the SAP has to be loaded using idocs. what is the reason to choose the above ones
    Thanks in advance for response.

    Why not starting with docu?
    The general process  is explained well in help.sap.com
    As a service, put this into your Google: vendor invoice edi site:help.sap.com

  • Incoming invoice not get posted through workflow

    Hi Experts,
    I am working on workflows for incoming invoice used by bus2081. i am facing the problem when the user clicks on post button after verifying the invoice the workitem not posted .and is it showing debit and credit miss match . while posting it with out workflow the document was posted with out error even debit credit miss match
    please give me the solution to overcome from this problem .
    Thanks
    Sreenath

    Hi,
    It seems to be authorisation issue.
    Compare the invoice values which user is able to approve and not.
    Maybe he doesn't have enough authorisation limit to post those invoices.
    Ask him to do it from SBWP backend inbox.
    If it is not going from his inbox means, check the SU53 t code after he clicks on post button.
    Then see in SU53 whether any authorisation is missing.
    It's not a workflow issue. If there is an issue in workflow means, he should not be able to post any invoices.
    Cheers,
    Raja.D

  • Blocked Incoming Invoice Due To Price OR Quantity

    Hi Guys,
    We have Business object For Incoming Invoice BUS2081 and we have Methods "BlockedPriceCheck" which intern calls FM "MRM_EXISTANCE_BLOCKEDPRICEITEM" and "ListBlockedPriceItemdata" which Interns calls "MRM_INVOICE_BLOCKEDPRICEITEMS".
       I need similar Methods OR FM for Quantity BLOCK.
    Like BlockedQuantityCheck and ListBlockedQuantityItemdata
    Or the FM which return me similar output as Above FM but in relate to Quantity.
    Can anybody knows about this.

    Hello,
    if there is not one in business object BUS2081, i doubt there is a std fm for this.
    Rajeev

  • Item Level Approval in Incoming Invoice

    Hi Gurus,
    I am new to the concepts of workflow and really dont have good experince to take up this job. But still I want to give my best shot and see if I can do.
    I am trying to accomplish item level approval for incoming invoice using business object FIPP. I have below mentioned questions in this regards,
    1) Is it possible to achive item level approval for incoming(vendor) invoice using business object FIPP?
    2) If <b>YES</b> , Please provide me with some hints on how to achieve it.
    3) Is there any BADI available to enalbling this functionality?
    Any kind of help in this regard is highly appreciated and rewarded.
    Regards,
    Sapna Madhuri
    Message was edited by:
            sapna madhuri

    Your solution design must of course depend on the functional requirements (specification). I can not (will not, I have a job to attend to even if I tend to spend too much time here on SDN sometimes) tell you everything that is involved in the workflow builder, nor what the graph should look like.
    There is not one answer to these questions. You can probably find several (more than two) different technical solutions that meet the requirements. Not all will be equally elegant. Not all will be equally robust. Not all will be equally maintainable. Some will give a higher system load than others. And so on, and so on. <b><u>You</u></b> have to make the choices, not some fellow SDN-er far away from you and your customer.
    <b>First question:</b> is approval of level 1 and 2 approvers performed independently for each item or depending on the previous level being completed (i.e. must all level 1 approvers approve before relevant items are sent to level 2 approvers)?
    If they are handled independently, you can create a subworkflow and use dynamic parallel processing to instantiate it for all items. If there is dependence, you can perhaps use two dynamic parallel processing steps, first for level 1 approvers and then for level 2 approvers.
    <b>Second question:</b> what happens if an approver rejects an item?
    There is no easy way out, you have to spend time to find out what the best solution is. I'm not here to spoon-feed anyone any solutions, but I don't mind telling what my ideas are. OK, once in a while I will actually give someone a complete solution, like many others here, but that's mostly to very specific and limited questions. Your query is very broad and nearly unlimited in scope.

  • Incoming invoice before goods receipt

    Hi friends.
    In the standard process of VMS the action for good receipt (GORE) is executed before the action for incoming invoice (INIV).  Is there the possibility of doing the way inverse (INIV before GORE).  I know that the vehicle belongs to the material type VEHI with valuation category X so it is a single batch.  And the batch is created at goods receipt so I'm not quite sure if it is possible to register the incoming invoice previous to the goods receipts.
    Thanks.
    Pedro

    Hi Pedro,
    in VMS, the batch is not created when the goods receipt (GORE) is executed. The batch is created at an earlier point of time: It happens during vehicle creation (CREA) already. If you don't create the vehicles via CREA but via CRE1, the batch is not yet created yet but in this case action REAL (which is in this case supposed to be executed prior to ORD1) creates the batch. All this statements are true for the valuation type creation as well.
    The VMS actions and the VMS framework in my opinion don't enforce the action sequence GORE->INIV. From a VMS perspective, INIV->GORE is possible as well. Of course you need to set up the action matrices in a way that this is allowed.
    It's the standard MM settings which need to be done in a way that INIV->GORE is possible. As far as I know you have to make sure that in the vendor master (view "purchasing data") the "Indicator: GR-Based Invoice Verification"-flag is NOT set. The same flag also exists in the info record (ME12) where it also needs to be removed.
    I don't know if further customizing and / or master data settings in MM is required to enable INIV->GORE.
    Kind regards,
         Steffen

Maybe you are looking for

  • Why do some songs on iPod not appear in My Computer?

    My iTunes library has most of the songs that are on my 60Gb iPod photo. It has approx. 2600 of the 2900 songs that are on my iPod. It is set to manually update as I don't want to lose the 300 odd songs that are on my iPod.When I open the iPod (E:) in

  • Inserting data into a file in Webdynpro java

    hi, My requirement is, i am using html code in my webdynpro application. i want to send the html code to a file(.txt file) .can any body help me how to send the data to file in webdynpro java. thans, kishore

  • Iphone 5 error 3

    hi neither restore nor update 7.0.4. it's showing error 3 please help me

  • Creating a PO from SO

    Hi Experts, I have a request to deploy the below scenario. A purchase order should be created from a sales order with blank account assigment category and item category at the line item. This is to enable us to ship the goods from Vendor 1 to vendor

  • Role grants problem.

    Hi everybody, I have this strange problem: I've an owner schema owning most of my db's tables: "SALE". SALE is a DBA and creates the rest of db users. I also have a qrya_rl owned by SALE. I grant selects on SALE tables to this qrya_rl and assign it t