A/R invoice report

Hi,
Can anyone help me in changing this SQL Query so it summarizes the total sales numbers: lines - T1.[DocTotal]- T1.[VatSum] and -1*(T1.[DocTotal]- T1.[VatSum]) AS 'Total', by country (T3.Name), by agent name (T4.CARDNAME) and by dates, year (2011, 2012, etc.).
Thank you very much!
SELECT
T3.Name as 'Country',
T1.DocNum as 'Document number',
T1.DocDueDate as 'Date',
T1.[DocTotal]- T1.[VatSum] AS 'Total',
(T1.[DocTotal]- T1.[VatSum])-T1.[GrosProfit]
T1.[GrosProfit]
T1.CardCode as 'Card Code',
T1.CardName as 'Customer Name',
T2.city as 'Customer City',
T1.BPCHCODE as 'Agent Code',
T4.CARDNAME as 'Agent Name',
T4.city as 'Agent City'
FROM OINV T1
INNER JOIN OCRD T2 ON T1.CardCode = T2.CardCode
INNER JOIN OCRY T3 ON T2.Country = T3.Code
LEFT JOIN OCRD T4 ON T4.CARDCODE = T1.BPCHCODE
WHERE
((T3.Name = '[%0]')  or ( [%0] =''))
and ((T1.[DocDate] >= [%1] ) or ( [%1] =''))
and ((T1.[DocDate] <= [%2] ) or ( [%2] =''))
UNION
SELECT
T3.Name as 'Country',
T1.DocNum as 'Document number',
T1.DocDueDate as 'Date',
-1*(T1.[DocTotal]- T1.[VatSum]) AS 'Total',
-1*((T1.[DocTotal]- T1.[VatSum])-T1.[GrosProfit])
-1*(T1.[GrosProfit])
T1.CardCode as 'Card Code',
T1.CardName as 'Customer Name',
T2.city as 'Customer City',
T1.BPCHCODE as 'Agent Code',
T4.CARDNAME as 'Agent Name',
T4.city as 'Agent City'
FROM ORIN T1
INNER JOIN OCRD T2 ON T1.CardCode = T2.CardCode
INNER JOIN OCRY T3 ON T2.Country = T3.Code
LEFT JOIN OCRD T4 ON T4.CARDCODE = T1.BPCHCODE
WHERE
((T3.Name = '[%0]')  or ( [%0] =''))
and ((T1.[DocDate] >= [%1] ) or ( [%1] =''))
and ((T1.[DocDate] <= [%2] ) or ( [%2] =''))
ORDER BY t3.name,T1.DocDueDate,T1.DocNum  DESC;

Hi,
Try this:
SELECT
T3.Name as 'Country',
T1.DocNum as 'Document number',
T1.DocDueDate as 'Date',
sum(T1.[DocTotal]- T1.[VatSum]) AS 'Total',
sum((T1.[DocTotal]- T1.[VatSum])-T1.[GrosProfit]),
T1.[GrosProfit],
T1.CardCode as 'Card Code',
T1.CardName as 'Customer Name',
T2.city as 'Customer City',
T1.BPCHCODE as 'Agent Code',
T4.CARDNAME as 'Agent Name',
T4.city as 'Agent City'
FROM OINV T1
INNER JOIN OCRD T2 ON T1.CardCode = T2.CardCode
INNER JOIN OCRY T3 ON T2.Country = T3.Code
LEFT JOIN OCRD T4 ON T4.CARDCODE = T1.BPCHCODE
WHERE
((T3.Name = '[%0]')  or ( [%0] =''))
and ((T1.[DocDate] >= [%1] ) or ( [%1] =''))
and ((T1.[DocDate] <= [%2] ) or ( [%2] =''))
group by  T3.Name,
T1.DocNum,
T1.DocDueDate ,
T1.[GrosProfit],
T1.CardCode ,
T1.CardName ,
T2.city ,
T1.BPCHCODE,
T4.CARDNAME ,
T4.city
UNION
SELECT
T3.Name as 'Country',
T1.DocNum as 'Document number',
T1.DocDueDate as 'Date',
-1*sum((T1.[DocTotal]- T1.[VatSum])) AS 'Total',
-1*sum(((T1.[DocTotal]- T1.[VatSum])-T1.[GrosProfit])),
-1*(T1.[GrosProfit]),
T1.CardCode as 'Card Code',
T1.CardName as 'Customer Name',
T2.city as 'Customer City',
T1.BPCHCODE as 'Agent Code',
T4.CARDNAME as 'Agent Name',
T4.city as 'Agent City'
FROM ORIN T1
INNER JOIN OCRD T2 ON T1.CardCode = T2.CardCode
INNER JOIN OCRY T3 ON T2.Country = T3.Code
LEFT JOIN OCRD T4 ON T4.CARDCODE = T1.BPCHCODE
WHERE
((T3.Name = '[%0]')  or ( [%0] =''))
and ((T1.[DocDate] >= [%1] ) or ( [%1] =''))
and ((T1.[DocDate] <= [%2] ) or ( [%2] =''))
group by  T3.Name,
T1.DocNum,
T1.DocDueDate ,
T1.[GrosProfit],
T1.CardCode ,
T1.CardName ,
T2.city ,
T1.BPCHCODE,
T4.CARDNAME ,
T4.city
ORDER BY t3.name,T1.DocDueDate,T1.DocNum
Thanks & Regards,
Nagarajan

