How do find Oustanding Sales Report and Collection Report for A/R Invoice

Dear All,
                 I need to find the Sales Outstanding amount and Collection details like Check or Cash Or RTGS this is including A/R Invoice Amount and JE Pending Amount. Is it possible?
Kindly any body let me know some idea or if any sql query, plz send me.
Advance Thanks to all.
Regards,
A. Anvar

Hi!
Check this, with little modification you can get the report i think
Declare @FromDate as Datetime
Declare @ToDate as Datetime
SET @FromDate = (Select Min(S0.TaxDate) from ORCT S0 where S0.TaxDate >='20110201')
SET @ToDate = (Select Max(S1.TaxDate) from ORCT S1 Where S1.TaxDate < ='20110228')
Select R0.TaxDate,R0.Docnum,R0.CardCode,
'Cash' [Payment Mode],R0.CashSum [Amount]  from ORCT R0
Where
R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate   and R0.Canceled = 'N'
Union All
Select R0.TaxDate,R0.Docnum,R0.CardCode,
'Cheque' [Payment Mode],R0.CheckSum  [Amount]  from ORCT R0
Where
R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate  and R0.Canceled = 'N'
Union All
Select R0.TaxDate,R0.Docnum,R0.CardCode,
'Discount' [Payment Mode],R0.TrsfrSum  [Amount] from ORCT R0
Where
R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate and R0.Canceled = 'N'

