Records Not Showing Up On Report

I'm using Crystal XI
I can take the query from "Show SQL Query..." and paste it into a query screen in SQL Server 2008 management studio and retrieve the correct records.  However, the report itself does not contain all the records the should have been returned.
To the best that I can figure, the records where a transaction date (date/time field) is null is not showing up on the report.  I only display the field, do not do any calculations based on the field. 
It is part of the record selection formula, where I test for the field to be between start/end parameters or is null (which produces the correct SQL query as I stated above)
So why are the records not showing up on the report, and more importantly, how do I get them to show up?
TIA

It already was set to "Exception for Nulls"
On the other hand, just on a whim, I tried reversing the order of the query from what it was:
{MyQuery.Company = {?Company}
    And
    {MyQuery.Transaction_Date} In {?Start/End Date}
    Or
    IsNull({MyQuery.Transaction_Date})
To:
{MyQuery.Company = {?Company}
    And
    IsNull({MyQuery.Transaction_Date})
    Or
    {MyQuery.Transaction_Date} In {?Start/End Date}
And that seemed to work.  I'm not sure why it will work in the Mangement Studio, but not in Crystal Reports, but at least it works.
Thanks for the tug in the right direction.

Similar Messages

  • Option claims from CRM are not showing in BW report.

    Hi All,
    We are having a problem with BW report. The report shows all the claims thatt are created in CRM system( spource sys- CRM). We notices that claims that are called as option claims are not showing in BW report, but they are present in BW. I have checked filters in report design. no filters exist. Where they are getting filtered out. Please help me.
    Haaris..

    Hi,
    I am giving you ore information on the above issue, the above query is running on an infoset, I realized, data is missing from infoset. Where as the data is present in DSO.
    The other thing I can see every other claim in BW, but I cannot see Option claim which are very less compared to other claims.
    The infoset has four DSOs and one characteristic as components.
    Please let me know if you get any idea?
    Haaris.

  • Help: Records not showing when cube is placed under the Multiporivider

    Hi Experts,
    I have a Cube called Bcube with char Plant,calm year/month, material and Key Figure, Pqty
    When I generate a report on this Cube, everything looks fine and I see plants, year, etc in the report
    There are 2 other cubes:
    MCube also has char Plant,calyear/month, material and Key Figure: Pqty, Sqty, TQty, AQty
    DCube also has same as BCube: with char Plant,calyear/month, material and Key Figure Pqty
    When I place all three cubes under the multiprovider, the values from the BCube does not show up in reports
    e.g. in a simple report such as
    Row       :  Plant
    Columns:  Pqty, Sqty, TQty, AQty
    In the Multiprovider, under the Indentification of Characteristics, I checked the boxes for all three cubes whenever the same charactertic in all cubes showed up for identification: e.g..
    InfoProvider  InfoObject
    Bcube----
    Plant
    MCube-------Plant
    DCube -
    Plant
    and same for. e.g. 0Calyear
    and same for Key Figures, e.g. I checked all 3 boxes  for PQty which exists in each of the cubes
    1. Why is my data for BCube not showing when reporting against the multiprovider?
    2. what does it mean by checking the 3 boxes for Plant? and checking the 3 boxes for 0Calyear.
    Thanks

    Hi,
    regarding your questions:
    1. When I run listcube against the multiprovider, I only went to the output list to select the fields I needed in the output; then entered the particular cube e.g. BCube in the infoprovider field. That was it (NO other selection) and I got the described results I explained earlier. If you have a specific test for me to try, please let me know.
    2. Please find the settings in both characteristics and key figures for all cubes in the MULTIPROVIDER maintenance screen:
    Characteristic Assighment:
    0calyear -- 3 boxes checked for BCube, DCube & MCube
    Plant -- 3 boxes checked for BCube, DCube & MCube
    0Material-- 3 boxes checked for BCube, DCube & MCube
    Key Figure selection
    PQty-- 3 boxes checked for BCube, DCube & MCube
    Sqty --checked for DCube, this key fig is ONLY in DCube
    TQty--checked for DCube, this key fig is ONLY in DCube
    AQty--checked for DCube, this key fig is ONLY in DCube
    I hope this helps you to guide me.
    Or, were you referring to mappings in the transformations?
    Thanks

  • Safari 6.0.1 not showing in System Report (installations)

    I have noticed that Safari 6.0.1 is not showing in System Report (installations) only the previous Safari 5.1.7 - Anyone know why this should be so? Now in Mountain Lion we do not have the update info in Software Update as before; only by going to "About this Mac". Any help appreciated!

    Now in Mountain Lion we do not have the update info in Software Update
    If you click your Apple menu icon you should see Software Update from the drop down menu.
    Clicking Software Update should open the App Store for you.

  • SPM 5.2 - problem with reason/activity fields - not showing in the report

    Dear experts,
    I have a situation that is hard to describe.
    We have SPM 5.2 - all set and working, now the problem is that for some of the FF sessions the tool is either not reporting the reason/activity fields (due to some technical problem that is occuring randomly) or the users have found a way to abuse the fields and make thier way around them. (these fields are very important for our SOX controls)
    I have created test users to see how they are entering without filling the reason/activity fields, but no luck - i couldnt enter.
    As you know the Activity field is mandatory text field and at least one character must be entered,  but I don`t think this is the workaround, because even if you put space the report still will show it. I have examples where the report is not showing anything.
    The worst is that I can`t simulate such cases.
    Have you ever heard of such nosense?
    Thank you,
    Iliya

    I think I found it - Application deficiency. It is the language that you are logged with. If it is not English the application is not recording the text that you type in the reason/activity fields upon FF session.
    I hope the latest patches are fixing this!
    BR
    Iliya

  • Report Document not show on Crystal Report Viewer in C#

    My program is modified from VB.NET. Now I struck with Crystal Report that Crystal Report Viewer didn't show Report Document.
    Printing code is composed of two forms. One assign parameters and objects need. Other is Crystal Report Viewer form, CrystalReportForm. Last one run report by parameter from the first.
    When run this code that it didn't found any error but the problem is no report show on Crystal Report Viewer on second form. It just blank Crystal Report Viewer. There arm't any message response.
    Here is my code.
    // report caller form.
    private void Print()
       CrystalReportForm rptForm = new CrystalReportForm();
       string[] strtbl;
      strtbl = new string[1];
       string[] strqry;
      strqry = new string[1];
       // prepare var
       string myqry;
       string myrpt;
       // Pass The Table That you used in the crystal Report
      strtbl[0] = "r_receipts";
       // Pass the Query
      myqry = "SELECT * FROM r_receipts";
      myrpt = "rptReceipts.rpt";
      strqry[0] = myqry;
       //Pass For Mdi True
      rptForm.MdiParent = this.ParentForm;
      rptForm.ViewReport(myrpt, strtbl, strqry, "");
       //Parameter Value It is Optional
      rptForm.Show();
    // Crytal Report Viewer form.
    public void ViewReport(string ReportName , string[] TableName, string[] QueryString , string Parameter = "")
       //Me.MdiParent = mainpage;
       if (TableName.Length  != QueryString.Length  )
       MessageBox.Show("Passed Variable Are Not Correct", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
       return;
       CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
       CrystalDecisions.Windows.Forms.CrystalReportViewer crv  = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
      crv.ActiveViewIndex = 0;
      crv.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
      crv.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
      crv.Dock = System.Windows.Forms.DockStyle.Fill;
      crv.Location = new System.Drawing.Point(0, 0);
      crv.Name = "CrystalReportViewer";
       MySqlDataAdapter at =new MySqlDataAdapter();
       DataSet ds = new DataSet();
       for (int i = 0; i < TableName.Length; i++)
      at = GetDataAdeptor(QueryString[i]);
      at.Fill(ds, TableName[i]);
       string rptPath  = "";
      rptPath = Application.StartupPath + "\\" + ReportName;
      rpt.Load(rptPath);
      rpt.SetDataSource(ds);
       if (Parameter != "")
      rpt.SetParameterValue(0, Parameter);
      crv.ReportSource = rpt;
      crv.Refresh();
       //CrystalReportViewer.DataBind();
       //Me.Panel1.Controls.Add(CrystalReportViewer);
       Panel panel1 = new Panel();
      panel1.Controls.Add(crv);

    Hi Bhushan,
    It's not yet fixed. My dataset (ds) can't bine to DataGridView as
    DataGridView1.DataSource = ds
    But it could do like this
    DataGridView1.DataSource = ds.Tables[0];
    When I bine to Crystal Report Viewer setdatasource
    CrystalReportViewer1.setdatasource = ds.Tables[0];
    It still not work, anyway you suggest let me in the right way. I very confuse the thing I fix to bine to DataGridView
    Thank,
    Chaiwat

  • Sales Invoice no & date is not showing in J2I6 Report

    Hello Experts,
    I am running J2I6 report for RG23A PART2 register. In this report Duty like  BED, Ecess & HEcess is showing in all case but for credit utilization i.e. sales part INVOICE no & Invoice no is not showing in Report.We have applied Enhancement pack(EHP 3) before some days. Due to this it can be a problem?
    Can anyone help me solved the problem.
    Regards,
    Piyush

    Try to create the same report manually by adding each column and run the report and then go for another column.
    This might narrow down to issue.
    or else get the sql query and work on where clause condition first to see the reason.
    if helps mark
    ~ http://cool-bi.com

  • Data not showing up on report

    Hi
    I have an Infocube that has data (ready for reporting) loaded from APO Livecache.
    I'm running a BEX report that gets data from that cube, and for some reason the value for one Key figure is not showing up.
    It's there in the infocube, but is not showing up on the report. The column for that key figure is just blank.
    What can I check or do to see the value there?
    Thanks!
    Pooja

    Hi
    There are no restrictions or conditions on the KF and it is running on a single Infocube.
    There are non-zero values in the cube.
    The field level authorizations are also fine...
    we used to be able to see the values when we last ran this report 2 weeks back.
    There's a calculated key figure that is a sum of this key figure that's not showing up and another one. It is showing the aggregate value correctly! Eg:
    KF not showing up: Production Planned
    2nd KF : On Hand Stock
    Calculated KF Ending Inventory = Production Planned + On Hand Stock
    Although Production Planned is not showing up in the report, I checked its value in the cube and the Ending Inventory value is summed correctly in the report.

  • New Field not Showing up in Report.

    I have a CR query that I am editing to add a column to my report.  When I make my edits, the query runs, but I do not see the new field in the field explorer.  The part in purple is what I added.  Do I need to add it elsewhere in the code?
    WITH SEL_ACCTS AS(
    SELECT
    CASE WHEN RMSCUSTTYP = 'I' THEN
    CASE WHEN Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM)) <> ',' THEN  Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM))
    ELSE ''
    END
    ELSE
    RMSCMPNAME
    END AS "DEBTOR NAME",
    RMSACCTNUM AS "CLIENT ACCOUNT#",
    case when RMSHOMEPHN = '' or RMSWORKPHN = '' or RMSFAXPHN = '' or RMSMOBLPHN = '' then  'Y' else 'N' end as skipplcmt,
    A.RMSBILENUM,
    RMSDATEASG AS PLC_DT,
    ATTRNYCODE,
    RMSGATECD As "Gate Code",
    RAND() AS RANDNUMGEN
    FROM
    REPORTING.RMASTER As A
    left join reporting.rcomker b
    on a.rmsbilenum = b.rmsBilenum
    WHERE
    RMSDATEASG > REPLACE(CHAR(CURRENT DATE - 90 DAYS, ISO),'-','')
    AND recordtype =  'D'
    and ATTRNYCODE IN ({?AGCY_CODE})),
    GET_ACCTS AS(
    SELECT
    "DEBTOR NAME",
    "CLIENT ACCOUNT#",
    Cast(Timestamp(plc_dt||'000000') As Date)  AS "PLACED DATE",randnumgen,skipplcmt,
    PLC_DT,
    ATTRNYCODE,
    A.RMSBILENUM
    FROM
    SEL_ACCTS AS A
    LEFT JOIN
    REPORTING.RPRDBAL AS B ON A.RMSBILENUM = B.RMSBILENUM
    ORDER BY RANDNUMGEN
    FETCH FIRST {?#_of_Accts} Rows Only),
    GET_ACTV AS(
    SELECT
    G.*,
    RMSTRANDTE,
    ACTION_CODE,rmstrantim,
    RESULT_CODE
    From GET_ACCTS AS G LEFT JOIN RPTINGDATA.ROACTREACC AS R ON G.RMSBILENUM = R.RMSBILENUM AND G.ATTRNYCODE = R.ATTRNYCODE AND RMSTRANCDE = '9R'
        AND (ACTION_CODE IN('1','2','3','4','5','7','14','16','22','25','26','27','29','36','44','66') OR RESULT_CODE IN ('2','14','56','58','59','60','61','62','66')) AND RMSTRANDTE >= PLC_DT )
    SELECT 
    "DEBTOR NAME",
    "CLIENT ACCOUNT#",
    "PLACED DATE",
    PLC_DT,
    ATTRNYCODE,
    RMSBILENUM,skipplcmt,
    MIN(CASE WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29')
        THEN Cast(Timestamp(rmstrandte||'000000') As Date)
        ELSE NULL END) AS FIRSTATTEMPT,
    SUM(CASE WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29')
        THEN 1 END) AS ATTEMPT#,
    SUM(CASE WHEN RESULT_CODE IN ('2','56','58','59','60','61','62','66')
        THEN 1 END) AS CONTACT#,
    SUM(CASE WHEN RESULT_CODE = '14'
        THEN 1 END) AS PROMISE#,
    MIN(CASE WHEN ACTION_CODE = '44'
        THEN Cast(Timestamp(rmstrandte||'000000') As Date)
        ELSE NULL END) AS FIRSTMGRRVW,
    SUM(CASE WHEN ACTION_CODE = '44'
        THEN 1 END) as MANAGER#,
    MIN(CASE WHEN ACTION_CODE = '1'
        THEN Cast(Timestamp(rmstrandte||'000000') As Date)
        ELSE NULL END) AS FIRSTLETTER,
    MIN(CASE WHEN ACTION_CODE = '36'
        THEN Cast(Timestamp(rmstrandte||'000000') As Date)
        ELSE NULL END) AS FIRSTSCRUB,
    max(CASE WHEN ACTION_CODE in ('1','2','14','16','22','66')
        then 'Y' else 'N' end) as locateacct,
    sum(case WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29') and (rmstrantim between 80000 and 100000 or rmstrantim between 180000 and 210000) and (  DAYOFWEEK(DATE (
                        SUBSTR ( DIGITS (rmstrandte) , 1 , 4 ) || '-' ||
                        SUBSTR ( DIGITS (rmstrandte) , 5 , 2 ) || '-' ||
                        SUBSTR ( DIGITS (rmstrandte) , 7 , 2 ) )) in (1,7) ) then 1 else 0 end) as primecall,
    FROM GET_ACTV
    GROUP BY
    "DEBTOR NAME",
    "CLIENT ACCOUNT#",
    "PLACED DATE",
    PLC_DT,
    ATTRNYCODE,
    RMSBILENUM,skipplcmt

    It's not showing up because it's only in the first With Select - it hasn't been brought down all the way through to the final Select.  Here's how you need to change it;
    WITH SEL_ACCTS AS(
            SELECT
              CASE WHEN RMSCUSTTYP = 'I' THEN
                CASE WHEN Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM)) <> ',' THEN  Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM))
                ELSE ''
                END
              ELSE RMSCMPNAME
              END AS "DEBTOR NAME",
              RMSACCTNUM AS "CLIENT ACCOUNT#",
              case when RMSHOMEPHN = '' or RMSWORKPHN = '' or RMSFAXPHN = '' or RMSMOBLPHN = '' then  'Y' else 'N' end as skipplcmt,
              A.RMSBILENUM,
              RMSDATEASG AS PLC_DT,
              ATTRNYCODE,
              RMSGATECD as "Gate Code",
              RAND() AS RANDNUMGEN
            FROM REPORTING.RMASTER As A
              left join reporting.rcomker b on a.rmsbilenum = b.rmsBilenum
            WHERE RMSDATEASG > REPLACE(CHAR(CURRENT DATE - 90 DAYS, ISO),'-','')
              AND recordtype =  'D'
              and ATTRNYCODE IN ({?AGCY_CODE})),
    GET_ACCTS AS(
            SELECT
              "DEBTOR NAME",
              "CLIENT ACCOUNT#",
              Cast(Timestamp(plc_dt||'000000') As Date)  AS "PLACED DATE",randnumgen,skipplcmt,
              PLC_DT,
              ATTRNYCODE,
              A.RMSBILENUM,
             "Gate Code"
            FROM SEL_ACCTS AS A
              LEFT JOIN REPORTING.RPRDBAL AS B ON A.RMSBILENUM = B.RMSBILENUM
            ORDER BY RANDNUMGEN
            FETCH FIRST {?#_of_Accts} Rows Only),
    GET_ACTV AS(
            SELECT
              G.*,
              RMSTRANDTE,
              ACTION_CODE,rmstrantim,
              RESULT_CODE
            From GET_ACCTS AS G
              LEFT JOIN RPTINGDATA.ROACTREACC AS R ON G.RMSBILENUM = R.RMSBILENUM AND G.ATTRNYCODE = R.ATTRNYCODE AND RMSTRANCDE = '9R'
                AND (ACTION_CODE IN('1','2','3','4','5','7','14','16','22','25','26','27','29','36','44','66')
                OR RESULT_CODE IN ('2','14','56','58','59','60','61','62','66')) AND RMSTRANDTE >= PLC_DT )
    SELECT 
      "DEBTOR NAME",
      "CLIENT ACCOUNT#",
      "PLACED DATE",
      PLC_DT,
      ATTRNYCODE,
      RMSBILENUM,
      skipplcmt,
      "Gate Code"
      MIN(CASE WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29')
        THEN Cast(Timestamp(rmstrandte||'000000') As Date)
        ELSE NULL END) AS FIRSTATTEMPT,
      SUM(CASE WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29')
        THEN 1 END) AS ATTEMPT#,
      SUM(CASE WHEN RESULT_CODE IN ('2','56','58','59','60','61','62','66')
        THEN 1 END) AS CONTACT#,
      SUM(CASE WHEN RESULT_CODE = '14'
        THEN 1 END) AS PROMISE#,
      MIN(CASE WHEN ACTION_CODE = '44'
        THEN Cast(Timestamp(rmstrandte||'000000') As Date)
        ELSE NULL END) AS FIRSTMGRRVW,
      SUM(CASE WHEN ACTION_CODE = '44'
        THEN 1 END) as MANAGER#,
      MIN(CASE WHEN ACTION_CODE = '1'
        THEN Cast(Timestamp(rmstrandte||'000000') As Date)
        ELSE NULL END) AS FIRSTLETTER,
      MIN(CASE WHEN ACTION_CODE = '36'
        THEN Cast(Timestamp(rmstrandte||'000000') As Date)
        ELSE NULL END) AS FIRSTSCRUB,
      max(CASE WHEN ACTION_CODE in ('1','2','14','16','22','66')
        then 'Y' else 'N' end) as locateacct,
      sum(case WHEN ACTION_CODE IN ('3','4','5','7','25','26','27','29') and (rmstrantim between 80000 and 100000 or rmstrantim between 180000 and 210000) and
         (  DAYOFWEEK(DATE (SUBSTR ( DIGITS (rmstrandte) , 1 , 4 ) || '-' || SUBSTR ( DIGITS (rmstrandte) , 5 , 2 ) || '-' || SUBSTR ( DIGITS (rmstrandte) , 7 , 2 ) )) in (1,7) )
         then 1 else 0 end) as primecall,
    FROM GET_ACTV
    GROUP BY
      "DEBTOR NAME",
      "CLIENT ACCOUNT#",
      "PLACED DATE",
      PLC_DT,
      ATTRNYCODE,
      RMSBILENUM,
      skipplcmt,
      "Gate Code"
    -Dell

  • Lov Values are not showing for Discoverer Reports in Application

    Hi,
    I developed some discoverer reports, those reports having parameters with LOV. Those LOV values are showing in Discoverer Desktop, but after registering those reports in Oracle applications those LOV values are not showing. Pls let me know how resolve this issue.
    Regards,
    Hanimi.

    Hi,
    Also it is necessary to know how the LOVs are defined. Are they based on Application flexvalues for example? In which case it may be that you have not got your NLS language parameters set correctly when connecting from Applications.
    Rod West

  • Images not showing in the report

    Version: Crystal Reports XI
    Hi,
          Currently I have a report that has images from the database (blob) , logo, and images that I inserted in the report. The report is being called by a jsp page. Our crystal server is installed in unix server.
    When we try to run the report thru our  web interface...... the report runs but the images are not showing. it only shows like x image in it.....
    Don't have any idea how to resolve this....... please help

    If you are using Web Service to access Reports through BOXI server, then as per documentation you need to call getImage of ReportEngine with callback handler after you call getDocumentInformation.
    Refer to the developer's guide -
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm#en/WS_SDK/wssdk_consumer/doc/wssdk_dg/DevelopingConsumerWebApps18.html

  • New Field not Showing up in Report, part II.

    I had this issue with another report, and I was told that I hadn't brought my new field down all the way through to the final Select.  With this report, I thought I had done just that, but the new field is still not showing up.  I have pasted the code below with my additions highlighted.  Can someone tell me what I am doing wrong?  Thanks.
    WITH SEL_ACCTS AS(
    SELECT
    CASE
    WHEN RMSCUSTTYP = 'I'
    THEN
    CASE
    WHEN
    Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM)) <> ','
    THEN
    Trim(TRIM(RMSLASTNM) || ', ' || TRIM(RMSFIRSTNM))
    ELSE
    END
    ELSE
    RMSCMPNAME
    END AS "DEBTOR NAME",
    RMSACCTNUM AS "CLIENT ACCOUNT#",
    rmslastpmt,rmsjdgdate,
    CASE WHEN RMSJDGDATE  = 0 THEN  (RMSCHGAMT+RMSASSCCST+RMSACRDINT+UDCCOSTS1+UDCCOSTS2)-(RMSRCVPCPL+      
        RMSXCSRCVS+RMSRCVDCST+RMSRCVDINT+UDCRECCS1+UDCRECCS2)  
        ELSE (RMSJDGCHOF+RMSJDGCSTS+RMSJDGINTS+JDGCOSTS1+JDGCOSTS2)-(JDGRECVRYS+     
        JDGXCSRCVS+JDGRCVCSTS+JDGRCVINTS+JDGRECCS1+JDGRECCS2)
        END AS BALANCE,
    A.RMSFILENUM,
    RMSDATEASG AS PLC_DT,
    ATTRNYCODE,
    RMSSTATECD As "State Code",
    RAND() AS RANDNUMGEN
    FROM
    REPORTING.RMASTER As A
    left join reporting.rcomker b
    on a.rmsfilenum = b.rmsfilenum
    left join reporting.rprdbal c
    on a.rmsfilenum = c.rmsfilenum
    WHERE
    RMSDATEASG < REPLACE(CHAR(CURRENT DATE - 180 DAYS, ISO),'-','')
    AND recordtype =  'D'
    and ATTRNYCODE IN ({?AGCY_CODE})),
    GET_ACCTS AS(
    SELECT
    "DEBTOR NAME",
    "CLIENT ACCOUNT#",plc_dt,
    case when plc_dt > 0 then  Cast(Timestamp(plc_dt||'000000') As Date)  end AS "PLACED DATE",
    ATTRNYCODE,
    "State Code",
    A.RMSFILENUM,case when rmslastpmt > 0 then Cast(Timestamp(rmslastpmt||'000000') As Date) end  as rmslastpmt, rmsjdgdate,balance
    FROM
    SEL_ACCTS AS A
    ORDER BY RANDNUMGEN
    FETCH FIRST {?#_of_Accts} Rows Only),
    financials as (
    select "DEBTOR NAME",
    "CLIENT ACCOUNT#",
    "PLACED DATE",
    a.ATTRNYCODE,
    A.RMSFILENUM,rmslastpmt,case when rmsjdgdate > 0 then Cast(Timestamp(rmsjdgdate||'000000') As Date) end  as rmsjdgdate,balance,
    sum(case when e.rmstrancde between '3A' and '39' or e.rmstrancde in ('1G','1U') then e.rmstranamt end) as costspent,
    sum(case when (e.rmstrancde between '5A' and '69' or e.rmstrancde = '1P') and postdate > rmsjdgdate then 
              e.rmstranamt                                                     
                                             end) as pmtamt,
    sum(case when e.rmstrancde = '5C'  then  e.rmstranamt      end) as costrecvd
    from get_accts a
    left join reporting.rfinanl e
    on a. rmsfilenum = e.rmsfilenum
    and   (e.rmstrancde between '3A' and '69'                                      
    or e.rmstrancde in ('1P','1G','1U'))                                          
    and postdate > plc_dt and a.attrnycode = e.attrnycode
    group by
    "DEBTOR NAME",
    "CLIENT ACCOUNT#", "PLACED DATE",
    a.ATTRNYCODE,
    A.RMSFILENUM,rmslastpmt,case when rmsjdgdate > 0 then Cast(Timestamp(rmsjdgdate||'000000') As Date) end  ,balance )
    select "DEBTOR NAME",
    "CLIENT ACCOUNT#",
    "PLACED DATE",
    "State Code",
    a.ATTRNYCODE,rmslastpmt, rmsjdgdate,balance,c.rmsbalance as plc_bal,costspent, pmtamt,costrecvd,
    Cast(Timestamp(max(case when b.hstnewvalu in ( 'L31')  then b.rmstrandte else  null end)||'000000') As Date)  as servicedate,
    Cast(Timestamp(max(case when b.hstnewvalu in ( 'L13','P13')  then b.rmstrandte else  null end)||'000000') As Date)  as garnishdate,
    Cast(Timestamp(max(case when b.hstnewvalu in ( 'L14','P14')  then b.rmstrandte else  null end)||'000000') As Date)  as levydate,
    Cast(Timestamp(max(case when b.hstnewvalu in ( 'L17','P17')  then b.rmstrandte else  null end)||'000000') As Date)  as suitfiledate,
    Cast(Timestamp(max(case when b.hstnewvalu in ( 'L12','P12')  then b.rmstrandte else  null end)||'000000') As Date)  as liendate
    from financials a
    left join reporting.rhistfl b
    on a.rmsfilenum = b.rmsfilenum
    and b.RMSTRANCDE = 'MT' And b.RMSFLDIMPL = 'RMSSTATUS'
    and b.hstnewvalu in ('L12','L13','L14','L17','P12','P13','P14','P17','L19','PJC','L31')
    left join reporting.rhistfl c
    on a.rmsfilenum = c.rmsfilenum
    and c.RMSTRANCDE = 'MR' AND c.RMSFLDIMPL = 'ATTRNYCODE' and c.hstnewvalu in ({?AGCY_CODE})
    group by
    "DEBTOR NAME",
    "CLIENT ACCOUNT#", "PLACED DATE",
    a.ATTRNYCODE,rmslastpmt,rmsjdgdate  ,balance,c.rmsbalance,costspent, pmtamt,costrecvd, "State Code"

    hi David,
    some questions:
    1) do you mean that statecode is not showing up in the Field Explorer?
    2) if you run this through your db query tool, what is the result?
    3) if you create a new report off of this syntax, what is the result?
    -jamie

  • S_bce_68001439 is not showing complete information (Report RSUSR100)

    Hi All,
    i have executed transaction s_bce_68001439 to get the information about the changes in the following areas:
    1- Users that are created during the year
    2- Users that are deleted during the year
    3- Users whose access rights are modified during the year
    4- Users that have been created and then deleted during the year which are not appearing the USR02 table.
    But the problum i am facing with this report is, the report is not showing all the information. Users that are careated during the year and are still active and appearing in the table usr02 are not appearing in the s_bce_68001439 report. Further, rights of certain users which i m aware that i have modified during the year, are also not appearing in the report. Due to these facts i am confused with the completness of this report.
    Can any one from this forum help me in getting the complete report which can fulfil my objectives as mentioned above. Further, can any one tell me the tables that are used by this report to extract data.
    Further, if there is any other mean to get the above mentioned information, please tell me how.
    Please help me.
    thx in advance
    Salman

    Hi Beckers,
    I am a member of SAP_ALL profile and have access to all the SAP transactions. so, there is no issue with the authorization. Further, I do not have any system refresh where the tables are deleted.
    Beckers, is there any other option thorugh which i can obtain the desired information i.e. directly through SAP tables or some other transactions or reports etc.
    The issue is not only comming with the 2009 users but also with the 2008 users data. which was OK in the last year. but now some of the information of the previous users are also missing if i am running the report for the previous year i.e. 2008.
    Thx
    Salman

  • Data is not showing up in report on ODS

    Hi All,
    we have requirment like below
    we have an ODS  no update rules and nothing with 5 fields . with bex reporting flag checked..
    we have function module to fill the data for these 5 fileds in  ODS active data table .
    So data is there only in active data table that table was filling  by using  function module.
    so i need report that data .when i created and run the report data its not showing up.
    Please let me know whats the issues is and how to handle.
    I appreciate your help
    Regards,
    Sirisha

    In this case you need to use Write-Optimized DSO or if you are in earlier version, then you need to use Transactional ODSinstead of basic DSO.
    thanks.
    Wond

  • Hierarchy node in query rows not showing values in report

    Hi sdn
    I'm taking hierarchy node on rows and some plan and actual values on columns but i'm unable to get values in the report for only plan values
    How did I reconcile the values whether that value is available in hierarchy or corresponding value's for plan data is available in the cube,pls give me clues
    rubane

    Hi,
    Could you please share the steps you have taken to fix the problem?
    We do have a similar problem and for some reason the newly added hierarchy node for 0Profit_ctr is not showing up in the variable selection screen F4 (input selection for query execution). However we can see this node when we display that hierarchy in RSA1. I did try applying the changes recommened by Jerome but unfortunately it didn't work.
    Any help on this would be greatly appreciated.
    Thanks,
    Krish

