Available Invoices for Invoice Validation Concurrent Script in R12.1.3

First you need to run the below script
1) Begin
mo_global.set_policy_context('S','Org_id');
End;
2)
select * from ap_invoices where
VALIDATION_REQUEST_ID IS NULL and APPROVAL_READY_FLAG <> 'S'
and CANCELLED_DATE IS NULL
and PAYMENT_STATUS_FLAG ='N' AND FORCE_REVALIDATION_FLAG='N'
AND Invoice_id in (SELECT invoice_id  FROM AP_HOLDS_ALL H
                         WHERE H.INVOICE_ID = INVOICE_ID
                           AND H.HOLD_LOOKUP_CODE IN
                                  ('QTY ORD', 'QTY REC', 'AMT ORD', 'AMT REC', 'QUALITY',
                                   'PRICE', 'TAX DIFFERENCE', 'CURRENCY DIFFERENCE',
                                   'REC EXCEPTION', 'TAX VARIANCE', 'PO NOT APPROVED',
                                   'PO REQUIRED', 'MAX SHIP AMOUNT', 'MAX RATE AMOUNT',
                                   'MAX TOTAL AMOUNT', 'TAX AMOUNT RANGE', 'MAX QTY ORD',
                                   'MAX QTY REC', 'MAX AMT ORD', 'MAX AMT REC',
                                   'CANT CLOSE PO', 'CANT TRY PO CLOSE', 'LINE VARIANCE',
                                   'CANT FUNDS CHECK','Expired Registration','Amount Funded','Quantity Funded')
                           AND H.RELEASE_LOOKUP_CODE IS NULL)
The above script will provide the available invoices for Invoice Validation Concurrent.
Thanks
Hari

Hello,
I had the same problem in R12.1.3, then I found out that both organizations are not used by same application. Please have a look at note 1066753.1, where as you can see, it is not allowed to merge parties from AP to AR.
Don´t know if this is the solution for your problem, but just wanted to share the information.
Regards,
Wim