Similar Messages

  • How to find function module's and tables used for the particulat screen or TCODE?

    Hello Nation,
    I would like to know how to find the  function modules and tables used for the particular screen or TCODE or program.
    Example : I would like know the function module used in the program RDBGFT?
                     How can i find that?
    Thanks in advance ,Awaiting your reply.

    Make use of Find function  with the keyword "CALL FUNCTION".
    Make use of the same find function with the keyword "Select" to know the database tables used.
    Regards,
    Philip.

  • How to find unsued Transfer Rules and Data Sources for a Master Table...??

    How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use

    Hi
    Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
    Cheer
    Ans as expected, Please reward

  • How to find out the plants and storage location for a given company code

    hi
    How to find out the plants and storage location for a given company code

    Hi
    Check for Assignem,ent of Plant & compnay code in OX18
    & for Combination of Plant & Storage location in OX09
    The total org structure can be viewed in EC01 - Click on Structure  -> navigation
    & Continue, Click on the Compnay code & the wole structure can be viewed
    Thanks & Regards
    Kishore

  • How to find custom Tcodes,programs and enhancement.. for a specific country

    hi...
    Is there any way in ABAP to find the Custom Tcodes, programs and enhancements only for specific country in our present system.

    Hi Srujan,
    Use the table name TSTC to find the custom program and t-code.
    To find the custom enhancement use t-code : CMOD.
    Regards
    Dev

  • How set authorizations for sales reports and other reports in SAPB1

    Hi, I'm currently working in SAP Business One Version 8.82
    The issue I'm facing is that I want to set it up so that certain users cannot see other users' sales information.  I know that I can turn on or off the Sales Analysis Report for various users for instance, but what I really want specifically is this.  Suppose we have 3 different teams: Team A consists of (Angie, Angela, and Anita the manager), Team B consists of (Bob, Barbara, and Ben the manager), Team C consists of (Cat, Charlie, and Courtney the manager).  I would like to make it so that everyone can view the individual sales order documents of everyone else (in case a customer calls and needs information, but the salesperson who created that document isn't there); however, Angie should only see her own orders when she does a Sales Analysis while Anita, the manager of Team A, should see the the orders of Angie, Angela, and herself of course.
    To summarize, I'd like to see the following
    1.  Each salesperson can lookup and view any sales order.
    2.  Each salesperson can run an sales report to view all his/her own open sales orders.
    3.  Each manager can run a sales report on his/her subordinates, but not on the other managers or their subordinates.
    4.  The boss or other people working in corporate are able to run a report on all open sales orders.
    What's the best way to approach this?  Is it best if I create my own report?  I haven't created any reports from scratch yet, so I'm not sure exactly how that works.  I'd like to be able to group the salespeople up by location if possible.  The sales analysis report doesn't really do that, but it is useful.  I just don't want everyone to be able to see the numbers on their peers.
    Thank you I appreciate any help or advice.

    Hi,
    1.  Each salesperson can lookup and view any sales order.
    Answer:
    Create own report by using query and save under query manager and the assign for all group. So that all sales person can run this query  and can get sales order detail.
    2.  Each salesperson can run an sales report to view all his/her own open sales orders.
    Answer:
    Create individual query ( add condition in where clause slpname = 'XXX') for each sales person and save it under query manager and assign to particular user group
    3.  Each manager can run a sales report on his/her subordinates, but not on the other managers or their subordinates.
    Answer:
    Create query for only particular team (  condition is slpname = XXX OR YYY OR ZZZ) and save under query manager. Make schedule report on this and send it to only particular manger
    Same way create for another manager and schedule report.
    4.  The boss or other people working in corporate are able to run a report on all open sales orders
    Answer.
    Create query for all sales person and schedule report to big boss.
    Hope you can get an idea.
    Let me know if you need sales report ( advice required field)
    Thanks & Regards,
    Nagarajan

  • Sales and Collection Report

    Dear Experts
    Am using below query for Sales and collection report but i came across that if i have  cancel any incoming payment is also showing in this report.
    Am requesting to modify this query in which if i or user do any cancellation of transction should not reflect in this report.In short Excluding of Cancelled entry
    Thanks in Advance
    Parikshit
    SELECT  M.SlpName, M.Sales,  M.Collection
    FROM (SELECT T1.SlpName AS 'SlpName',SUM(T0.DocTotal) as 'Sales', 0 as 'Collection'
    FROM OINV T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    WHERE T0.DocDate >=[%0] AND T0.DocDate <=[%1]
    GROUP BY T1.SlpName
    UNION ALL
    SELECT H2.SlpName AS 'SlpName', 0, SUM(H0.DocTotal) as 'Collection'
    FROM ORCT H0 INNER JOIN OCRD H1 ON H0.CardCode = H1.CardCode
    INNER JOIN OSLP H2 ON H1.SlpCode = H2.SlpCode
    WHERE H0.DocDate >= [%0] AND
    H0.DocDate <=[%1] GROUP BY H2.SlpName
    )M

    SOLVED

  • How to find open sales orders.

    Hi Gurus,
    Can you please help me out How to find open Sales orders in SAP.
    Is there any transaction code available or we can get it through via tables.
    Your afforts are highly appriciated .
    SRavani.

    Dear SRAVANI,
    You can find open sales orders from the Transaction code "VA05N", You just run this report, Below the screen you can find open sales orders radio button , you select this and give execution parameters and execute(F8).
    You will get the all open orders.
    Hope it fixes your issue.
    Please check it and revert.
    Thanks&Regards
    Raghu.k

  • How to find out peak workload and peak workload hours ?

    We have recieved a query from client.
    they want us to tell them peak work load (volume of data database manage at peak work load hours).
    now the question is how to find out peak workload and peak workload hour in live prod database?
    i do not think AWR report will give any clue on this even if when extract it for the hours when my database is into some daily planned activity with lots of transactions.
    share your findings? thanks

    The OEM portal allows you to view performance data in a chart over time, based on data in the AWR tables. If you don't have OEM configured, then you can select directly from the tables and sum by snap. Or if you are collecting data at OS level, (SAR etc) then use that.
    If they are just interested in data changes, then you could just select FIRST_TIME, blocks *block_size from v$archived_log and break it down by hour etc.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to find all open POs and there SUM

    How to find all open POs and there SUM
    Please help.
    Thanks,
    vihar9

    Have you tried looking at the tables, standard reports, or the PO display transaction?  Have you asked your functional analyst or development team lead? This is not a forum to post a requirement and get your job done for you...

  • Can anybody tell me how to extract sales value and cost value for an materi

    dear all,
    Can anybody tell me how to extract sales value and cost value for an material sold .
    All the values of cost value and sale values are getting  stored in bseg-wrbtr field .
    How to identify them uniquely.
    Or there is another way to find the sale and cost values.
    Regards
    Mave

    Hi Mave!
    Normally there is no condition change, when something is sold.
    But sales price depends on sales conditions (not only price, but also surcharges, discounts, taxes - if customized).
    Nevertheless, after selling you have a invoice document, where correct values <i>should</i> be stored (see VBRP fields mentioned above). If here is a problem, then customizing of price determination is in question, not a programming of user-exits with MARD selection for costs (or some other tries to get a price).
    When you specify your requirements more in detail, you might get better answers - but currently only general hints are possible ('see in invioce / G/L accounts').
    Regards,
    Christian

  • How to find the column name and table name with a value

    Hi All
    How to find the column name and table name with "Value".
    For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
    Any help is highly appricatable
    Thanks & Regards
    Srikkanth.M

    2 solutions by Michaels (the latter is 11g upwards only)...
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"or
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from cols,
           xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
           columns result varchar2(10) path '.'
    where table_name in ('EMP', 'DEPT')
    TABLE_NAME           COLUMN_NAME          SEARCH_STRING        RESULT   
    DEPT                 DNAME                ES                   RESEARCH 
    DEPT                 DNAME                ES                   SALES    
    EMP                  ENAME                ES                   JONES    
    EMP                  ENAME                ES                   JAMES    
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   PRESIDENT
    EMP                  JOB                  ES                   SALESMAN 
    9 rows selected.

  • Accounts Receivable and collections report project-wise

    Dear all,
    My client wants accounts receivable and collections reports project wise. are there any reports in PS which satify this requirements. If no, pls suggest me how to cater to this requirement.
    Pls help me on this issue.
    Thank you very much in advance.
    Regards,
    Vishnu.

    Hi,
    If your cash flow scenario is very complex with partial payments, deferred debt, down payments etc., none of the standard reports including FBL5N / FBL1N will be helpful. If the scenario is fairly simple , FBL5N / FBL1N  should work for you.
    In a complex scenario, you may have develop your own reports based on the basic logic of FBL5N.
    Regards
    Murali

  • How to find hp build id and feature byte id

    how to find hp build id and feature byte id in HP Elitebook 8460p

    After debugging SM04, we found somthing below:
    Report           RSM04000_ALV
    call 'ThUsrInfo' id 'OPCODE' field opcode_list
       id 'TAB' field usr_tabl-sys.
    Internal table     usr_tabl

  • How to find out relevant Infosources and Infocubes for Datasources (LO)

    Hi Gems,
    I am new to BW.
    How to find out relevant Infosources and Infocubes for Datasources for LO Cockpit
    any help site pls.
    Thanks in advance

    1. make sure that your datasources have activated (trans RSA5 in SAP Source System) from the SAP Source system (Ex: R/3 or SCM System)
    2. after that you have to run trans RSA9 in SAP Source System to transfer new datasource in to BI System.
    3. log-on into BI System, run trans RSA1, choose SourceSystem Tab in the left panel. Right click on to your SAP Source System then choose <b>Replicate</b>.
    4. in the left panel choose BI Content tab, select infoObjects by infoArea.
    5. then Click on Grouping, select in <b>Dataflow Before and afterward</b>. Click Collection Mode, select Collect Automatically.
    6.in the middle panel, expand "Supply Chain Management" infoArea, select both <b>Characteristics: Logistics General</b> and <b>Key Figures: Logistics General</b>. Right click on it and select <b>Insert Objects for Collections</b>.
    7. After the objects have been inserted into Collected Objects then choose install with option Install in Background.
    8. Wait for the result.
    <b>Pls give point if you see its helpful.</b>
    Regards,
    Chuong Hoang

Maybe you are looking for

  • I give up. Have had a problem with HD Bay 4, and can't solve it

    I have had my Mac Pro for a year, through Tiger and now Leopard, and it has been a great machine... except. From the night I un-boxed it, it has refused to run a drive in bay 4. it partitions fine, looks fine, and then when copying something (say a 1

  • How to find out the host, client and sid for jdbc connection

    I've just registered at oracle application express and would like to test my java programm from my pc I need the connection string in form: "jdbc:oracle:thin:@host:port:sid"; where can I found out my host, port and sid? Thanks! Edited by: 1009284 on

  • How to start with XSLT Mapping

    Hi Everyone,     How to learn XSLT Mapping,Error Analysis,Triggering alerts and Trouble shooting in XI.Plz could anyone help to get through these areas?I'm facing many problems in my inetrviews in the above mentioned areas.I eagerly waiting for the r

  • Problem setting ADF BC Conneciton.  Error Invalid connections.xml

    Hi, I need to do some enhancement on an existing ADF Based project so I got the project source code from Source Control. But when I am trying to define a Database Connection on my Application Resources>Connections->New Connection->Database I am encou

  • My lock button on my iPhone 4 is stuck. What do I do now?

    I was just sitting in the car texting and went to lock my phone, and it was extremely hard to press the lock button. Well I ignored it, got another text, and went to lock my phone again and this time it wouldn't lock. I've never had any lock button p