MRM_QUANTITY_CHECK for invoices parked as complete

Hi,
is it possible to call fm MRM_QUANTITY_CHECK for invoices parked as complete (RBKP-RBSTAT = 'B' and sy-ucomm = 'COMP')?
is it possible to have routine MENGE_PRUEFEN(SAPLMR1M) for invoices parked as complete?
These checks get triggered when posting the invoice.
i´d need to have these checks for invoices when they are parked as complete.
Best regards
Edited by: Pablo Casamayor on Apr 21, 2010 8:57 AM

Hi,
The purpose of using either the fm call or the subroutine is to avoid saving as complete an invoice if it hasn´t got goods receipts enough.
The standard triggers those checks when the invoices are posted but i´d need them when the invoices are saved as complete.
Best regards.
Edited by: Pablo Casamayor on Apr 26, 2010 8:30 AM

Similar Messages

  • Std Work flow for Invoice Parking & posting

    I am working om std SAP workflow for invoice document parking :
    I have done the following activities :
    1. Activate Work flow Template for Document Completion
    Here i activated the event "Complete the Parked Log. IV Document"--> Incoming Invoice Document Parked. It is showing a green traffic light .
    In agent assignment
    Complete the Parked Log. IV Document>Complete the Parked Log. IV Document>Complete the Parked Invoice--> i have assigned the user MMCONFIG
    2. In Define Release Criteria i have the following settings :
    1000 H Credit 0.01 INR US MMCONFIG
    1000 S Debit 0.01 INR US MMCONFIG
    3. In Activate Workflow Template for Release for Posting
    Here i activated the event Incoming Invoice Complete: ReleaseRel & i m getting a green traffic light .
    In assign agents i did the following
    Release the Completed Log. IV Document>Release the Completed Log. IV Document>Release the Completed Log. IV Document i assigned the user MMCONFIG
    In Invoice Parking: Approve Release i assigned the user MMCONFIG .
    For Invoice Parking: Release Invoice
    Invoice Parking: Posting an Invoice " I AM NOT ABLE TO ASSIGN ANY USER AS THESE ARE BACKGROUND TASKS ".
    Now when do a MIR7 - Park invoice & save the invoice as complete i am getting a mail in the mail box of MMCONFIG saying :
    "Invoice Release 5105xxxxxxx 2009, Completed by MMCONFIG "
    I go & release the same invoice .
    Then i executed MIRO & tried posting the released invoice . The sysem doesnt allow me 2 post the invoice .
    It automatically goes to MIR4 transaction & forces me to save as complete
    if i try to post it the system says "Parked document is release-relevant and cannot be posted"
    Pls tell me how can I post the invoice & IF MY SETTINGS FOR THE WORKFLOW IS OK ???
    Regards
    Anis

    Firstly,  check with the Binding of the event and workflow, if they are fine
    then check if the workflow gets triggered when you are posting... to check this,
    First go to transaction SWU8 - turn on the workflow trace and then
    Proceed with posting the invoice
    go to transaction SWU8 again and then turn off the workflow trace
    go to SWU9 - to check which all workflows got triggered....
    If there is any workitem in your workflow, then go to SWI1 and select the workitem of that workflow and press shift+F8 to check the status of it and also check to which all agents it had sent...
    If possible just give a hardcoded value in the workitem for testing purpose and check if that goes properly, later on implement the rule.....
    If the workflow does not triggere - go to transaction SWETYPV and deactivate and activate the event linkage with that workflow....
    Regards,

  • BAPI for Invoice parking & completion

    Hi Friends,
    I want to make a BAPI for LIV park & complete option.
    I found the following :
    BAPI_INCOMINGINVOICE_PARK for Parking.
    BAPI_INCOMINGINVOICE_POST for Invoice Verification: Post Provisional Invoice
    BAPI_INCOMINGINVOICE_CREATE for Invoice Verification: Post Invoice
    When we chk in MIR7 we can do this manually.
    Is there any BAPI for doing this activity thru MIR7.
    Regards
    Sai Krishna

    Hi,
    We can do this by using thre following BAPI:
    BAPI_INCOMINGINVOICE_CHANGE
    change the INVOICE_DOC_STATUS to B , then we can park & complete the doc.
    Regards
    Sai Krishna

  • Bdc for invoice parking with reference(FB60)

    Hi all,
    I am Developing a <b>RFC</b> within that i have written <b>bdc</b> code for <b>invoice parking with refernce</b> on <b>fb60 tcode</b> as there is no standard function module for this . But i am stuck in one place after parking the document it gives one<b> document number</b> in the message bar which will be further useful for posting  .
    how to catch that document number in the bdc and return it in the export parameter of trhe RFC.
    Maximum points will be allocted for any useful answer..
    thanks in advance

    You can do something like below after your call transaction to get the document number.
    do 10 times.
            wait up to 5 seconds.
            select single * from bkpf
               where belnr = belnr
                 and bukrs = bukrs
                 and gjahr = gjahr.
            subrc = sy-subrc.
            if subrc = 0.
              exit.
            endif.
    enddo.

  • Bapi for invoice parking

    Hi,
    Does anyone know any BAPI to park a invoice using purchase order at the level of the services. I know BAPI_INCOMINGINVOICE_PARK, but it supposed to only park the invoice at the level of the purchase order items, not of the level of included services in each purchase order item. And we want to enter information related to the service's items.
    Thanks,
    Paulo Sousa

    Hi Paulo,
    the same bapi can be used for services as well:
    Here is the example given in the documentation:
    "Example: Incoming invoice for a purchase order for external services and servie-based invoice verification
    This example shows you which header data you need to enter in table HeaderData, which item data in table ItemData, and which accout assignment data you enter in table AccountingData in order to enter and post an incoming invoice.
    You receive an invoice with reference to PO number 4500000191, PO item 10. The invoice is for two services A and B, each with a quantity of six service units. Service A has a gross amount of 580 USD including 16% tax. Service B has 812 USD including 16% tax. 50% of service A was assigned to each of the cost centers 1000 and 2000. 50% of service B was assigned to each of the cost centers 1000 and 3000. The service acceptance is performed jointly for both services with the service entry sheet number 1000000022. The account assignments cannot be changed.
    Enter the following data:
    Table HeaderData
    INVOICE_IND (Post invoice/credit memo): X
    DOC_TYPE (Document type): RE
    DOC_DATE (Document date): 01.10.2002
    PSTNG_DATE (Posting date): 01.10.2002
    COMP_CODE (Company code): 0001
    CURRENCY (Currency key): USD
    GROSS_AMOUNT (Gross amount): 1392.00
    CALC_TAX_IND (Calculate tax automatically): X
    PMNTTRMS (Terms of payment key): 0001
    Table ItemData
    First entry for service A:
    INVOICE_DOC_ITEM (Item in invoice document): 000001
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 250.0
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 10
    Second entry for service A:
    INVOICE_DOC_ITEM (Item in invoice document): 000002
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 250.00
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 10
    First entry for service B:
    INVOICE_DOC_ITEM (Item in invoice document): 000003
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 350.0
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 20
    Second entry for service B:
    INVOICE_DOC_ITEM (Item in invoice document): 000004
    PO_NUMBER (PO number): 4500000191
    PO_ITEM (PO item): 00010
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Item amount): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (Unit of measure): SU
    SHEET_NO (Entry sheet number): 1000000022
    SHEET_ITEM (Line number) : 20
    Table AccountingData
    First account assignment for service A:
    INVOICE_DOC_ITEM (Document item in invoice document): 000001
    SERIAL_NO (Sequential number of the account assignment): 01
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 250.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    Second account assignment for service A:
    INVOICE_DOC_ITEM (Document item in invoice document): 000002
    SERIAL_NO (Sequential number of the account assignment): 02
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 250.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    First account assignment for service B:
    INVOICE_DOC_ITEM (Document item in invoice document): 000003
    SERIAL_NO (Sequential number of the account assignment): 01
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    Second account assignment for service B:
    INVOICE_DOC_ITEM (Document item in invoice document): 000004
    SERIAL_NO (Sequential number of the account assignment): 03
    TAX_CODE (Tax code): V1
    ITEM_AMOUNT (Amount in document currency): 350.00
    QUANTITY (Quantity): 3
    PO_UNIT (PO unit of measure): SU
    Regards,
    Ravi

  • FICO-Invoice Parking and approval; Unable to complete some Config steps

    FICO-Invoice Parking and approval; Unable to complete some Config steps
    I am using standard WF: WS10000051 (SAP template) in Accounts payable to get triggered for Invoice Parking-Approval and Posting.
    One of the steps mentioned at help.sap.com is below;
    1. Data for Event Linkage
    Object type     FIPP
    Event     CREATED
    Receiver type     WS10000051
    Receiver module     SWW_WI_CREATE_VIA_EVENT
    2. Check Function
    Receiver type (function module)     
    Global     X
    Enabled     X
    I could get to 1. Data for Event Linkage which is T Code SWETYPV but could not find 2. Check Function.
    Where do I set the parameters for :  2. Check Function in SAP
    The help file link is
    http://help.sap.com/saphelp_erp2005/helpdata/en/01/a9ceb5455711d182b40000e829fbfe/content.htm
    Regards
    Nilabh

    You dont need to assign the Check function module.
    Check function module is used to prevent the workflow from triggering if the checks written in the function fail.
    For eg. check if the invoice amount is GT 500. If yes trigger workflow else dont.
    -Kiran

  • Workflow on invoice parking and posting

    Hello,
    Can anybody guide me how to configure the workflow for invoice parking and posting in detaills?
    Thanks
    Nilesh

    hello ,
    Prerequisites
    In the Implementation Guide (IMG) for Logistics Invoice Verification, you can specify for which company code, which vendors, which invoices, and above which amount a document is subject to release. In an invoice document that is completed for posting, the amount that is subject to release is based on the gross amount. (Logistics Invoice Verification ® Document Parking ® Define Release Criteria)
    Technical Implementation (MM-IV-LIV)
    Object Types
    Object technology is used to create the interface between the ERP functions and the Workflow system. The information given below is primarily of a technical nature and is not necessary for an initial overview.
    Incoming invoice
    Object type Bus2081 (Incoming invoice)
    Workflow Template
    The actual operational procedure is implemented as a workflow template. You will find this workflow template in your ERP system.
    Workflow template: WS 20001004
    Description: Release the Completed Log. IV Document
    Triggering Event for Workflow Template
    The event for workflow template IncomingInvoice.CompletedToRelease is triggered if the parked document is complete for posting (RBKP-RBSTAT='B') and is subject to release (RBKP-RFGKZ='X').
    This coupling between the event and the workflow template to be started is deactivated in the standard system. If you want to use the workflow template, you have to activate it in Customizing for Logistics Invoice Verification.
    User Roles
    You complete parked invoices for posting and release them at the following organizational levels.
    Processor Determination: Clerk Responsible for Releasing Invoices
    If you have already maintained an organizational unit, you can use it here.
    If no organization unit is available, create an organizational unit that includes the people responsible for releasing invoice documents that are complete for posting.
    Use the organizational unit in Customizing for Logistics Invoice Verification in the activity for defining release criteria.
    Processor Determination: Clerk Responsible for Completing Invoices for Posting
    If you have already maintained an organizational unit, you can use it here.
    If no organization unit is available, create an organizational unit that includes the people responsible for completing parked invoice documents for posting.
    Link the organizational unit to the single-step task TS20000879:
    ·        By simple processor assignment
    All users in the organizational unit receive the work item.
    ·        By defining an individual role
    Only selected users in the organizational unit receive the work item.
    Authorization Objects
    You must have maintained the authorization to display invoices (activity 03, M_RECH_WRK) for users who are responsible for releasing invoices.
    You must have maintained authorization to change parked invoice documents (activity 77, M_RECH_WRK) for users who are to complete parked invoice documents for posting.
    Several other specific customizing steps are necessary for this workflow template in addition to the general customizing that is necessary to make sure that the workflow system functions properly.
    Activating Event-Receiver Linkage
    The event IncomingInvoice.CompletedToRelease (Invoice document completed for posting and subject to release) for object type BUS2081 (Incoming invoice) is an event that triggers workflow template WS 20001004 and is entered in the event linkage table as such as the standard event.
    This coupling between the event and the workflow template to be started is deactivated in the standard system. If you want to use the workflow template, you activate the linkage between the triggering event and the workflow template as receiver of the event in Customizing for Logistics Invoice Verification. (Logistics Invoice Verification ® Document Parking ® Activate Workflow Template for Release for Posting.)
    Use
    The release of invoice documents that have been completed for posting is supported by a link to a workflow procedure.
    Prerequisites
    The event IncomingInvoice.CompletedToRelease must be triggered for an invoice (BUS2081) so that a release procedure is started. We recommend implementing this workflow together with the SAP workflow template WS20001003.
    In Customizing for Logistics Invoice Verification, you maintain the activity Define Release Criteria under Document Parking.
    Features
    Release for Posting
    In the release step, the person responsible for releasing the invoice document decides if it should be released. The system uses the virtual attribute ReleaseAgent for object type BUS2081 to determine the person responsible for releasing the document. The release criteria in Customizing for Logistics Invoice Verification are checked for this.
    If the person responsible decides to release the document, it is first released in the background and then posted.
    If he or she decided to reject the document, it is forwarded for further processing to the accounts payable clerk responsible for completing invoice documents for posting. The rejection reason should have been entered using the memo function.
    Completing Invoices for Posting
    The accounts payable receives a work item in his or her inbox. In this work item, he or she can read the reason why the invoice document was rejected and change it. If the accounts payable clerk parks the changed invoice document, saves it as complete, deletes it, or posts it, the workflow ends. It makes sense to save the invoice document as complete and therefore trigger the release workflow again, assuming that the invoice document is subject to release.
    If the invoice document is parked, deleted, posted, or released in the background outside the workflow process, the workflow ends.
    regards
    venga

  • Invoice Parking - 2 Level Approval Workflow not working

    Hi,
    I am having trouble making the two level approval work for invoice parking functionality. I have maintained Release Level = 2 and Sub w/f = WS10000053.
    Rest I have configured as detailed in this link http://www.thesapconsultant.com/2008/09/simple-sap-workflow.html
    When i test the above workflow from SWDD it is working fine. i.e., first one user gets the workitem and after he approves/rejects, it is going to second user. This proved that the user assignment i have maintained is correct.
    But when I park the invoice (using "Save As Completed" button) using FV60, it only going to one user. After he/she approves/rejects it is not going anywhere. I checked in SWI1 transaction where no open tasks (error or hanged etc) are seen.
    Can anyone please advise if i am missing anything?

    Dear Rachit,
    There is a dedicated forum for Workflow i.e. SAP Business Workflow
    Post your thread there, you will get fast response.
    I can suggest you one thing check the agent assignment is done or not
    Regards,
    Chandra

  • Substitution in Invoice Parked Document

    Hi!
    Is it possible to create a substitution for invoice parked documents which were parked via tcode MIR7?
    Thanks,
    Chaikaru

    Hi,
    check this OSS Note:
    ( SAP Note 1252520 - MIR7 Validation and substitution )
    https://service.sap.com/sap/support/notes/1252520
    and this one too:
    ( Note 42615 - Substitution in FI )
    https://service.sap.com/sap/support/notes/42615
    Best regards.
    Edited by: Pablo Casamayor on Jun 29, 2010 10:01 AM

  • How to release an invoice that is already parked and completed

    Hi Experts,
    We are writing a workflow method, where an invoice enters with status 'B' which is parked and completed in our syste.
    We need to change teh status to 'E' which is released.
    I tried following bapis but they dint work, can you advise please.
    BAPI_INCOMINGINVOICE_RELEASE - Only for invoices with payment block, doesnt work for normal invoices.
    MRM_INVOICE_PREPARE_AND_POST - this posts the invoice, we just want to release
    MRM_INVOICE_RELEASE_UPDATE - Gives me an FI error.
    thanks,

    Hi
    try something like:
    PERFORM set_new_status(SAPLMR1M) USING    i_rbkpv-rbstat
                                      i_okcode
                             CHANGING f_rbstat_new.
    Where i_rbkpv-rbstat = 'B'
    and f_rbstat_new = 'E'
    and  i_okcode must not be empty (try with 'PB').
    and then:
      CALL FUNCTION 'MRM_INVOICE_PARK'
        EXPORTING
          i_rbkpv           = i_rbkpv
          i_xupda           = f_xupda
          i_simulation      = f_simulation
          i_rbstat_new      = f_rbstat_new
          ti_drseg          = ti_drseg[]
          ti_selbest        = ti_selbest[]
          ti_selfrbr        = ti_selfrbr[]
          ti_sellifs        = ti_sellifs[]
          ti_selwerk        = ti_selwerk[]
          ti_selerfb        = ti_selerfb[]
          i_editor          = editor
        IMPORTING
          e_belnr           = f_belnr
          e_gjahr           = f_gjahr
          e_only_parked     = f_only_parked
        EXCEPTIONS
          error_message     = 1
          user_exit         = 2
          update_impossible = 3
          OTHERS            = 4.
    where f_xupda = 'U'
    In a few words: try to replicate subroutine DOCUMENT_PARK
    of include LMR1MF0D
    (consider Srinivas advise before proceeding further)
    Best regards.
    Edited by: Pablo Casamayor on Oct 2, 2009 8:39 AM

  • Bapi for vendor non po invoice parking

    Hello,
    We have a requirement to Create a Non PO Invoice and also parking invoice.
    I could able to create Vendor Invoice (Non PO) using BAPI: BAPI_ACC_DOCUMENT_POST.
    But i am unable to find a BAPI for Parking the Vendor Invoice (Non PO). When i try to use BDC on FB01 transaction for creating Parking Vendor Invoice, it is throwing an error that "Parking Invoice creation is not allowed in batch input".
    Can anybody help me for creating Parking Invoice (Non PO).
    Note: There is a BAPI: BAPI_INCOMINGINVOICE_PARK, which wont support for Non PO Invoice creation. It is PO based.
    Thanks in Advance for your support.
    Thanks & Regards,
    Sreedhar.

    Hi,
    Please see the given link, hope It will help you.
    Re: BAPI to Park the Invoice Document
    Regards,
    Shamma

  • BAPI for Vendor invoice Park FV60

    Hi All,
       Do you knwo any BAPI for vendor invoice Park through FV60, I have tried
       BAPI_INCOMINGINVOICE_PARK  - Got struck where It is asking to pass teh PO data in Itme level, where as i have to uplaod only
       GLaccounts data.
      and i tryed for another  BAPI_ACC_DOCUMENT_POST   but is not working its not related to my requiremment it seems...
    Can any one know better about the process to do this.. pleas let me know..?
      Can anybody did the same, if ues please share with me... its very urgent it need it...
    Thanks,

    use bapi: BAPI_INCOMINGINVOICE_PARK

  • Bapi's for posting parked invoices.

    Hi Friends..
    is there any BAPI's available  to post the parked invoices for both MM and FI.
    and I need one more info .. how to post already parked documents.
    for example : parked documents having 5 fields, but posting I need 10 fields.
    is there any solution availabel to post the parked document.same time I need to add the missed field.
    Thanks
    Gowrishankar

    Hi,
    Go to SE37 and type ' PRELIMINARY_POSTING_* '
    You will get few function modules.
    OR
    you can check in Function Group F040.
    Hope it helps you...
    Regards,
    K

  • Invoice(which are complete already) grouping for just output purpose

    Dear Experts,
    I have requirement  to group the invoices which are complete through VF01 and VF04, and to create an output using the smart from that we have developed
    I understand VF21 actually to create Invoice list which are due for the payer.
    So I understand that canu2019t be used for this purpose.
    Could you please suggest if VF21 still can be used to group the completed Invoices or else
    Could you suggest if there is an alternative.
    Quick response  would be of great help.
    Regards
    Siva

    Hi Sidi,
      Thanks. i thought VF21 is only to group invoices whcih are due for payer. And i thoght if billing already done it would not be possible to create invocie list.
    Please clarify.
    if i can still use to group them it would be of greate help.let me try with invoices which are paid.
    Regards
    Siva

  • Required BAPI for Vendor Invoice park

    Hi,
    I need to create vendor invoice upload program which support the withholding functionlity also.
    Normally for vendor invoice parking we use FV60 transaction code. is there any standared BAPI which does vendor invoice park.
    please let me know.
    With Regards!
    kannan.ja

    use bapi: BAPI_INCOMINGINVOICE_PARK

Maybe you are looking for