Similar Messages

  • Error: Invoicing for Invoicing unit(account 25)  terminated

    ISU Consultants,
    please help me  to solve Invoicing Unit error.
    where we have to maintain the customizing setting for Invoicing Units  and also please suggest me how to invoice individually to each contract.

    Hello Kenny,
    the invoicing unit is triggerd in the contracts within the field 'Joint Invoicing'. Furthermore, please have a look at the event R403 (ISU_SAMPLE_R), where you have the chance to change the invoicing units.
    Regards,
    Katharina

  • Required sample coding for invoice billing for script

    Hi,
            Required sample coding for invoice billing for script in form and endform.
         please help me its very urgent issue. thanks in advance.
    thanks&regards
    sirish

    Hi Sirish,
    these are some of the links where u can find ur solution plz check...
    <u>
    SAP SCRIPT
    SAP SCRIPT
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=invoicebillingfor+script&adv=false&sortby=cm_rnd_rankvalue</u>
    regards,
    Sana M.

  • Note 2002415 - Electronic Invoice for Italian Public Administration

    Hi Guru,
    I'm implementing the note 2002415 the second point:
    2) Creating the custom implementation
    The Enhancement Spot "ES_EDOCUMENT" was developed to allow customer-specific
    implementations to process eDocuments. This enhancement spot contains the BAdI
    definition  "EDOC_INTERFACE_CONNECTOR". In order to use this BAdI, you create a
    class implementing the interface "IF_EDOC_INTERFACE_CONNECTOR" and add it to the
    BAdI Implementations.
    Go to transaction SE19.
    Enter “ES _EDOCUMENT” in the Enhancement Spot field and choose the “Create”
    button.
    Enter a name for the Enhancement Implementation and a short text.
    On the next screen, choose the package and continue. Enter a name for the
    BAdI implementation,  a class name and select the “EDOC_INTERFACE_CONNECTOR”
    BAdI definition. Continue.
    Enter the package and continue.
    On the next screen you can find the BAdI Implementations list for the newly
    created Enhancement Implementation.
    Open the Enhancement Implementation that was just created and click on
    "Filter Val.". Create a Filter Combination with Value 1 "CUSTOM", Comparator "="
    and Filter "INTERFACE_TYPE". Create a second Filter Combination with Value 1
    "IT", Comparator "=" and Filter "COUNTRY". This is to ensure that this
    implementation will be custom and valid only for Italy.
    Double click on "Implementing Class". Here the interface methods can be
    found. The implementation of method "IF_EDOC_INTERFACE_CONNECTOR~TRIGGER" is
    where the data collected from the SD and FI processes can be processed. With a
    double click on this method, a pop up asks if the implementation should be
    created. By choosing "Yes", the code editor opens.
    The parameters available on this method are used by the eDocument Framework.
    You have to retrieve the source document data from the eDocument by calling the
    "GET_SOURCE" method on the input parameter "IO_EDOCUMENT". This will return an
    instance of class "CL_EDOC_SOURCE". The class "CL_EDOC_SOURCE" contains the
    attribute "MD_DATA”, which is the actual SD/FI content, and a method
    "GET_HEADER", that must be used in order to read what kind of document is being
    processed. In the header, the field "SOURCE_TYPE" defines the document type. The
    possible values for this field can be found in table "EDOSRCTYPE". In this table
    the data structure used to each document type is listed. By looking at the
    structure related to the document of interest, it is possible to see the
    available fields.
    By implementing the "TRIGGER" method and using the "SOURCE_TYPE" from the
    header to read the correct data structure, it is possible to assign the
    "MD_DATA" attribute to that data type (for example "EDOC_SRC_DATA_FI_INVOICE"
    for Source Type "FI_INVOICE"). With this structure the SD/FI data is available
    for further processing.
    I have create and implemented the Enhancement Spot but cannot to assign the 'MD_DATA' attribute.
    Have you implemented the method TRIGGER of interface IF_EDOC_INTERFACE_CONNECTOR?
    you can post the code?
    Thank you for your interest.
    Enrico.

    Hi Enrico,
    We have implemented Basic Solution to edocument invoice for PA.
    Now we tried the test to FI_INVOICE but don't see the record into transaction EDOC_RESUBMIT. I debugged and I saw that the parameter IV_TEST_MODE is equal to X. It is the problem?

  • Details of open invoices for the current year/ material price analysis

    Hi,
    I'm very new to SAP SD,MM modules. Can any one help me in the following of my requirements?
    1. How to get the details of open invoices for the current year? Which table should I look into?
    2. I have to create a report to display material price analysis. How should I do that?
    3. How to develope a report to list out all the Open Sales Order with earliest ship date and requested ship date
    4.How to create an interactive report for displaying plant status to know the status of a particular material
    5. How to develope a report on Sales Order displaying Sales order Number, Sales order date, Material, PO Date and Customer requested date
    Thanks in advance!!
    Uma.
    Message was edited by:
            Uma Ravi

    Hi Ravi,
    for 3, 4, 5 --> u can go through the code ...
    REPORT ZEX2  MESSAGE-ID arc NO STANDARD PAGE HEADING.
    Tables :kna1,vbak.
    SELECT-OPTIONS : so_vkorg FOR  vbak-vkorg OBLIGATORY,
                     so_vtweg FOR  vbak-vtweg OBLIGATORY,
                     so_spart FOR  vbak-spart,
                     so_kunnr FOR  kna1-kunnr.
    DATA : BEGIN OF sales_open OCCURS 0 ,
           vbeln LIKE vbak-vbeln,
           auart LIKE vbak-auart,
           kunnr LIKE kna1-kunnr,
           bstnk LIKE vbak-bstnk,
           lfstk LIKE vbuk-lfstk,
           fkstk LIKE vbuk-fkstk,
           gbstk LIKE vbuk-gbstk,
           END OF sales_open.
    DATA : BEGIN OF itm_sales OCCURS 0,
           vbeln LIKE vbap-vbeln,
           posnr LIKE vbap-posnr,
           matnr LIKE vbap-matnr,
           kwmeng like vbap-kwmeng,
           lfsta LIKE vbup-lfsta,
           lfgsa LIKE vbup-lfgsa,
           fksta LIKE vbup-fksta,
           fksaa LIKE vbup-fksaa,
           gbsta LIKE vbup-gbsta,
           END OF itm_sales.
    DATA : l_kunnr LIKE kna1-kunnr,
           l_vkorg LIKE vbak-vkorg,
           l_vtweg LIKE vbak-vtweg,
           l_spart LIKE vbak-spart.
    DATA: v_statusl(20) TYPE c,
          v_statusb(20) TYPE c,
          v_statusf(20) TYPE c,
          v_statusg(20) TYPE c,
          v_status(20) TYPE c,
          v_field(1) TYPE c.
    data : v_openqty like vbap-kwmeng.
    **Selection Screen Validations.
    AT SELECTION-SCREEN.
      PERFORM validations.
    *&      Form  Validations
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM validations.
    **Customer
      IF NOT so_kunnr[] IS INITIAL.
        SELECT SINGLE kunnr INTO l_kunnr
               FROM kna1
               WHERE kunnr IN so_kunnr.
        IF sy-subrc NE 0.
          MESSAGE e002 WITH text-005.
        ENDIF.
      ENDIF.
    **Sales Organization
      IF NOT so_vkorg[] IS INITIAL.
        SELECT SINGLE vkorg INTO l_vkorg
               FROM tvko
               WHERE vkorg IN so_vkorg.
        IF sy-subrc NE 0.
          MESSAGE e003 WITH text-006.
        ENDIF.
      ENDIF.
    **Distribution Channel
      IF NOT so_vtweg[] IS INITIAL.
        SELECT SINGLE vtweg INTO l_vtweg
                FROM tvkov
                WHERE   vkorg IN so_vkorg
                 AND    vtweg IN so_vtweg.
        IF sy-subrc NE 0.
          MESSAGE e004 WITH text-007.
        ENDIF.
      ENDIF.
    **Division
      IF NOT so_spart[] IS INITIAL.
        SELECT SINGLE spart INTO l_spart
                FROM tvta
                WHERE   vkorg IN so_vkorg
                AND     vtweg IN so_vtweg
                AND     spart IN so_spart.
        IF sy-subrc NE 0.
          MESSAGE e005 WITH text-008.
        ENDIF.
      ENDIF.
    ENDFORM.                    " Validations
    Top-of-page.
    PERFORM sales_top_of_page.
    Start-of-selection.
    PERFORM sales_sel.
    *&      Form  sales_sel
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM sales_sel.
    SELECT vbeln auart kunnr bstnk
         lfstk fkstk gbstk
         INTO TABLE sales_open
         FROM vbakuk
         WHERE vkorg IN so_vkorg
         AND   vtweg IN so_vtweg
         AND   spart IN so_spart
         AND   kunnr IN so_kunnr
         AND gbstk NE 'C'.
      LOOP AT sales_open.
        WRITE:/4 sy-vline,
               5 sales_open-vbeln HOTSPOT ON COLOR 2 INTENSIFIED OFF,
               16 sy-vline,
               17 sales_open-auart COLOR 2 INTENSIFIED OFF,
               27 sy-vline,
               28 sales_open-kunnr COLOR 2 INTENSIFIED OFF,
               40 sy-vline,
               41 sales_open-bstnk COLOR 2 INTENSIFIED OFF,
               55 sy-vline,
               56 sales_open-lfstk,
               76 sy-vline,
               77 sales_open-fkstk,
               96 sy-vline,
               97 sales_open-gbstk ,
               117 sy-vline.
        HIDE sales_open-vbeln .
      ENDLOOP.
    ENDFORM.                    " sales_sel
    *&      Form  sales_top_of_page
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM sales_top_of_page.
      WRITE:/4 sy-uline(114),
         50 'OPEN SALES ORDERS' COLOR 7 INTENSIFIED ON .
      WRITE: /4 sy-vline,
              5 'SalesOrder' COLOR 1 ,
              16 sy-vline,
             17  'OrderType' COLOR 1,
             27  sy-vline,
             28  'Customer' COLOR 1,
             40  sy-vline,
             41  'PoNumber' COLOR 1,
             55  sy-vline,
             56  'Delivery Status' COLOR 1,
             76  sy-vline,
             77  'Billing Status' COLOR 1,
             96  sy-vline,
             97  'Processing Status' COLOR 1,
             117  sy-vline .
      WRITE:/4 sy-uline(114).
    ENDFORM.                    " sales_top_of_page
    AT LINE-SELECTION.
      SELECT       a~vbeln
                   a~posnr
                   a~matnr
                   a~kwmeng
                   b~lfsta
                   b~lfgsa
                   b~fksta
                   b~fksaa
                   b~gbsta
                   INTO TABLE itm_sales
                   FROM vbap AS a JOIN vbup AS b
                   ON a~vbeln EQ b~vbeln
                   AND a~posnr EQ b~posnr
                   AND b~gbsta NE 'C'
                   WHERE a~vbeln EQ sales_open-vbeln.
      IF NOT sales_open IS INITIAL.
        LOOP AT itm_sales.
          at end of vbeln .
          sum.
          v_openqty = itm_sales-kwmeng.
          endat.
          WRITE:/5  itm_sales-vbeln,
                    itm_sales-posnr,
                    itm_sales-matnr,
                    itm_sales-kwmeng,
                    itm_sales-lfsta,
                    itm_sales-lfgsa,
                    itm_sales-fksta,
                    itm_sales-fksaa,
                    itm_sales-gbsta.
        ENDLOOP.
      ENDIF.
    skip 2.
      write:/  'open Quantity for the order is ', v_openqty .
    for 1.
    open invoices..
    SELECT vbeln
             fkart
             kunag
             gbstk
             INTO TABLE it_billing_h
             FROM vbrkuk
             WHERE vkorg IN so_vkorg
             AND vtweg IN so_vtweg
    *        AND spart IN so_spart
             AND kunag IN so_kunnr
            and   year in p_year                  ---->"parameter for year..
             AND gbstk NE 'C'.                   "----> open invoices
    for 2..
    2. refer TABLES mara, EINA ..
    regards,
    VIjay

  • Message no. F5350 account type/account for invoice reference does not match

    Hi SD Experts
    Getting error message when the Billing document is released to accounting.
    "Message no. F5350 account type/account for invoice reference does not match item"
    Client is having 6.0 version , I have checked OSS notes, only available for upto 4.7 version.
    Please help to solve this issue.
    Thanks/karthik

    have you checked which account type is maintained in respective G/L account which supposed to be hit once invoice is released . eg: check in Reconcilation account assigned in Customer Master in FS00, Reconcillation account for accoun type should be - D= Customers.
    similarly for other accounts such as "Revenue account"  & check Field status group assigned in G/L account in FS00.
    Check & revert

  • Is there a service to list invoice types and all invoices for a customer?

    Hi gurus!
    The header/subject speakes for it self: is there a service method that lists all available invoice types?
    The customer uses ecc with ehp3 and I have only found a service for getting an invoice for an invoice Id. But I also want to list all invoices for a certain vendor/customer and to list all invoices for one or more search criteria and thus get a list of invoices that spans over several vendors/customers.
    I have got the service info from the following place:
    http://help.sap.com/content/documentation/esoa/docu_esoa_erp.htm
    and there chosen "Enterpise Services for Enhancement Package 3 for SAP ERP 6.0".
    I'm not sure I have read the library of services correctly though. Is it possible that a method for invoice can be under a service which is not a service for invoice? Or is the library very "strict" so that I can assume that there actually are no services for the purposes stated above? There is no search functionality that I can see...
    All the best
    Benny

    I'm not looking to cripple my computer over a virus software hang-up.
    The computer is already crippled. Remove the Intego product, which is worse than useless and worse than the imaginary "viruses" would be if they really existed, which they don't, by following the instructions on this page. If you have a different version, the procedure may be different.
    Back up all data before making any changes.

  • How to create a separate invoice for each delivery line?

    Hello,
    Our customer is requesting a separate invoice for each delivery line. Is there a way to configure this? Or a customization?
    Thanks,
    Joy

    Hello,
    You need to do this through copy controls. in the transaction code VTFL, you need to develop a new routine and attach it in the area "Data VBRK/VBRP"
    attach your custom designed routine and it will split the invoice according to each line item.
    check the standard routines available for hints to develop the routine with your abap. there are several  standard rotuines available
    Hope this helps
    Thanks
    akasha

  • Regarding Tolerance Keys for Invoice Block For Payment in MIRO

    Hi all,
    In customizing, I have defined Tolerance Keys for Invoice Block for Payment. I have defined all tolerance keys for my company code ...... with Absolute as well as Percentage Limits. But whenever I am doing MIRO & testing for my Block Codes effectiveness, i am finding that everytime my Invoice gets Blocked by Tolerance Key PP(Price Variance) or by date......but not by any other like BD, BW, KW etc. Can anyone help me as how I should check for this. I even tried to study the documentation part available in customizing, but was unable to understand the term like Order Price Quantity units.......Can anyone help me in understanding this thing ........
    Regards.....

    Hi Ganesh,
    below is the user exit where you can check the tolarance and put the Block according to the your requirment.
    User Exit name - MM08R002 -User exit for tolerance checks
    in the above user exit you have to use  the below Function exit.
    1) EXIT_SAPLMRMC_001
    2) EXIT_SAPLMRMP_001
    we implemented the above user exit to put the payment block based on the checks.
    You can find the documentation of the above exit in the system.
    Thanks
    Naresh

  • PDF Form interfaces for invoice

    Hi experts,
    I`m implementing company forms (e.g. invoices) in PDF Forms. But I have found, that there are 2 form interfaces predefined for invoices
    IS_U_BILL_IF
    and
    IS_U_BILL_PDF2_IF
    Why there are 2 interfaces for invoice? I cannot find any references of use cases, when to use first or second one.
    Thank you
    Vlado

    As noted there has to be a special folder level script installed on each user's system. This script can be written to access individual properties of the identity object or only a specific property. One can also create a function to access the identity object or even create new properties.

  • Making invoice for the open items

    Dear Gurus,
    My requirement is, user has created a sale order, suppose say for 100 qty and the delivered qty is only 50 because unavailabilty of the material,and the invoice has already created for these 50 qty.
    Now user wants to create the delivery and invoice for the remaining qty as there is now stock available for the material with the same sale order no,ie with which he had created first 50 qty.how to do this ??pls suggest.
    Mahendar.

    Dear Mahendar,
    Please go to VA02 transaction enter your sales order number then go in to that here you do the reavailability check through select the item and cliking on Check item Availability icon which is available at the bottom of the screen (7th Icon from right side) now sytem conform the remaining 50 qty.
    Based on the conform date in the schedule lines you can create delivery document then you can create invoice for that delivery.
    I hope it will help you,
    Regards,
    Murali.

  • API for PO freeze/unfreeze, hold/release hold, open, open for invoice

    I know there is PO_ACTIONS.CLOSE_PO API which allow us to close the PO. We need to Freeze, Unfreeze, HOLD, release hold, open, open for invoice and open for receiving standard purchase orders. Does anyone know the Oracle API which can do this jobs. Thanks in Advance.

    Currently they are not available as public APIs. Is there are specific reason you are looking for them?
    Edited by: Shivaraj on May 29, 2012 4:10 PM

  • Tolerance keys & Message No. configuration for invoice verification

    Hi Consultants,
    I need to configure the tolerance limits for scheduling agreements Which should prevent :
    accounts payable from posting invoices beyond a scheduling agreements validity end date.
    Accounts payable from posting invoices when the quantity invoiced is above the quantity ordered on the scheduling agreement.
    for this cofiguration can some body help me what are all the tolerance keys should be maintained and what are all the message No. should be configured in warning for invoice verification.
    with regards
    GNK

    Hi,
    Go to OMR6 for the company code set the tolerance limit for the tolerance key
    DQ -Quantity Variance
    PP --Price Variance
    ST- Date
    G.Ganesh Kumar

  • Entering Invoices for an EXPIRED Blanket PO

    Hi All,
    Howcome the system lets me enter Invoices for an expired Blanket PO (when the Validity End date has passed) but there is a remaining amount in the overall limit (for example, out of 1,000 USD limit....Invoices upto only 700USD entered....so 300USD remaining...but the Blanket PO is expired).
    I thought what ever comes first --- the Value Limit OR the Validity End date would block further invoices for payment?
    Isn't this the case?
    Thanks in advance
    Edited by: Duke Dukester on Sep 17, 2008 12:07 AM
    Edited by: Duke Dukester on Sep 17, 2008 12:10 AM

    On a framework order by setting the item category to B will invoke the
    Limit functionality on the PO. The expected value will be the price
    that appears on the PO. The overall value is the absolute limit that
    the system will accept against this PO. The overall value can be larger
    than the expected value, never less.
    Using MIRO; (1) enter the invoice date, reference # and amount of
    invoice. (2) enter the PO #, (3) ensure the display variant = account
    assignment - cost center. (4) click on the yellow arrow icon in the
    account assignment column, (5) enter the invoice amount on the first
    line of the account assignment box, (6) click the BACK button on the
    account assignment box, (7) the traffic light should now be green and
    you can save your invoice.
    regards
    kunal
    award if helpful

  • User exit for Invoice verification

    Hi
    We want to findout user exit for invoice verification/MIRO .  Is there any user exits available for MIRO.

    The below are for MIRO
    LMR1M001 User exits in Logistics Invoice Verification
    LMR1M002 Account grouping for GR/IR account maint
    LMR1M003 Number assignment in Logistics Invoice Verification
    LMR1M004 Logistics Invoice Verification: item text for follow-on docs
    LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006 Logistics Invoice Verification: Process XML Invoice
    MRMH0001 Logistics Invoice Verification: ERS procedure
    MRMH0002 Logistics Invoice Verification: EDI inbound
    MRMH0003 Logistics Invoice Verification: Revaluation/RAP
    regards
    Aravind
    Assign points if useful

Maybe you are looking for