Similar Messages

  • How to create dynamic Invoice report based on Tax calculations

    Hi Ppl,
    I have an invoice report requirement. There are multiple line items in invoice and each line item will have a tax % and discount associated with it. Discount has to be applied at line item level. Tax will be applicable on resultant amount which respect to tax share on total amount. Below is example
    Part# Tax     Qty     UnitPrice Amount     Discount     Net Value
    1     12.5%     40     10          400          100          300
    2     12.5%     50     20          1000          200          800
    3     4%     10     30          300          50          250
                             SubTotal                    1350
                             VAT 12.5% on 1100(300+800)     137.50
                             VAT 4% on 250               10
                             Total Amount               1497.5
    I have created a static rtf which does all calculations correctly. I have hardcoded 12.5 and 4 % tax values for calculations. But issue is that taxes are changeable in future so I want to create dynamic template which takes care for tax calculations. I thought of to create an array to store distinct tax values from XML data and then to perform calculation but don’t know how to do that.
    Can some body help me out as this is very critical and urgent?
    Note: Tax calculation can be done at line item level itself but there are some scenarios where additional discounts are there so tax calculation can not be done at line item level.
    Below is the sample XML data
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ListOfBipActionTest>
    - <Action>
    <AccountId>1</AccountId>
    <PartName>17211KCC900LS</PartName>
    <TAX>12.5</TAX>
    <QTY>40</QTY>
    <UNITPRICE>47.06</UNITPRICE>
    <DIS>15.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>2</AccountId>
    <PartName>17213KCC900LS</PartName>
    <TAX>12.5</TAX>
    <QTY>50</QTY>
    <UNITPRICE>19.53</UNITPRICE>
    <DIS>8.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>3</AccountId>
    <PartName>28302KAG900S</PartName>
    <TAX>12.5</TAX>
    <QTY>50</QTY>
    <UNITPRICE>59.49</UNITPRICE>
    <DIS>15.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>4</AccountId>
    <PartName>2830AKAG900S</PartName>
    <TAX>12.5</TAX>
    <QTY>10</QTY>
    <UNITPRICE>168.7</UNITPRICE>
    <DIS>15.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>4</AccountId>
    <PartName>91001GF6000S</PartName>
    <TAX>4.00</TAX>
    <QTY>60</QTY>
    <UNITPRICE>115.34</UNITPRICE>
    <DIS>17.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    </ListOfBipActionTest>
    Thanks
    Ashish

    Dear Efstratios Kara,
    I installed SAP Integration Kit 3.1. Yes I installed the integration kit after installing CR.
    I have uninstalled the earlier version and i have reinstalled CR with (12.3.0.601) version.
    But still i cant view the SAP connectivity. can u tell me from which version they have included this connectivity option in CR.
    If CR going to support SAP Table connectivity on specific version, what is that version.
    Waiting for your reply.
    Regards,
    Suman

  • A/r Invoice report query based on posting date selection criteria

    Hi experts,
    I am trying to write a query to get the A/r invoice report including Docnum, Docdate, cardname, project, linetotal, taxcode, taxtotal.
    and i tried the below query
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName],T1.[LineTotal] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocDate] >=[%0] AND  T0.[DocDate] <=[%1]
    In this query ,
    1) i am unable to sum up the linetotal( total before tax) 
    2) also unable to fetch the sum of taxamount.
    3) its more important , the above query will  me docnum , when i try to open that doc, it opens the 2007 docments. whereas the other details are correct like docdate, amount and all.
    example:   from date: 1/04/2011    to date: 28/07/2011
    Docnum    Docdate  cardname   linetotal.... etc
        2              1/04/11   XYZ              5000
    when i click the 2 (docnum)  it opens me the 04/04/2007  documents.
    how to limit the doc within the periods given?
    thanks in advance
    Dwarak

    Hi Rahul/Gordon,
    thanks for your query's .
    additionally,   i want this query without the A/r invoices whichever having credit memo as target doc. 
    and
    i have selection criteria as  T0.[U_Sec_Category] = '[%2]'  and this has 3 values like  1)CIM 2)BIN 3)DMP
    among these  CIM should be seen only only user1  and BIN & DMP only by user2.
    can u plz get me this
    thanks,
    Dwarak

  • Invoices report that displays also the VAT number

    Hi
    I am looking for invoices report that displays also the customer/vendor name and its VAT registration number.
    The customer invoices are SD invoices (can be displayed using the FI) and the supplier invoices are MM or FI invoices.
    It is relevant for the supplier invoices (MM/FI) and for the customer invoices (two seperate reports)
    Thanks
    Ofer

    Hi Edgar,
    As per my understanding, std SAP report won't fulfill your requirement. Best approach would be a custom report where you can update the required fields.
    Regards,
    Chandru

  • Vendor invoice report

    hi experts,
    I have an issue. I want to get the 'vendor invoice reporting' having the volume and as per the company code.
    i am unable to get it using the BSAD, BSID tables. if I use BSEG for vendor type K, i am unable to get doc type, or posting date.
    can anyone share ideas for which table to use to get the VENDOR INVOICE REPORT to get volume co.code wise.
    thanking you in advance
    priyanka

    Hi,
    What's wrong with FBL1N report?
    Regards,
    Eli

  • Error when attempting to run auto invoice report

    Hi,
    We are currently using Oracle E-Business Suite 11.2.  One of our users was attempting to run an Auto Invoice Report this morning and got an error occur.  The log file shows the following:
    SELECT INTERFACE_LINE_ID
    FROM   RA_INTERFACE_LINES L2
    WHERE  L2.REQUEST_ID = :b5
    AND    L2.INTERFACE_LINE_CONTEXT = 'UPLS INVOICES'
    AND    L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
    AND    L1.LINK_TO_LINE_ATTRIBUTE10 = L2.INTERFACE_LINE_ATTRIBUTE10
    AND    L1.LINK_TO_LINE_ATTRIBUTE11 = L2.INTERFACE_LINE_ATTRIBUTE11
    AND    L1.LINK_TO_LINE_ATTRIBUTE12 = L2.INTERFACE_LINE_ATTRIBUTE12
    WHERE NVL(INTERFACE_STATUS, '~') != 'P'
    AND (REQUEST_ID IS NULL OR REQUEST_ID IN (:b6)
    AND EXISTS
    SELECT 'x'
    FROM   RA_INTERFACE_LINES L2
    WHERE  L2.REQUEST_ID = :b7
    AND    L2.INTERFACE_LINE_CONTEXT = 'UPLS INVOICES'
    AND    L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
    AND    L1.LINK_TO_LINE_ATTRIBUTE10 = L2.INTERFACE_LINE_ATTRIBUTE10
    AND    L1.LINK_TO_LINE_ATTRIBUTE11 = L2.INTERFACE_LINE_ATTRIBUTE11
    AND    L1.LINK_TO_LINE_ATTRIBUTE12 = L2.INTERFACE_LINE_ATTRIBUTE12
    len = 1171
    Current system time is 09-OCT-2013 07:33:50
    APP-AR-11526: ORA-01427: single-row subquery returns more than one row
    UPDATE RA_INTERFACE_LINES L1
    SET REQUEST_ID = :b1,
    LAST_UPDATE_DATE =
    APP-AR-11526: 2913367/ar/src/autoinv/raamil.lpc 1333
    UPDATE RA_INTERFACE_LINES L1
    SET REQUEST_ID = :b1,
    LAST_UPDATE_DATE = sysdate,
    LAST_UPDATED_BY = :b2,
    LAST_UPDATE_LOGIN = :b3,
    CUSTOMER_TRX_ID = NULL,
    INTERFACE_LINE_ID = NVL(INTERFACE_LINE_ID,
    RA_CUSTOMER_TRX_LINES_S.NEXTVAL),
    SET_OF_BOOKS_ID = NVL(SET_OF_BOOKS_ID, :b4),
    LINK_TO_LINE_ID =
    Would someone be able to help me with this as my knowledge on Oracle is quite basic and the person who usually deals with these queries is out of the office.
    Regards,
    Jon Ditchfield

    The error is
    APP-AR-11526: ORA-01427: single-row subquery returns more than one row
    A subquery that is supposed to return only one row is returning more than one. Most likely it is this query
    SELECT 'x'
    FROM   RA_INTERFACE_LINES L2
    WHERE  L2.REQUEST_ID = :b7
    AND    L2.INTERFACE_LINE_CONTEXT = 'UPLS INVOICES'
    AND    L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
    AND    L1.LINK_TO_LINE_ATTRIBUTE10 = L2.INTERFACE_LINE_ATTRIBUTE10
    AND    L1.LINK_TO_LINE_ATTRIBUTE11 = L2.INTERFACE_LINE_ATTRIBUTE11
    AND    L1.LINK_TO_LINE_ATTRIBUTE12 = L2.INTERFACE_LINE_ATTRIBUTE12

  • Special Characters in the Invoice Report

    I am working on Multi- Org Invoice report and it is displaying special characters in some of the fields for foreign languages, i tried to change the encoding but it didn't work, i am working on XML Publisher 5.0.
    (In reports builder Report Builder 9.0.2.0.3) Default XML Prolog value: <?xml version="1.0"?>, i changed it to <?xml version="1.0" encoding="iso-8859-1"?>
    <?xml version="1.0" encoding="UTF-8"?> , But it didn't work.
    Can someone help me on this issue.
    Thanks!
    Edited by: user8909874 on Jan 11, 2010 8:24 AM

    It seems to be problem with specific font, I am using a different one and its working now. Thanks for your reponse.
    Edited by: user8909874 on Jan 15, 2010 4:54 PM

  • Question marks coming in the menu bar in the Z Invoice Report

    Hello Everybody,
                            When I am executing the Zinvoice transaction code for my Invoice Report in my Development System and selecting the Get variant --> Variant name as VAR --> Clicking on the Execute button after that I am getting the following in the Menu bar :
    ?????????????????????Edit???????????????????????
    Also when pressing the F1key for help for the Invoice Report I am not getting any help message screen.
    Please provide the solution for above mention problem so that
    I can get all the options in Menu bar and after pressing the F1 key Help message Screen should appear  for my Invoice Report.
    Thanks and Regards,
    Ashish Thakkar.

    Hi Gareth,
              I had found the solution to the problem which I am facing in ZInvoice report .The Solution is :
    1]Keep your cursor on the Menu bar where ???????Edit???????? is coming .
    2]Keep your cursor on print preview option an press F1 key and a new popup screen appears named technical information.In that screen double click on the function name and a new screen appears named "DISPLAY STATUS STANDARD_FULLSCREEN,Interface SAPLKKBL.In this screeen single click on "Check Syntax button" and than single click on "Activate" button available in Application Toolbar.
    3] Than again move to my previous screen and now it shows the Proper menu bar as :
    List Edit Goto Views Settings System Help instead of getting ??????Edit??????? in the menu bar.
    Thanks and Regards,
    Ashish Thakkar.

  • Rebate Agreement accruals invoice reports

    Hi Team,
    As per my client requirement we need to prepare the below  rebate agreement accruals invoice report.
    Rebate agreement
    Rebate recipent
    Customer
    Invoice date
    Invoice
    Invoice Item Number
    Rebate Material
    Rebate material net quantity
    Invoice price
    Rebate accural  condition ( % or $)
    Total Rebate amount
    GST
    20000
    123456 (payer)
    1000
    01.01.2014
    987654321
    110
    ABC
    20
    10.00 $
    $ 10.00
    $ 10.00
    20000
    123456 (payer)
    1000
    01.01.2014
    987654321
    140
    ZYX
    5
    5.00 $
    $ 0/50
    $2.50
    We have prepared the report using rebate tables and achieved the results but we missed below one logic here.i.e.
    Business want to maintain the rebate accruals condition records for few customers accounts in the rebate agreement although it’s not related to rebate receipts account.
    Example: rebate agreement: 20000
    Rebate receipt: 123456 (Payer account)
    Rebate condition records
         1)    Customer & material combination – customer # 1000 and material # ABC – 5.0 % - appearing the reports –Status : Working appearing the reports Customer # 1000 Payer is -123456
    2)       Customer # 9999 and material # ZXY – 5.0% - Not appearing the report – Status: Failed
    Customer # 9999 is Payer – 88888 – both accounts are don’t have any PF relationship with rebate receipts # 123456
    When Rebate Condition records are maintaining for Rebate receipt related to customer (SP) account & material combination level in this scenario – Reports working fine .However, few scenarios like business need to maintain rebate accrual condition records for other payer customer accounts in the same agreement in this scenario – Reports is not pulling the invoice accruals due to logic missing our early logic given based on the rebate recipient customer level. I am excepting a technical logic with functional details in this.
    Could you please help me.
    Cheers,
    Jackon Robert

    Hi Omer,
    Proposal:
    Setup your rebate condition as amount = 0 and accruals = $
    The system will do the accounting movements for the accruals as usual
    When doing the final settlement in SD, nothing will be credited to the customer as the rebate condition is zero BUT the accruals will be reversed (as usual when doing the final settlement).
    That should work because it is standard SAP logic.
    On the other hand, it is a pity not to be able to credit the customer if you already have the rebate agreement created in the system.
    Are you 100% positive about this legal issue in your business environment?
    I did a few rebate projects in FMCG and it is standard practice to send credit memo to the rebate recipient: The Customer (Payer in SAP).
    Nobody ever said it was a problem, because practically speaking it is just one more credit note to the same customer that was invoiced beforehand!
    Best Regards,
    Franck Lumpe
    Freelance SAP Consultant

  • Invoice Report Error

    Hi All,
    I got the invoice report in vf05n. But in that report I am getting the sold - to-party number only not the name of the sold-to-party.But my client want the sold-to-party name should come.How to get this.
    Its urgent.
    Reward points for helpful answer.
    Regards
    Ashis

    hi
    better option goto LIS report
    IMG menu path for SIS:  IMG>Logistics General>Logistics Information System (LIS)
    Figure 1: IMG menu path for SIS configuration steps
    Task 1: Create Self-Defined Information Structure
    •     Use transaction code MC21 (menu path Logistics Data Warehouse>Data Basis>Information Structures>Maintain self-defined information structures> Create) to create a Self-Defined Information Structure. Give a customer-range number 990 (any available number between 501 and 999). To make it easier, use ‘copy from’ to copy structure from S001.
    Figure 2: Create a Self-Defined Info Structure
    Figure 3: Structure S990 is created as a copy of S001
    Structure S990 is created as a copy of S001. Accordingly, you will see defaulted characteristics and key figures. Review various settings (unit, sum, etc.).
    •     Add two more characteristics: Sales Order Number and Item Number.
    Click on ‘Choose Characteristics’ Icon and then click on ‘Selection List’ icon to choose fields from ‘field catalogs’.
    Choose field catalog ‘SD: Bus transaction (order)’ by double-clicking it. Double-click on  ‘Sales Document’ and ‘Sales document item’ from ‘field catalog fields’ (you may need to scroll-down).
    Figure 4: Choose fields ‘Sales Document’ and ‘Sales Document Item’ from Field Catalog
    You can view technical names by toggling the Switch Display icon.
    Figure 5: ‘Switch display’ to view technical names
    Make sure that you have selected correct characteristics as: ‘MCVBAK-VBELN’ and ‘MCVBAP-POSNR’.
    Click on ‘Copy + Close’ icon and then click on ‘Copy’ icon to accept the changes.
    •     Review information
    Double-click on characteristics and key figures to review technical information. This step is not mandatory, just for information.
    Figure 6: Review technical field information for characteristics: Customer (KUNNR), Sales Order (VBELN), Item (POSNR) and Key figures: Incoming Order (AENETWR), Open Order (OAUWE)
    System displays the generation log.
    Figure 7: Generation log for Structure S990. Table S990E is ‘Structural Information’ for Table S990
    Task 2: Maintain Update Groups
    •     SIS IMG>Logistics Data Warehouse>Updating>Updating Definition>General Definition Using Update Groups>Maintain Update Groups
    Figure 8: Update Groups for Sales and Distribution
    No new entries need to be created. You can use the existing system-delivered update groups. Use Update Group (UpdGrp) 1 for the standard order process of: SIS: Sales Document, Delivery, Billing Document and use UpdGrp 2 for the SIS: Returns, Returns Delivery, Credit Memo.
    Task 3: Maintain Update Rules
    •     SIS IMG>Logistics Data Warehouse>Updating>Updating Definition>Specific definition using Update Rules>Maintain Update Rules>Display
    Info Structure S001 and Update Group 1.
    Before we create update rules for S990, let's review how update rules are defined for S001. Review rules for Characteristics and key figures.
    Figure 9: Update Rules for combination of Structure S001 and Update Group 1
    Double-click to review specific details of the update rule for Key Figure ‘Incoming Orders’. Note that the event is ‘VA – Sales Order creation’.
    Figure 10: Update rules for Key Figure ‘Incoming Orders’
    Figure 11: Characteristics for Incoming Orders
    Similarly review details of Key Figure ‘Sales’. Note that the Invoiced Amount (Sales Amount) is updated by event ‘VD – Billing Document’.
    Figure 11: Update rules for Key Figure ‘Sales’
    Figure 12: Characteristics for ‘Sales’
    •     Similar to Update Rules of ‘S001’, we need to create Update Rules for our Self-Defined Structure ‘S990’.
    SIS IMG>Logistics Data Warehouse>Updating>Updating Definition>Specific definition using Update Rules>Maintain Update Rules>Create  (transaction code MC24). To make it easier, use ‘copy from’ to copy update rules from S001.
    Figure 13: Create Update Rules for Structure S990
    Please make sure the Source information is properly updated for all the characteristics. Since you copied the rules, the sales order and item rules are defaulted too. Make sure appropriate changes are made for events VC (delivery) and VD (Invoice).
    Figure 14: Source Characteristics for Sales Document and Item
    Since we copied the Update Rules, the source field and table information is also copied. We need to change appropriately to make sure correct source information is populated. Click on “Rules for charact” and verify source information for every key figure, by clicking on ‘previous key figure’ and ‘next key figure’.
    Figure 15: For Event ‘VD – Billing Document’, Sales Document and Item are present in MCVBRP table
    Figure 16: For Event ‘VC – Shipping’, Sales Document and Item are present in MCLIPS table
    Change Source information for following to MCVBRP-AUBEL and MCVBRP-AUPOS:
    o     Sales     
    o     Gross Invoiced Sales
    o     Net Invoiced Sls 1
    o     Net Invoiced Sls 2
    o     Inv freight Chrgs
    o     Bill Docmnt PS5
    o     Bill Docmnt PS6
    o     Invoiced Qty
    o     Invoiced sls – cost
    Change Source information for following to MCLIPS-VGBEL and MCLIPS-VGPOS:
    o     Open Orders     
    o     Open Order Qty
    - Save and Generate by clicking on the Generate icon.
    •     Similarly, copy update rules for Update Group 2. Transaction Code MC24.
    Repeat these rules for the combination of information structure S990 and update group 2. (“Copy from” info structure S001 and Update group 2).
    Figure 17: Maintain Update Rules for Structure S990 and Update Group 2
    Again, click on “Rules for charact” and verify source information for every key figure, by clicking on ‘previous key figure’ and ‘next key figure’.
    Change Source information for following to MCVBRP-AUBEL and MCVBRP-AUPOS:
    o     Credit Memos
    o     Gross Credit Memos
    o     Net Credit Memos 1
    o     Net Credit Memos 2
    o     Credit memos – freight
    o     Credit memos – subtotal 5
    o     Credit memos – subtotal 6
    o     Credit memos qty
    o     Credit memos – cost
    Task 4: Maintain Statistics Groups
    •     Maintain Statistics Groups
    Maintain Statistics Groups for Customers, Materials, SD Document Types etc. Most of the pre-defined settings are enough. Make sure that settings are updated for customized objects too, e.g., SD document types for your organizations.
    Also, make sure that the customer (sales view) and material Master records are updated with appropriate Statistics Groups.
    Figure 18: Maintain and assign statistics groups. IMG path: Updating> Updating Control> Settings: Sales> Statistics Groups
    - Maintain Statistics Groups for Customers (OVRA)
    Figure 19: Statistics Groups for Customers
    - Maintain Statistics Groups for Material (OVRF)
    Figure 20: Statistics Groups for Materials
    - Maintain Statistics Groups for Sales Document
    Figure 21: Statistics Groups for Sales Documents
    - Assign Statistics Groups for relevant Sales Document Type
    Figure 22: Assign Statistics Groups to relevant Sales Documents
    - Assign Statistics Groups for each Sales Document Item Type
    Figure 23: Assign Statistics Groups to relevant Item Categories
    -Assign Statistics Groups to each Delivery Type
    Figure 24: Assign Statistics Groups to relevant Delivery Types
    -Assign Statistics Groups to each Delivery Item Type
    Figure 25: Assign Statistics Groups to relevant Delivery Item Categories
    - Determine Billing Document Types Relevant to Statistics
    Figure 26: Assign Statistics Groups to relevant Billing Types
    Note: As mentioned earlier, most of the settings are already set in standard system. Make sure that customized objects specific to your company are also updated appropriately.
    - Update Customer Master for Statistics Relevancy
    Transaction Code XD02 (Sales view, field “Cust stats.Grp”)
    Figure 27: Assign Statistics Groups to Customer Master Records (Sales view)
    - Update Material for Statistics Relevancy
    Transaction Code MM02 (Sales 2 view, field “Matl statistics grp”)
    Figure 28: Assign Statistics Groups to Material Master Records (Sales view)
    Task 5: Assign Update Groups to Header and Item Levels
    •     Assign Update Groups on Header and Item levels
    For combinations of Sales Area (Sales Org, Distribution Channel, Division), assign Update groups (transaction codes OVRO and OVRP).
    SIS IMG>Logistics Data Warehouse>Updating>Updating Control>Settings: Sales>Update Group
    - Update Groups at Item Level
    Figure 29: Update Groups at Item Level
    Figure 30: Update Groups at Item Level - details
    - Update Groups at Header Level
    Figure 31: Update Groups at Header Level
    Figure 32: Update Groups at Header Level - details.
    Task 6: Activate SIS Update
    •     Lastly, Activate SIS Update for the Structure (transaction code OMO1)
    SIS IMG path: Logistics Data Warehouse>Updating>Updating Control>Activate Update>Choose Activity as Sales and Distribution.
    Let's update our SIS structure S990 with period as ‘Month’ and update option of ‘Asynchronous Updating (2)’.
    Figure 33: Activate SIS Update for S990
    SIS tests with Sales Order Processing  (Order>Delivery>Invoice)
    •     Create a Sales Order, transaction code VA01
    Figure 34: Create a standard Sales Order and Sales Order 6437 is saved
    (Pricing details)
    Figure 35: Pricing Details for the Sales Order
    •     Execute transaction ‘MC30’ to find out which information structures are updated. Please note that this step is not mandatory.
    Transaction code ‘MC30’ is worth mentioning here. This transaction code, provided user parameter MCL is set to ‘X’ in user’s master record, provides analysis of which structures are updated for the activity. It generates a log of updates to Information Structures and detailed analysis. Since, it can take resources, it is advisable not to set user parameter MCL in productive system.
    Figure 36: Transaction MC30 lists that Structure S990 is updated
    Double-click on S990 line to view more details.
    Figure 37: Transaction MC30 details for Structure S990
    •     Execute Standard Analysis Report.
    SAP>Logistics>Sales & Distribution>Sales Information System>Standard Analyses>Self defined analysis (transaction code MCSI). (Choose Structure S990). Enter appropriate values and execute.
    Figure 38: Standard Analysis report for Structure S990
    Figure 39: Standard Analysis report for Structure S990 for given criteria
    •     Create a Delivery/PGI and review its impact on Standard Analysis Report.
    Delivery 80007493 Saved, execute MC30 to review the update log.
    Figure 40: At the time of Delivery/PGI, Structure S990 is updated
    Figure 41: At the time of delivery, since Order is no more open, Open Order value is reduced
    Please note in the Standard Analysis report that the Open Order value is reduced accordingly.
    Figure 42: Standard Analysis report reflects correct Open Order value
    •     Create an Invoice and review SIS report.
    Invoice 90021696 saved. Review Update log with MC30.
    Figure 43: Invoiced/Sales amount is updated at the time of invoice
    Note that in the Standard Analysis report, Sales value has increased.
    Figure 44: Standard Analysis report reflects correct Sales Amount
    •     Summary changes in Information structure depending upon Sales activity
    Sales Order: Note Open Order has EUR 49.60 value.
    Delivery: Note Open Order value is reduced.
    Invoice: Note Sales column reflects correct invoiced amount.
    Figure 45: Summary – Information Structures reflects correct values depending upon the status of transaction: whether order created, shipped or invoiced
    if u r not understand send me test mail [email protected]
    regards
    krishna

  • Invoice report in SRM

    Hi Experts,
    I need an invoice report with below fields. is there any table(s) to get all these info?
    Appreciate your help.
    Invoice Number
    Line Number
    Posting date
    Currency
    Category code
    Cost center
    GL Account
    Supplier
    Total Amount (Inc.
    GST)        
    Tax Amount

    Hi senthil ,
    Check the below 2 reports For a detailed report you may need to contact a BI person or post in the BI forum .
    1. BBP_IV_UPDATE_PAYMENT_STATUS :You can use this report to synchronize the status of invoices in SAP SRM with the status in the back-end system. If an invoice in the back-end system has the status Paid, the status in SAP SRM is adjusted; that is, the status changes from Approved to Paid.
    Note that invoices in SAP SRM with the status Paid cannot be canceled.
    2.BBP_IV_AUTO_COMPLETE: This report checks for XML invoices with the status Waiting for Preceding Document, and whether appropriate documents have been posted in the meantime, and then attempts to post the relevant invoice.
    3. BBP_PD_INV_GETLIST  FM
    4. Use function module BBP_BE_PO_GETHISTORY and pass PO number (I_OBJECT_ID) and logical system (I_LOG_SYSTEM) and E_ITEM_HISTORY table will give you invoice number try BBP_PD_PO_DOC_FLOW with the PO number
    5. You may also choose to implement IMS
    http://help.sap.com/saphelp_srm50/helpdata/en/42/dc00a78d23162fe10000000a1553f7/frameset.htm
    6. Other Post https://scn.sap.com/thread/1221054

  • Multi-currency Invoice Report in USD and SGD

    Hi
    I am Developing Invoice report using XMLPin EBS ,which Must Show Currency in USD and SGD(Singapore Dollar),means at the end of report client want to display USD amount and SGD amount .In oracle report (RAXINV) I am able to get Both currency but In XML report The mapping field for SGD gives 0(zero) value.
    pls provide me inputs
    Thanks
    Rahul

    Hi Tim,
    In my XML file I am getting two fields
    1)<D_INV_ALL_AMOUNT> with value is in USD e.g. (20000) which I have mapped for USD currency in Template.
    2)<D_SGD_PAGE_ADJ_LINE_AMOUNT> This field is for SGD But giving 0(Zero) value. Which I have mapped for SGD.
    So I am able to print USD= 20000 and SGD =0 In the Template
    But when I run original Oracle report it gives both value, means USD =20000 and SGD=23435 after converting to USD in its text output. (In oracle report layout same above fields are mapped as a source)
    I have also created Currency Format Sets. as per user guide and used it in the template but it has no effect
    The output of XML report must be like this.
    |USD| 20000|
    |SGD| 23435|
    Simply I want to print both currency values in report
    Rahul
    Message was edited by:
    user576181

  • Pending invoice report

    Hi all
    What is pending invoice report? what is the tcode to create it?
    can we create it for  MM  also?
    regards
    Debu

    Hi,
    If you are asking about the invoice due list or the orders/deliveries for which invoices are pending then you can use
    VF04
    Regards
    Karan

  • DD250 Invoice report

    Has anybody out there ever created a DD250 invoice report using Oracle Reports. I am told that it is impossible to accomplish because it contains an extremely small font that you cannot use in Oracle Reports. Is this true or the person who told me this is wrong. Is anybody willing to share their experience with me.
    Thanks a lot in advance,
    Thomas Morgan
    [email protected]

    Approximately what size fonts are you looking for? I know 9i goes down at least to 4 pt font. I'm assuming 6i would go that far too.
    I doubt you would want to go below 4pt font anyway - thats super tiny. 8 is the lowest pt font listed in the drop down box, but just type in 4 and it will accept that.
    Without seeing a link to a sample report, thats all I can say. I dont work with the DOD so I have no idea what a DD250 invoice looks like.

  • Add PA_NON_LABOR_RESOURCES.DESCRIPTION in Invoice Report

    I need to modify the Invoice Report by adding the PA_NON_LABOR_RESOURCES.DESCRIPTION for each line in the invoice (q_lines query).
    I'm not sure how to tie a record in ra_customer_trx_lines back to pa_expenditure_items (also ensuring a one-to-one mapping) so I can use the NON_LABOR_RESOURCE column to lookup the description. I don't see any direct or indirect foreign keys between the two tables (customer trx lines and expenditure items). Any help will be greatly appreciated.
    Thanks,
    Ahsun Jilani

    Don't think there is a direct link back. You can use CUSTOMER_TRX_ID to tie back to SYSTEM_REFERENCE in PA_DRAFT_INVOICES_ALL but the PA invoice will not contain a one-to-one relationship with the expenditure items as you can't generate PA invoices to that level of detail. From PA_DRAFT_INVOICES you can get down to PA_DRAFT_INVOICE_ITEMS and then to PA_CUST_REV_DIST_LINES_ALL where you can then get to PA_EXPENDITURE_ITEMS. How the PA invoice is created depends on the invoice format you have used, the lowest level I can see is by expenditure type so you'll find that the invoice lines contain grouped items based on the type - well, as far as I can see anyway!!
    Graham

  • Exceptional Discount in invoice Report

    Hi,
                                        Under purchasing reports under Main menu,we are having 'exceptional discount in invoices ' report.What is the significance  of that? .Because there  it will show only the A/R Invoice report.Why it is given in Purchasing?
      Can u explain?
    Regards,
    Sekar

    Hi Sekar,
    It is not a big deal to me.  If you select Main Menu - Report, you will find Sales & Purchase is under one menu item. You may create your own Exceptional Discount in Purchase Invoice report based on system report.  It would be a simple report.
    Thanks,
    Gordon

Maybe you are looking for