Maybe you are looking for

  • Describe Requirement  with GL code

    Hi I have manage to coremod the program on describe requirement screen to allow for user to enter a GL code field. Upon "Add Shopping Cart", I used badi BBP_DOC_CHANGE_BADI to pass the custom gl code to the accounting section as follows:   LOOP AT et

  • ORACLE Migration Tool Download is dead

    http://download.oracle.com/otn/nt/omwb/101020/Omwb.zip can't download, tried it the whole day :(

  • Leading spaces

    Hi all, I have an structure which contains an field with length 35 character. Now I have to copy this value into a field with length 10. How do I get '(31 spaces here) TEST' into '(10 spaces)'??? I can not even put so much spaces in this screen.....

  • HT4059 Internal Dictionary stoped working for IPAD2 after installing IOS 6 - Country Bahrain.

    Internal dictionary for IBook stopped working after installing IOS 6 in Ipad 2, my country is Bahrain, it is working with IOS 5. App Store also not responding some time, tried all the way but no luck any ideas to get the dictionary back.

  • I see the video on my ipod, but i cant hear anything... HELP!!

    SO I CONVERTED A VIDEO FILE FOR MY IPOD WITH ITUNES, I PLAY IT ON MY IPOD BUT I CANT HEAR A **** THING, AND THE VOLUME IS UP FULL BLAST... WHAT DO I NEED TO DO?