DEFINING TOTAL INVOICES IN REPORTING

HI,
                 As my knowledge  Total Invoices will be derived from the following document types for each vendor selected
1. KR
2. KG
3. KA
4. RE
and Total Payments will be derived from the following document types for each vendor selected
1. KZ
2. KP
now how can we define total invoices and total payments  in query designer
if any formula is used please post the message.

Hi
Create a Counter on document no and use.
Check: [Counter in BEx|http://www.scribd.com/doc/24013301/Counter-in-BEx] for more info.
Srini

Similar Messages

  • Sales Order Report Showing Cost on the Sales Order & total invoice dollars

    I am looking for a report in SAP that shows you the Sales Order number, the cost on the sales order (NOT the average cost) the actual cost on the sales order detail line and then the total invoice dollars in month to date and year to date?
    Thanks,
    Linda

    You can use <b>T.code: COOIS </b> if Product Costing has been configured for MTO scenario whcih gives the costing details.
    You can also use To.code: <b>KE30</b> if CO-PA implemented.
    but if you want to link with billing, Please search for any reports in Sales information system.
    One more you can create a ABAP Query Report using T.code: <b>SQVI</b>
    Regards,
    Anbu

  • Report of total invoice per area

    Dear Experts,
    I am trying to make a report using query generator. The report is total invoice per area but I am still failed. here is the query I made:
    elect distinct OTER.descript,
    'invoice per teritory' = (select distinct sum(a.DocTotal) from oinv a inner join ocrd b on b.cardcode = a.CardCode where a.CardCode = OINV.CardCode and b.County = OCRD.County group by b.County) from INV1 inner join OINV on OINV.DocEntry =
    INV1.DocEntry
    INNER JOIN OCRD on OCRD.CardCode=OINV.CardCode
         LEFT JOIN OTER on OTER.territryID=OCRD.Territory
    where OINV.DocDate between '01/01/2010' and '01/28/2010'
    The result is as follows:
    Area A     47533700.000222
    Area A     53663149.964662
    Area B     772500.000010
    Area B     6705000.000072
    Area C     7890000.901213
    It is not expected.
    I am using query generator is :
    Area A     101196850
    Area B     7477500
    Area C     7890000.901213
    but my query still give unexpected result. Please advice. Thanks a lot.
    steve

    Thx Gordon.
    This thread is closed. I also find out the answer i.e.
    select distinct OTER.descript,
    'invoice per teritory' = (select distinct sum(a.DocTotal) from oinv a inner join OCRD b on b.CardCode = a.CardCode where
    b.Territory = OTER.territryID  group by b.Territory) from OINV
    INNER JOIN OCRD on OCRD.CardCode=OINV.CardCode
         LEFT JOIN OTER on OTER.territryID=OCRD.Territory
    where OINV.DocDate between '01/01/2010' and '01/28/2010'
    group by OTER.descript, OTER.territryID
    The result is similar with your query result.
    Steve.

  • "Invoice History Report "show wrong balance for supplier invoice with USD

    Invoice History Report show wrong balance for supplier invoice with USD Currency
    After I run this report i see in the last of this report there is difference between the supplier total
    USD (Currency ) and the open Balance USD , it is decreased the open balance
    for supplier with 2300 USD with out any reasons
    bellow is some data copy of the report
    ======================================================
    Supplier Site Total: SAR 34,700.00
    Supplier Site Total: USD 39,000.00
    Supplier Total: SAR 34,700.00
    Supplier Total: USD 39,000.00
    Open Balance: SAR 34,700.00
    Open Balance: USD 36,700.00
    *** End of Report ***
    ==============================================
    please advise me from where can this differenc ( 39000 - 36,700=2300 )COMMING
    or it is bug in this report , becuase i compare this report with other report in account payable like
    -supplier open balance letter
    -invoice register report
    -invoice aging report
    all this report give me the amount for supplier USD =39000
    BUT AGIN FROM WHERE THE SYSTEM DECREASED THE AMOUNT TO 36,700
    thanks

    Can you try running Create Accounting For payments just before you run the Invoice History Report and re-check .
    Thanks

  • (Invoice register Report – Payment Register report = Aging Report)

    Hi,
    The total balance for Invoice registers report “minus” the balance for Payment register report not give me the balance of Invoice aging report
    The expected behavior:
    It must minus the balance between the two reports equal to invoice aging report
    (Invoice register Report – Payment Register report = Aging Report) But this not happen
    What the issue causing for that ?
    Thanks

    Hello.
    I think you cannot expect that calculation to be correct. Just to mention Payment Register, this report does not have a total in the functional currency.
    The following excercise is true:
    Ending Balance of Accounts Payable Trial Balance on period 1 + Posted Invoice Register on period2 - Posted Payment Register on period2 = Ending Balance of Accounts Payable Trial Balance on period 2
    Octavio

  • Only sub total in alv report

    hi,
    I have a report on ALV with sub totals for some fields, it is working fine but my requirement is whether i can get only the sub totals of that report.
    regards,
    Prabhu

    HI
    refer this code.
    REPORT ZALV.
    TYPE-POOLS: SLIS.
    DATA: G_REPID LIKE SY-REPID,
    GS_PRINT            TYPE SLIS_PRINT_ALV,
    GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
    GT_EVENTS           TYPE SLIS_T_EVENT,
    GT_SORT             TYPE SLIS_T_SORTINFO_ALV,
    GS_LAYOUT           TYPE SLIS_LAYOUT_ALV,
    GT_FIELDCAT         TYPE SLIS_T_FIELDCAT_ALV,
    FIELDCAT_LN LIKE LINE OF GT_FIELDCAT,
    COL_POS TYPE I.
    DATA: BEGIN OF ITAB,
      FIELD1(5) TYPE C,
      FIELD2(5) TYPE C,
      FIELD3(5) TYPE P DECIMALS 2,
    END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0.
      INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB1.
    DATA: BEGIN OF ITAB_FIELDCAT OCCURS 0.
      INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB_FIELDCAT.
    Print Parameters
    PARAMETERS:
                P_PRINT  AS CHECKBOX DEFAULT ' ', "PRINT IMMEDIATE
                P_NOSINF AS CHECKBOX DEFAULT 'X', "NO SELECTION INFO
                P_NOCOVE AS CHECKBOX DEFAULT ' ', "NO COVER PAGE
                P_NONEWP AS CHECKBOX DEFAULT ' ', "NO NEW PAGE
                P_NOLINF AS CHECKBOX DEFAULT 'X', "NO PRINT LIST INFO
                P_RESERV TYPE I.                  "NO OF FOOTER LINE
    INITIALIZATION.
    G_REPID = SY-REPID.
    PERFORM PRINT_BUILD    USING GS_PRINT.      "Print PARAMETERS
    START-OF-SELECTION.
    TEST DATA
    MOVE 'TEST1' TO ITAB1-FIELD1.
    MOVE 'TEST1' TO ITAB1-FIELD2.
    MOVE '10.00' TO ITAB1-FIELD3.
    APPEND ITAB1.
    MOVE 'TEST2' TO ITAB1-FIELD1.
    MOVE 'TEST2' TO ITAB1-FIELD2.
    MOVE '20.00' TO ITAB1-FIELD3.
    APPEND ITAB1.
    DO 50 TIMES.
      APPEND ITAB1.
    ENDDO.
    END-OF-SELECTION.
    PERFORM BUILD.
    PERFORM EVENTTAB_BUILD CHANGING GT_EVENTS.
    PERFORM COMMENT_BUILD  CHANGING GT_LIST_TOP_OF_PAGE.
    PERFORM CALL_ALV.
    FORM BUILD.
    DATA FIELD CATALOG
    Explain Field Description to ALV
    DATA: FIELDCAT_IN TYPE SLIS_FIELDCAT_ALV.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME = 'FIELD1'.
    FIELDCAT_LN-TABNAME   = 'ITAB1'.
    *FIELDCAT_LN-NO_OUT    = 'X'.  "FIELD NOT DISPLAY, CHOOSE FROM LAYOUT
    FIELDCAT_LN-KEY       = ' '.   "SUBTOTAL KEY
    FIELDCAT_LN-NO_OUT    = ' '.
    FIELDCAT_LN-SELTEXT_L = 'HEAD1'.
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME = 'FIELD2'.
    FIELDCAT_LN-TABNAME   = 'ITAB1'.
    FIELDCAT_LN-NO_OUT    = 'X'.
    FIELDCAT_LN-SELTEXT_L = 'HEAD2'.
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME     = 'FIELD3'.
    FIELDCAT_LN-TABNAME       = 'ITAB1'.
    FIELDCAT_LN-REF_FIELDNAME = 'MENGE'. "<- REF FIELD IN THE DICTIONNARY
    FIELDCAT_LN-REF_TABNAME   = 'MSEG'.  "<- REF TABLE IN THE DICTIONNARY
    FIELDCAT_LN-NO_OUT        = ' '.
    FIELDCAT_LN-DO_SUM        = 'X'.   "SUM UPON DISPLAY
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    DATA SORTING AND SUBTOTAL
    DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD1'.
    GS_SORT-SPOS      = 1.
    GS_SORT-UP        = 'X'.
    GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD2'.
    GS_SORT-SPOS      = 2.
    GS_SORT-UP        = 'X'.
    *GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    ENDFORM.
    FORM CALL_ALV.
    ABAP List Viewer
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = G_REPID
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    I_STRUCTURE_NAME = 'ITAB1'
    IS_LAYOUT =  GS_LAYOUT
    IT_FIELDCAT = GT_FIELDCAT[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
      IT_SORT = GT_SORT[]
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
      IT_EVENTS = GT_EVENTS[]
    IT_EVENT_EXIT =
      IS_PRINT = GS_PRINT
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB = ITAB1
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.
    ENDFORM.
    HEADER FORM
    FORM EVENTTAB_BUILD CHANGING LT_EVENTS TYPE SLIS_T_EVENT.
    CONSTANTS:
    GC_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
    *GC_FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE'.
      DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE = 0
           IMPORTING
                ET_EVENTS   = LT_EVENTS.
      READ TABLE LT_EVENTS WITH KEY NAME =  SLIS_EV_TOP_OF_PAGE
                               INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
        APPEND LS_EVENT TO LT_EVENTS.
      ENDIF.
    define END_OF_PAGE event
    READ TABLE LT_EVENTS WITH KEY NAME =  SLIS_EV_END_OF_PAGE
                             INTO LS_EVENT.
    IF SY-SUBRC = 0.
      MOVE GC_FORMNAME_END_OF_PAGE TO LS_EVENT-FORM.
      APPEND LS_EVENT TO LT_EVENTS.
    ENDIF.
    ENDFORM.
    FORM COMMENT_BUILD CHANGING GT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
      DATA: GS_LINE TYPE SLIS_LISTHEADER.
      CLEAR GS_LINE.
      GS_LINE-TYP  = 'H'.
      GS_LINE-INFO = 'HEADER 1'.
      APPEND GS_LINE TO GT_TOP_OF_PAGE.
      CLEAR GS_LINE.
      GS_LINE-TYP  = 'S'.
      GS_LINE-KEY  = 'STATUS 1'.
      GS_LINE-INFO = 'INFO 1'.
      APPEND GS_LINE TO GT_TOP_OF_PAGE.
      GS_LINE-KEY  = 'STATUS 2'.
      GS_LINE-INFO = 'INFO 2'.
      APPEND GS_LINE TO GT_TOP_OF_PAGE.
    CLEAR GS_LINE.
    GS_LINE-TYP  = 'A'.
    GS_LINE-INFO = 'ACTION'.
    APPEND GS_LINE TO  GT_TOP_OF_PAGE.
    ENDFORM.
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
      WRITE: SY-DATUM, 'Page No', SY-PAGNO LEFT-JUSTIFIED.
    ENDFORM.
    FORM END_OF_PAGE.
      WRITE at (sy-linsz) sy-pagno CENTERED.
    ENDFORM.
    PRINT SETTINGS
    FORM PRINT_BUILD USING LS_PRINT TYPE SLIS_PRINT_ALV.
      LS_PRINT-PRINT              = P_PRINT.  "PRINT IMMEDIATE
      LS_PRINT-NO_PRINT_SELINFOS  = P_NOSINF. "NO SELECTION INFO
      LS_PRINT-NO_COVERPAGE       = P_NOCOVE. "NO COVER PAGE
      LS_PRINT-NO_NEW_PAGE        = P_NONEWP.
      LS_PRINT-NO_PRINT_LISTINFOS = P_NOLINF. "NO PRINT LIST INFO
      LS_PRINT-RESERVE_LINES      = P_RESERV.
    ENDFORM.
    *END OF ZALV PROGRAM
    Reward all helpfull answers.
    Regards.
    Jay

  • Un-invoiced Receipts Report

    How can I print an Un-invoiced Receipts Report which shows Purchase Orders for which goods are received , but not yet invoiced ? We require this report with sub-totals and tied to Un-invoiced Receipts G/L Account?
    Santosh

    Report RM07MSAL analyses GR/IR balances according to goods received but not invoiced and invoices received where good have not been fully delivered.

  • (Invoice aging report =   Cash Requirement Report)

    hi,
    The total balance for cash requirement report for specific supplier not match with the balance for Invoice aging Report also for specific supplier
    The expected behavior:
    It must to match the balance between the two reports
    (Invoice aging report = Cash Requirement Report)
    But this not happen when I compare the balances between the report’s
    Kindly , Advise .
    Thanks

    Hello.
    The Invoice Aging Report shows unpaid invoices, which may be not due yet. Use the Cash Requirement Report to forecast your immediate cash needs for invoice payments.
    Octavio

  • Invoice matching report in AR Donwpayment Invoice

    Hi Expert,
    Customer would like to see AR Downpayment Invoice matching report as follow. May I know how to derive the information?
    BP name(A)   D/P Inv No(B).  Total amount in D/P Inv(C)    Amount applied in invoices(D)    Remaining balance(E)=C-D
    and the report must include supporting information about paid invoices
    Inv No.    Posting date      Amount.--> Total of these amount must be same with (D)
    Regards
    Thomas

    Dear Thomas,
    In order to get this information you need a query that would work out the values in the ar down payment invoice.
    This can be a beginning. However, some values must be calculated in the query because they are not in the table.
    SELECT T0.DocNum, T0.CardCode, T1.VatSum, T1.LineTotal, (T1.LineTotal * T0.DpmPrcnt/100) as DPM, (t1.LineTotal - (T1.LineTotal * T0.DpmPrcnt/100) - T1.VatSum) as PAYM_LEFT FROM ODPI T0  INNER JOIN DPI1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocNum = '1'
    Please, let me know if this is sufficient or you need some more information from the query.
    Kind Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Print Un-invoiced Receipts Report

    Hello,
    How can I print an Un-invoiced Receipts Report which shows Purchase Orders for which goods are received , but not yet invoiced ? We require this report with sub-totals and tied to Un-invoiced Receipts G/L Account.
    Thanxs
    Ganesh

    Report RM07MSAL analyses GR/IR balances according to goods received but not invoiced and invoices received where good have not been fully delivered.

  • Invoice query report

    Hi B1 Experts
    Kindly help me....
    I need A/R invoice query report which will give me the Daily, monthly and yearly total invoicing as on date in a single screen also without using XL reporter.
    I am using SAP B1 version 2005B PL36.
    Thx in advance.
    Rozario.

    SELECT DISTINCT T0.CardCode [Customer],
    (SELECT ISNULL(SUM(I1.LineTotal),0) FROM INV1 I1 INNER JOIN OINV I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode AND Day(I1.DocDate) = Day(GetDate())) [Daily],
    (SELECT ISNULL(SUM(I1.LineTotal),0) FROM INV1 I1 INNER JOIN OINV I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode AND Month(I1.DocDate) = Month(GetDate())) [Monthly],
    (SELECT ISNULL(SUM(I1.LineTotal),0) FROM INV1 I1 INNER JOIN OINV I ON I1.DocEntry = I.DocEntry WHERE I.CardCode = T0.CardCode AND Year(I1.DocDate) = Year(GetDate())) [Yearily]
    FROM [dbo].[OINV] T0
    GROUP By T0.CardCode

  • Invoices posted report

    Hi All,
    We have a requirement in our project. As a control, we have to verify a set of invoices (say 10% of the total invoices posted) to ensure that the invoices are correctly and accurately posted. Hence we need to implement this detective control.
    Is there a standard SAP report which gives the list of the invoices posted in the system and which may also select a sample from the

    Hi All,
    We have a requirement in our project. As a control, we have to verify a set of invoices (say 10% of the total invoices posted) to ensure that the invoices are correctly and accurately posted. Hence we need to implement this detective control.
    Is there a standard SAP report which gives the list of the invoices posted in the system and which may also select a sample from the total no of invoices posted.
    Thanks in advacne!
    Best Regards,
    Aman

  • Sub Total Button in Report Painter Output

    Hi,
    I am working on the Balance Sheet Report in the Report Painter and i am trying to display the sub totaling display in the output.
    In this i had defined the row which is based on the range of Account Number and it has the series i.e. 100000,30000,200000 etc..
    Is it possible to display the output sub total on the basis of the Account Number Series which is mentioned above. As in a ALV Report we have the sub total button  in report output.
    If it is,then please provide me guidelines for it ......
    Edited by: ricx .s on Jul 29, 2009 6:47 AM

    Hi,
    Try this code,
    it working,
    Data :  X_SORT      TYPE SLIS_SORTINFO_ALV,
    IT_SORT     TYPE SLIS_T_SORTINFO_ALV,
    X_SORT-SPOS = 1.                                " Field number of ALV on which u want to sort
      X_SORT-FIELDNAME = 'SEGMENT' .     " field name
      X_SORT-TABNAME = 'IT_ALV1'(001).  "table name same as ur alv table name
      X_SORT-UP = 'X'.                                   " put up as 'X'
      X_SORT-SUBTOT = 'X'.                      " Sub total allowed
      APPEND X_SORT TO IT_SORT.          "append
      CLEAR X_SORT.                                "clear x_SORT
    "in ALV_GRID_DISPLAY pass the it sort in it_SORT
    IT_SORT                 =   IT_SORT
    Thanks
    Arun Kayal

  • Invoice Print Report Add. Layout needs to be displayed after Last Page

    Hi,
    I am working on Invoice Print Report multiple layout Customization with RDF as Query model and created RTF using BI Publisher DEsktop and have requirement of Repeating Header on all pages, Print Page Total on all pages and Grand Total, Total Payable , Payment Options on last page. This was acheived by <?start@last-page-first:body?><?end body?>. But in one of the layout there is requirement to start new page and display some usage report for the invoice. I tried several options like using splt page break then display the custom usage report. But since I have given start last page body anything after this page is not getting picked up.
    Can you please help in resolving this issue.
    Regards,
    Amit Kulwal

    Hi SAMI Mohammed ,
    I have same issue like your, but i have to diplay a window like footer with some information. i have done like above details .
    But when there are one page its displaying at page 1 only If there are 2 pages then its not at all diplaying in any pages.So kindly guide me regarding this.
    Thanks in Advance,
    Regards,
    Neelima

  • Need to convert AP Invoice Aging Report in Excel format

    Hi,
    Need to convert AP Invoice Aging Report in excel format..there was an existing Invoice Aging report in AP and that was in paper format. That we need to convert to rtf template..
    There was an other concurrent program called 'Invoice Aging Report (XML) - Reserveed for future use', when i am using that rtf template..to get the report output it was taking more than 1 hr time.
    1)Is there any way/patch to get that XML report to be used in 12.1.3 EBS version
    2) is there any other way to get the report output faster.
    Thanks..

    Hi,
    When submitting the request, you may change the output to Excel and get the output in Excel. Otherwise as you mention if you getting the output in text format, you may download the text format and open the document in excel and use the delimitation to format in excel as per your requirement.
    1)Is there any way/patch to get that XML report to be used in 12.1.3 EBS version
    2) is there any other way to get the report output faster.
    Is your statistics up to date, when did you last run gather schema statistics program in Sysadmin responsibility.
    Also what is the record quantity that you are expecting here? Is date range parameter available in the report and if yes, did you try running the report for a day to check the output.
    Thanks &
    Best Regards,

Maybe you are looking for