Custom Report return no data

Hi,
i have a custom report, when i choose to log in the application with Arabic language and run the report it return no data, while it return data when i log with English language  ,
i have English as basic lang and Arabic as installed lang and i am using R 12 .
any help, many thanks.

In Report Attributes tab, under Messages, you will see a section named "When No Data Found Message". In it, I added this javascript code. When no data was found, the javascript worked, and popped up a message box. You can replace the alert code below with a call to your javascript function.
<script language="javascript">
alert("no data found");
</script>
There is another way. In the Region Definition tab, there is a section called "Region Footer". In it, add this javascript:
<script language="javascript">
var i = #TOTAL_ROWS#;
alert(i);
</script>
When variable i is zero, then you know that no data was returned.
Hope this helps.
Ravi

Similar Messages

  • Tax Report Returns No Data [Message 131-85]

    Our client has been using SBO for the past few years and run the Standard Tax Report.
    They follow a standard procedure whereby they open the Tax Report enter the period details and click OK, the report returns all Input and Output Tax details.
    This month they have run the report and no matter what dates you enter the report returns No Date [Message 131-85]
    Does anyone have any clues as to what might be causing this?

    I have discovered via a SQL trace that the following script is tun for the tax report
    exec sp_executesql N'
    SELECT      T0.[AbsEntry],
         T0.[Code],
         MIN(T0.[Name]),
         T0.[SrcObjType],
         T0.[DocNum],
         MIN(T0.[Category]),
         MIN(T0.[IsEC]),
         T0.[IsAcq],
         MIN(T0.[VatPercent]),
         MIN(T0.[EqPercent]),
         T0.[DocDate],
         MIN(T0.[TaxDate]),
         MIN(T0.[CANCELED]),
         SUM(T0.[BaseSum]),
         SUM(T0.[VatSum]),
         SUM(T0.[EqSum]),
         SUM(T0.[DeductSum] - T0.[EqSum]),
         MIN(T0.[SrcObjAbs]),
         N''0'',
         0,
         0,
         MIN(T0.[DocDate]),
         0,
         0,
         MIN(T0.[NumAtCard]),
         SUM(T0.[BaseSumSc]),
         SUM(T0.[VatSumSc]),
         SUM(T0.[EqSumSC]),
         SUM(T0.[DedctSumSC] - T0.[EqSumSC]),
         MIN(T0.[TaxType]),
         T0.[CrditDebit],
         MIN(T0.[CardCode]),
         MIN(T0.[CardName]),
         MIN(T0.[SrcLineNum]),
         MIN(T0.[VatDate]),
         MIN(T0.[VatIdUnCmp]),
         MIN(T0.[LicTradNum]),
         MIN(T0.[BPLicTradNum]),
         MIN(T0.[AddID]),
         SUM(T0.[BaseSum])
         FROM  [dbo].[B1_VatView] T0 
         WHERE (T0.[Code] = (@P1)  OR       
         T0.[Code] = (@P2)  OR 
         T0.[Code] = (@P3)  OR 
         T0.[Code] = (@P4)  OR 
         T0.[Code] = (@P5)  OR 
         T0.[Code] = (@P6)  OR 
         T0.[Code] = (@P7)  OR 
         T0.[Code] = (@P8)  OR 
         T0.[Code] = (@P9)  OR 
         T0.[Code] = (@P10)  OR 
         T0.[Code] = (@P11)  OR 
         T0.[Code] = (@P12) ) AND 
         T0.[DocDate] >= (@P13)  AND 
         T0.[DocDate] <= (@P14)  
         GROUP BY T0.[AbsEntry], T0.[Code], T0.[SrcObjType], T0.[DocNum], T0.[IsAcq], T0.[DocDate], T0.[CrditDebit]
         ORDER BY T0.[IsAcq] DESC,T0.[CrditDebit]',N'@P1 nvarchar(30),@P2 nvarchar(30),@P3 nvarchar(30),@P4 nvarchar(30),@P5 nvarchar(30),@P6 nvarchar(30),@P7 nvarchar(30),@P8 nvarchar(30),@P9 nvarchar(30),@P10 nvarchar(30),@P11 nvarchar(30),@P12 nvarchar(30),@P13 datetime2,@P14 datetime2',N'SEXP',N'SFRE',N'SGST',N'SNT',N'PCAF',N'PCAP',N'PFRE',N'PGNR',N'PGST',N'PGSTV',N'PNT',N'PPRI','2010-03-01 00:00:00','2010-03-31 00:00:00'
    If I run this in SQL I get the following error, which mat shed some light on what is happening
    Msg 2715, Level 16, State 3, Line 1
    Column, parameter, or variable #13: Cannot find data type datetime2.
    Parameter or variable '@P13' has an invalid data type.
    Msg 2715, Level 16, State 3, Line 1
    Column, parameter, or variable #14: Cannot find data type datetime2.
    Parameter or variable '@P14' has an invalid data type.

  • Report returns wrong data when run on server

    Hi,
    I'm runing CRS XI R2 on Windows Server 2003 SP2.  When I refresh a report in the Crystal Reports XI Designer, I'm getting correct data.  But when I schedule the report to run on the server it returns wrong data.  The data is different from what I see when I refresh it from the designer.  In the report I have running totals set up to count customers that meet a certain criteria.  The report is very large.  It take almost 2 hours to refresh.
    I was wondering what is causing the difference in running total data between refreshing it on the designer and running it on the server.  Is it returning wrong data b/c of it not reading all the records?  Should I be making any changes to the server settings?  I saw that under pageserver, there are options for  setting the 'Minutes Before an Idle Report Job is Closed' and 'Database Records To Read When Previewing Or Refreshing a Report".  Do either of those have anything to do with the report returning incorrect data when being scheduled to run on the server?
    Thanks,
    Kim

    Hi Xuandao,
    You would need to Use Cell Binding and Trigger concept to accomplish this.
    Its simple, however, you would have to work on a trial and error basis to understand this concept as implementing the same is subject to your dashboard and WEBI Design.
    Open you LiveOffice.
    Insert your WEBI, Now, go to Object Properties of your WEBI, select the second tab that says Prompt, Here, it lists the prompts that you have for your WEBI. This would also enlist your BEx variables as well. Select this BEx variable and click on the button that says Prompt at the bottom of this window. Here, select choose Excel Data Range and click on the cell select button on the right (small button that lets you choose what cell you want to bind this prompt to), Now select a free cell that would not be even populated later on when you run the dashboard say A1 (remember the value that you select). Click on OK and again OK. The WEBI Refreshes and you can see all the prompt values at the cell A1. These are all the possible values stored for your BEx prompt variables (these values are fetched from BW system dynamically).
    Now, save this LiveOffice, Go to you dashboard. Connect your dashboard to your Live office. Go to Data-> connections-> Now, select the WEBI and in the right hand pane  go to Usage tab, here, Click on Trigger cell button on the right hand side and select A1 in you LiveOffice.
    It should work fine.
    Let me know.
    Rgds,
    Sreekul Nair

  • Discoverer Report  returning ' no data  found '

    Hi  ...
    i  have an issue with one discoverer  report  .
    Discoverer report  name : EDI Price Exception Report.
    when i ran the report  in Discoverer  Desktop edition  It is returning 'No Data Found ' But  i am taken the  Query from admin edition  and tried to  ran in  PL/SQL Developer/TOAD  by setting  Org_id condition
    it's returning Data  . the Desktop Edition of Discoverer for  some specific date  Range  it's giving Data  But  from last month on wards  it's not returning any Data.
    in Discoverer Report  Desktop  it's not retuning the Data from  November to till date
    Oracle  Applications  11i
    Discoverer 4i
    Oracle Data base :9i 
    OS : Windows.
    Attached the Sql  which i used to generate the Report :
    I HAVE USED THE FOLLOWING  :-for initialize the profile options
    EXEC FND_GLOBAL.APPS_INITIALIZE (0,52163,660);
    EXEC APPS.FND_CLIENT_INFO.SET_ORG_CONTEXT(2922);
      SELECT A.CUST_PO_NUMBER,
             A.ORDER_NUMBER,
             A.ORDERED_DATE,
             A.ORDER_TYPE,
             -- C.CUSTOMER_ID,
             C.CUSTOMER_NUMBER,
             C.CUSTOMER_NAME,
             B.LINE_NUMBER,
             B.ORDERED_ITEM,
             MSI.SEGMENT1 ACCO_ITEM,                               -- GRW 20060407
             MSI.DESCRIPTION,
             -- MSI.INVENTORY_ITEM_ID,
             (SELECT MCI.CUSTOMER_ITEM_NUMBER
                FROM MTL_CUSTOMER_ITEMS MCI,
                     MTL_CUSTOMER_ITEM_XREFS MCIX,
                     MTL_SYSTEM_ITEMS_B MSIB
               --  MTL_PARAMETERS          MP
               WHERE     MCI.CUSTOMER_ID = C.CUSTOMER_ID                 --1814924
                     AND MCI.CUSTOMER_ITEM_ID = MCIX.CUSTOMER_ITEM_ID
                     AND MCIX.INVENTORY_ITEM_ID = MSIB.INVENTORY_ITEM_ID
                     AND MSIB.INVENTORY_ITEM_ID = MSI.INVENTORY_ITEM_ID   --869899
                     AND MSIB.ORGANIZATION_ID = MTP.ORGANIZATION_ID --MP.ORGANIZATION_ID
                     AND MTP.ORGANIZATION_CODE = 'BRM'
                     AND MCI.CUSTOMER_ITEM_NUMBER = B.ORDERED_ITEM
                     AND NVL (mci.inactive_flag, 'N') <> 'Y'
                     AND NVL (mcix.inactive_flag, 'N') <> 'Y')
                CUSTOMER_ITEM,
                     XXAB_ITEM_XREFS.GET_GBC_ITEM_NUM (B.ORDERED_ITEM) GBC_ITEM_NUMBER,
             B.ORDERED_QUANTITY,
             B.PRICE_LIST,
             B.UNIT_SELLING_PRICE,
             B.UNIT_LIST_PRICE,
                   TO_NUMBER (B.ATTRIBUTE7) CUST_SENT_PRICE,
             apps.XXAB_CUST_SENT_PRICE_CONV_SO (C.customer_number,
                                                B.ordered_item,
                                                B.header_id,
                                                B.line_number,
                                                B.unit_selling_price,
                                                B.attribute7,
                                                B.pricing_quantity_uom,
                                                B.attribute4)
                CUST_SENT_PRICE_CONVERTED,
             ABS ( (B.UNIT_SELLING_PRICE
                    - apps.XXAB_CUST_SENT_PRICE_CONV_SO (C.customer_number,
                                                         B.ordered_item,
                                                         B.header_id,
                                                         B.line_number,
                                                         B.unit_selling_price,
                                                         B.attribute7,
                                                         B.pricing_quantity_uom,
                                                         B.attribute4)))
                DIFFERENCE,
                      MTP.ORGANIZATION_CODE,
             B.SHIP_TO_LOCATION
        FROM OE_ORDER_HEADERS_V A,
             OE_ORDER_LINES_V B,
             RA_CUSTOMERS C,
             MTL_PARAMETERS MTP,
             MTL_SYSTEM_ITEMS_B MSI
       WHERE     A.HEADER_ID = B.HEADER_ID
             AND A.SOLD_TO_ORG_ID = C.CUSTOMER_ID
             -- Added by Gati on 19-Oct-2012, tkt - INC000000118962
             AND ROUND (TO_NUMBER (apps.XXAB_CUST_SENT_PRICE_CONV_SO (
                                      C.customer_number,
                                      B.ordered_item,
                                      B.header_id,
                                      B.line_number,
                                      B.unit_selling_price,
                                      B.attribute7,
                                      B.pricing_quantity_uom,
                                      B.attribute4)),
                        2) <> B.UNIT_SELLING_PRICE
             --AND ROUND(TO_NUMBER(B.ATTRIBUTE7), 2) <> B.UNIT_SELLING_PRICE
             --AND     a.ship_from_org_id = mtp.organization_id
             AND B.SHIP_FROM_ORG_ID = MTP.ORGANIZATION_ID          -- GRW 20060413
             --AND     a.ship_from_org_id = msi.organization_id
             AND B.SHIP_FROM_ORG_ID = MSI.ORGANIZATION_ID          -- GRW 20060413
             AND B.INVENTORY_ITEM_ID = MSI.INVENTORY_ITEM_ID       -- GRW 20060407
             AND A.ORDER_SOURCE_ID = 6
             AND A.ORG_ID = B.ORG_ID
             AND TO_CHAR (A.ordered_date, 'DD-MON-YYYY') between  '01-NOV-2013' and  '03-NOV-2013'
             and mtP.organization_code='BRM'
                      AND A.ORG_ID = (SELECT HOU.ORGANIZATION_ID
                               FROM HR_OPERATING_UNITS HOU
                              WHERE HOU.NAME = '50 ACCO Canada')
             AND B.cancelled_flag <> 'Y'
             AND B.flow_status_code <> 'CANCELLED'
             AND B.ORDERED_ITEM <> 'INVALID_ITEM'
    ORDER BY a.order_number

    Hi,
    Assuming your initialization matches your discoverer login, it is pretty weird that you get no data.
    I am not sure how you got the SQL but i suggest you trace the session to get the exact SQL ran by the discoverer.
    You may find another condition or join that limits your data.
    Also another thing that you should try is to initial the session by using all the parameters (including the security group as you have in your discoverer login):
    begin
      fnd_global.APPS_INITIALIZE(user_id =>, resp_id =>, resp_appl_id =>, security_group_id =>);
    end

  • Discoverer report returns no data from a certain time

    Using Discoverer 10g,a discoverer report which returned data normally last month gets to return no data now.
    We have four same environments, and two of them has this problem, two is OK.
    And the SQL of the discoverer of the four environments are the same.
    We have no any changment of this discoverer and related EUL for more than one year....
    How should we investigate into this issue.
    For example ,a point we should notice or something...
    Could somebody give us a suggestion?
    Thank you.

    Thanks for your qiuck reply.
    1.empty table that is joined in the query.The four environments has almost the same data,it is not the cause.
    2.security issue with the data, maybe the security definitions are different from one environment to another.we are now invesgate into this cause.
    and there is a sql of the discoverer's EUL which shows no data in a enviroment(in this enviroment discoverer report gets no data), but in another enviroment data can show.
    the sql is as following.
    =============
    SELECT loc_bu.org_id
    ,loc_bu.location_id building_id
    ,loc_bu.building building_name
    ,loc_bu.location_code building_number
    ,loc_fl.location_id floor_id
    ,loc_fl.location_code floor_number
    ,loc_fl.floor floor_name
    ,loc_of.location_id office_id
    ,loc_of.location_code office_number
    ,loc_of.office office_name
    ,loc_of.suite office_suite
    ,loc_of.location_alias office_alias
    ,loc_of.assignable_area office_assignable_area
    ,loc_of.space_type_lookup_code office_space_type_code
    ,lst.meaning office_space_type
    ,loc_of.function_type_lookup_code office_function_type_code
    ,fun.meaning office_function_type
    ,(SELECT ffv.description
    FROM fnd_flex_values_vl ffv
    ,fnd_flex_value_sets ffvs
    WHERE ffv.flex_value = loc_of.attribute1
    AND ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'MB_PN_ON') occupancy_exception_flag
    ,loc_of.active_start_date
    ,loc_of.active_end_date
    --ADD BY KEVIN 2008/6/26 START
    ,loc_of.attribute7 division_code_office
    ,(SELECT ffv.description
    FROM fnd_flex_values_vl ffv
    ,fnd_flex_value_sets ffvs
    WHERE ffv.flex_value = loc_of.attribute7
    AND ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'MB_PN_DIVISION') division_description_office --ヌヨ-ホ・ヒオテ・
    --ADD BY KEVIN 2008/6/26 END 
    FROM pn_locations loc_bu
    ,pn_locations loc_fl
    ,pn_locations loc_of
    ,fnd_lookups fun
    ,fnd_lookups lst
    WHERE loc_bu.location_id = loc_fl.parent_location_id
    AND loc_bu.location_type_lookup_code IN ('LAND', 'BUILDING')
    AND nvl(loc_bu.attribute6, '99') <> '01'
    AND loc_fl.location_id = loc_of.parent_location_id
    AND loc_fl.location_type_lookup_code IN ('FLOOR', 'PARCEL')
    AND nvl(loc_fl.attribute6, '99') <> '01'
    AND loc_of.location_type_lookup_code IN ('OFFICE', 'SECTION')
    AND nvl(loc_of.attribute6, '99') <> '01'
    AND loc_of.function_type_lookup_code = fun.lookup_code(+)
    AND fun.lookup_type(+) = 'PN_FUNCTION_TYPE'
    AND loc_of.space_type_lookup_code = lst.lookup_code(+)
    AND lst.lookup_type(+) = decode(loc_of.location_type_lookup_code,
    'OFFICE',
    'PN_SPACE_TYPE',
    'SECTION',
    'PN_PARCEL_TYPE')
    AND nvl(loc_of.space_type_lookup_code,'99') <> '07';
    ====================
    Ps.before excute this sql, we always first excute following command.
    ====
    begin
    fnd_client_info.set_org_context(117);
    end;
    ====
    The analyst of our team is not very good at the security problem, could you help us?
    Thanks a lot.

  • UCCX 10 CUIC Custom Report (using external data source)

    Hi.
    We have a customer where we are storing information in an external data source. We would like to built a report and import that report into their UCCX CUIC System in order for the customer to have the new report along side with the UCCX built-in reports. We need to add the external data source to CUIC but I'm not sure if the strip CUIC version of UCCX can allow that. Is that possible?
    I know that with CUIC Premium we can add third party data sources into the CUIC. The Premium CUIC NFR allows that and we can create the report but for it to work in UCCX we need to add the external data source to CUIC.
    What are my options? If any?
    Thanks in advanced,
    -Jose

    Hi Jose,
    You can basically build custom reports on a standalone CUIC server and import them to the CUIC on UCCX.
    But I am not sure if this datasource is continuously polling information from the DB and giving it to the report and if this is possible.
    Please refer to the link below for creating the custom reports on CUIC in UCCX:
    https://communities.cisco.com/docs/DOC-31936
    Regards,
    Arundeep

  • Crystal Reports return no data after publish to Infoview.

    *Description of Problem or Question:
    Reports defined in Crystal report client do not work correctly when published to Infoview.
    When report run from client, correct data is returned. When run from Infoview, no or limited data is returned.
    The problem is new since installation of Service Pack 3 fixpack 3.5.
    We are using the SAP Integration kit.
    Product\Version\Service Pack\Fixpack (if applicable):
    BOBJ XI 3.1 SP3, FP 3.5 (Including Integration kit transports)
    Relevant Environment Information (OS & version, java or .net & version, DB & version):
    Windows 2003 64-Bit, Java, Linking to SAP ECC6 on MAXDB 7.6
    Sporadic or Consistent (if applicable):
    Consistent, altough 1st refresh returns data, subsequent refresh returns no rows or few rows.
    What has already been tried (where have you searched for a solution to your question/problem):
    We have searched SAP Marketplace for OSS notes but none match our problem.
    Steps to Reproduce (if applicable):
    Create report in Crystal Reports - publish to Infoview
    Install BOBJ XI 3.1 SP3 and FP 3.5
    Refresh report in infoview - shows limited or no data
    Open report in Crystal Reports 2008 Client, refresh data - returns correct data.
    Save Cystal report to Infoview, refresh data in infoview (scheduled or online) - returns incorrect or no data.

    Hello,
    this is interesting. Check your CR Server settings if there are any limits with regards to rows or timeouts after the installation of FP3.5
    If your CR reports are running on a Universe, check the properties of the Universe if there are limitations affected to the rows.
    If this all brings no result i would highly recommend to open a Support Message at SAP - maybe thats a Bug coming with FP3.5
    Regards
    -Seb.

  • Interactive Report Returns Misleading Data Because of ROWNUM Limit

    Hi, We have been relying on widespread use of Interactive Reports for internal Business Intelligence in our company, and they have been very popular. However, a user found a data discrepancy when sorting a report because the ROWNUM limit of :APXWS_MAX_ROW_CNT is applied before the user requested ORDER BY clause. We are running Apex version 3.2.0.00.27 on a 10.2.0.4 database.
    The IR query returns quotes from our custom quoting application, and the default number of rows is 100 (and is changeable by the user). The user wanted to see the most recent quotes, so he selected the "Creation Date" column header and simply applied a descending filter. The most recent quote returned was dated last week. However, if he applied an additional filter of "creation date in the last week", he did see today's date and mostly current quote rows.
    When I ran debug on his IR query, I can see that the ROWNUM limit is applied first, then the ORDER BY. This means that the database fetches the first x rows that match the supplied parameters, and then orders the result set. However, this is not what the user meant, he wanted the first rows of an ordered set.
    Here's the debug query output (with the middle removed because it's long):
    select
           "QUOTE_NUMBER",
           "CUSTOMER",
           "CUST_CONTACT",
           "QUOTE_STATUS",
           "TOTAL_PRICE",
           "TOTAL_WEIGHT",
           "WHSE",
           "SHIP_DATE",
           "PO_NUMBER",
           "ORACLE_REFERENCE",
           "INSIDE_SALESREP",
           "OUTSIDE_SALESREP",
           "CREATION_DATE",
           "ID",
           "ORA_CUST_ID",
           "CUST_CONTACT_ID",
           count(*) over () as apxws_row_cnt
    from (
    select  *  from (
    SELECT
      kh.id,
      kh.ora_cust_id,
      kh.quote_number quote_number ,
      kh.cust_contact_id,
      k2_customers_pkg.get_contact(cust_contact_id) cust_contact ,
      k2_customers_pkg.get_cust_name(kh.ora_cust_id)customer,
      k2_customers_pkg.get_cust_number(ora_cust_id)
    ( ......... more sql goes here )
    AND k2_customers_pkg.get_outside_salesrep_number(kh.ora_site_id)||'%' LIKE :P64_OUTSIDE_SALES||'%'
    AND kh.whse_code like :P64_WAREHOUSES||'%'
    AND ((1=
        CASE WHEN :P64_ITEM_ID IS NULL THEN
            1
        ELSE
            (SELECT 1
               FROM k2_quote_lines kl
               JOIN k2_ingredients ki
                 ON ki.quote_line_id=kl.id
              WHERE (1=1
                AND kh.id=kl.quote_id
                AND ki.ora_item_id=:P64_ITEM_ID AND ROWNUM=1))
        END)
        OR 1=(
            SELECT 1 FROM k2_quote_lines kl WHERE kl.quote_id=kh.id AND kl.part_id=:P64_ITEM_ID AND ROWNUM=1
    )  r
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
    order by "CREATION_DATE" DESC,"QUOTE_NUMBER" DESCHowever, what the user wanted is to have the ORDER BY applied first, then the limit. I realize performance may suffer, but users are now alarmed that they cannot trust these reports. I'm tempted to log a SR with Oracle on this.
    Any thoughts on this? Is this fixed in 4.0?
    Thank you, Wolf Moritz

    Hi, thanks for the response. I did spend a bit of time on trying to trick the interactive report into reversing the rownum and order by clauses. But ultimately I didn't see how to do it. Whatever query I paste into the source of the report is then wrapped in a couple of containing select statements which first applies the rownum limit and then the order by clause (if the user selects any columns to sort by).
    So this query:
    select * from scott.empBecomes:
    select
           "EMPNO",
           "ENAME",
           "JOB",
           "MGR",
           "HIREDATE",
           "SAL",
           "COMM",
           "DEPTNO",
           count(*) over () as apxws_row_cnt
    from (
    select  *  from (
    select * from scott.emp
    )  r
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
    pAnd a user applied sort becomes:
    select
           "EMPNO",
           "ENAME",
           "JOB",
           "MGR",
           "HIREDATE",
           "SAL",
           "COMM",
           "DEPTNO",
           count(*) over () as apxws_row_cnt
    from (
    select  *  from (
    select * from scott.emp
    )  r
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
    order by "DEPTNO" DESCIf I could somehow bind to some item for the order by string I might then be able to trick the report into ordering the result set first (which I know can't really be done unless using dynamic sql). Forcing an initial hard coded order by isn't practical on this particular report, although I do see why that might work in some circumstances.
    Side note on the oddly placed case statement: This interactive report has some page level "meta" parameter items, and that case statement was meant as a way to avoid an exists statement on a particularly large table if no value was submitted for P64_ITEM_ID. It's been a long time since we deployed the report, so it's probably worth testing some explain/autotrace plans on this case statement vs an exists statement in the predicate. But for now it works!
    Thanks, Wolf

  • SQL Report return No Data Found

    I have a page with a SQL Report that runs a very complex query. If the returns are that nothing is found, I want to run some JavaScript. How can I determine the count of the result set or the capture the exception? Or is there another way without rerunning the query?
    Thanks

    In Report Attributes tab, under Messages, you will see a section named "When No Data Found Message". In it, I added this javascript code. When no data was found, the javascript worked, and popped up a message box. You can replace the alert code below with a call to your javascript function.
    <script language="javascript">
    alert("no data found");
    </script>
    There is another way. In the Region Definition tab, there is a section called "Region Footer". In it, add this javascript:
    <script language="javascript">
    var i = #TOTAL_ROWS#;
    alert(i);
    </script>
    When variable i is zero, then you know that no data was returned.
    Hope this helps.
    Ravi

  • Custom report missing proper data

    I've written a custom purchasing report but we just encountered a problem. For any item which hasn't been sold yet, the price and cost don't appear in the report.
    SELECT
    T0.ItemCode, T0.ItemName, T0.U_SES_PageNo, T0.OnHand, T0.IsCommited, T0.OnOrder,
    (SELECT Price FROM ITM1 WHERE ItemCode = T1.ItemCode AND PriceList = 1) [UnitPrice],
    (SELECT Price FROM ITM1 WHERE ItemCode = T1.ItemCode AND PriceList = 2) [UnitCost],
    UTQ = case when datepart(qq,OINV.DocDate) = 04
                 and datepart(yyyy,OINV.DocDate)=datepart(yyyy,GetDate())
           then INV1.Quantity else 0 end,
    UPQ = case when datepart(qq,OINV.DocDate) = 03
                 and datepart(yyyy,OINV.DocDate)=datepart(yyyy,GetDate())
           then INV1.Quantity else 0 end,
    UTY = case when datepart(yyyy,OINV.DocDate) = datepart(yyyy,GetDate())
           then INV1.Quantity else 0 end,
    UPY = case when datepart(yyyy,OINV.DocDate) = datepart(yyyy,GetDate())-1
           then INV1.Quantity else 0 end
      INTO ##TEMP
      FROM OINV
    INNER JOIN INV1
        ON OINV.DocEntry = INV1.DocEntry
    FULL JOIN OITM T0
        ON INV1.ItemCode = T0.ItemCode
    FULL JOIN ITM1 T1
        ON INV1.ItemCode = T1.ItemCode
    WHERE T0.CardCode = '[%0]'
    ORDER BY T0.ItemCode
    SELECT
    ItemCode AS 'Item Code',
    ItemName AS 'Description',
    U_SES_PageNo AS 'Page Number',
    CAST(OnHand AS INT) AS 'On Hand',
    CAST(IsCommited AS INT) AS 'Committed',
    CAST(OnOrder AS INT) AS 'On Order',
    CAST(SUM(UTQ)/10 AS INT) AS 'Units 4th Qtr',
    CAST(SUM(UPQ)/10 AS INT) AS 'Units 3rd Qtr',
    CAST(SUM(UTY)/10 AS INT) AS 'Units This Year',
    CAST(SUM(UPY)/10 AS INT) AS 'Units Prior Year',
    UnitCost AS 'Cost',
    UnitPrice AS 'Price'
    FROM ##TEMP
       GROUP BY ItemCode, ItemName, U_SES_PageNo, OnHand, IsCommited, OnOrder, UnitCost, UnitPrice
       ORDER BY ItemCode
    DROP TABLE ##TEMP
    What am I missing to make the report display the Price and Cost for an item which hasn't appeared on an invoice?

    I am wondering if maybe we haven't lost the scope of this problem.
    I am unable to get any of the code examples you provided working. I am unclear on which parts of my code I should be using and which parts of your code I should be using.
    We seem to be going over the problems with linking tables that "aren't linked" but in the first example I posted they are linked.
    Everything works fine except that price and cost do not display on certain items. The rest of the information exists, is linked, and working.
    This is the code I am currently using which results in the error: The multi-part identifier "OINV.DocDate" could not be bound.
    Again, the problem is that for any item which we haven't sold (the item has not appeared on an AR Invoice, that is how we are calculating "units sold" numbers), the Price and Cost do not appear. The item is listed in the report but the price and cost do not show. I am thinking this is because a price and cost do not exist on the AR Invoice Rows table.
    So the question is: How do we properly join the Items table to display cost and price using Item table and not Invoice table.
    All of the information from the Invoice table still needs to be there, and it is displaying fine. We just need a way to display price and cost based on the Items table and not the Invoice table.
    Edited by: Steve Blake on Nov 17, 2009 12:33 PM
    Edited by: Steve Blake on Nov 17, 2009 12:34 PM
    Edited by: Steve Blake on Nov 17, 2009 12:35 PM
    Edited by: Steve Blake on Nov 17, 2009 12:36 PM
    Edited by: Steve Blake on Nov 17, 2009 12:37 PM
    Edited by: Steve Blake on Nov 17, 2009 12:40 PM - Not sure why formatting won't work with the code in post

  • Customized report based on data from 2 different infoproviders.

    Hi Team,
    The scenario is as follows:
    We have an Datasource based on a ECC Table which contains data based on FISCAL YEAR and no period field such as X03, X06 & X09. these values are populated in INFOCUBE A. Also note that the ECC table itself does not contain any field which refers to Period.
    In my another INFOCUBE B, I have the value for the Period (ZZPERIOD) field on a Quaterly basis.
    Now the report requirement is:
    For the input value of ZZPERIOD = 201103, display value X03.
    similarly for X06 and X09.
    PLEASE ADVICE.
    Thanks & Regards
    Sneha

    I'm not sure you've understood my reply. Do you understand the notion of granularity? If not please read about this and understand it. Then you will have the answer you need.
    I'm assuming you have KFs in both cubes right? Now if Cube A is aggregated by Year - you cannot split these figures by anything other than Year.
    Just because you want to add other key figures from another cube (B) whose values sit at Cal Quarter does not mean that any coded rules you apply will result in correct figures when you drill down to Quarter. How do you propose to fix that? Answer: you can't, it's impossible without getting yourself in a lot of trouble with the business/your client.
    Your best bet is to add a characteristic into Cube A called 'Source of Data' and fill that in your transformations. Then you can load both data from A and B into the same cube A. When reporting, just use a restricted KF to pull out the values you want.
    If you drill down by Quarter of course Cube A KFs will be "not assigned" for the simple reasons I explained above.

  • Custom Report producing inconsistent data columns

    Hello,
        I'm trying to create a detailed user report and it's not displaying properly.  The code is as follows:
    SELECT v_GS_COMPUTER_SYSTEM.Name0 as 'Computer Name','Chassis'=CASE
    WHEN v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 in ('3') THEN 'Desktop'
    WHEN v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 in ('10') THEN 'Laptop'
    WHEN v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 in ('1') THEN 'Virtual'
    ELSE 'Unknown' END,
    vru.User_Name0 as 'User Name', vru.Full_User_Name0 as 'Full Name', vru.department0 as 'Department',
    vru.employeeNumber0 'Employee ID', vru.title0 as 'Job Title', vru.manager0 as 'Manager', vru.l0 as
    'Location', vru.streetaddress0 as 'Street Address', vru.telephonenumber0 as 'Telephone Number',
    vru.lastlogon0 as 'Last Logon Time'
    FROM v_R_User vru
    FULL JOIN v_R_System vrs ON vru.ResourceID = vrs.ResourceID
    LEFT JOIN v_GS_COMPUTER_SYSTEM ON vrs.ResourceID = v_GS_COMPUTER_SYSTEM.ResourceID
    LEFT JOIN v_GS_SYSTEM_ENCLOSURE ON v_GS_COMPUTER_SYSTEM.ResourceID = v_GS_SYSTEM_ENCLOSURE.ResourceID
    ORDER BY v_GS_COMPUTER_SYSTEM.Name0
    I suspect my joins are not quite right.  Here is a small snippet of the output.  I cut out large sections to give an idea of how it's jumping around with the output.

    Your problem is you full join. User and computer does NOT join on
    vru.ResourceID = vrs.ResourceID
    They can only be joined by logon user details.  The catch is there are 4 different place to gather this info. Which one are you going to use?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • RESCIS - Unable to select custom report from Selection Screen

    Hi all,
    we have developed a custom report for transaction "RESCIS-Evaluation of service charge settlement" but we have found that althought the report appears in selection screen field called "REPORT" it throws message RESCIS003 but the report is not shown.
    If we doesn't fulfill report field in selection screen, the program shows a second screen where a couple of ALVGrids are shown allowing the user to select the report that will be displayed. Here we are able to select our custom report and the data in it is displayed.
    We have analyzed the standard program that is executed via transaction RESCIS and we've found that the selection screen executes standard function RESC_GUI_ANYREPORTS_APPL that doesn't executes reports dinamically but statically. That means that SAP doesn't allows to execute custom reports directly from selection screen.
    I think this is a SAP error but afert opening an OSS message SAP sais that is not an error but a bad configuration or lack of knowledge for customizing it.
    Has anyone developed a custom report for RESCIS transaction?

    Hm what exactly did you want to change? Normally it is in REFX cases you should not copy standard REPORTS. In your case with transaction RESCIS, I myself do not see any need to add any functionality in this report because it is only a sum of all lists from your service charge settlement. What else do you want to see there?
    For displaying new fields in the separate lists maybe there is some BADI for it.
    Regards
    Michael

  • How to create custom reports.

    Hi ,
    Could you please let us know how to create custom reports which are data based and not analytics. Which is the best method , is it to devlop reports in sites or integrate with OBIEE reports. could you please let us know the best practices for this approach.
    Thank you,
    Sashank P.

    Hi Jiri ,
    Thanks a lot for your support. Below are my answers for the request:
    1) what data you want to report on? Is it data from a database? file system? Web service outputs?
    Ans : The Data would be mostly from Database only.
    2) what is the overall purpose of your solution?
    Ans: The overall purpose of this solution is to generate reports with sorting capability and should be able to export in different format documents.
    3) what is your architecture?
    Ans :
    4) why Sites?
    Ans: The customers login into our site and can be able to view the different reports and the present site is already a webcenter site. and the reporting capability is an enhancement .
    Can you please provide the right approach here. We have an option of using ADF or even we can use Webcenter Portals. So which would be the best approach to go. And can you please guide us any approach or examples for integrating Webcenter Portals and Sites and even integrating ADf with Sites.
    Thank you,
    Sashank P.

  • Custom reports in R12 not returning any data

    I'm seeing an issue of custom reports in R12 not returning any data. So far what I've been able to dig into is that the report query itself is referring to APPS synonyms that are secured under MOAC. What I am able to do is run the query in SQL Developer after having run mo_global.set_policy_context and I receive the data I'm looking for. This is not the case when running the report through the concurrent programs request.
    Secondly, I've also configured the concurrent program request to run as single operating unit mode. This aided in fixing any issues with LOVs on the parameter form. However, still no results from the report itself. I've also searched around quite extensively and added a P_CONC_PROGRAM_ID user parameter in reports developer, as well as adding SRW.USER_EXIT('FND SRWINIT') to the before report trigger and SRW.USER_EXIT('FND SRWEXIT') to the after report trigger as well. No luck. I've also tried running mo_global.set_policy_context on the before report trigger and no such luck.
    Has anyone seen similar issues with this and could shed some light? At this point, the workaround I would see is to just change the query to use respective all tables and match up against the orgid, but I'd rather not do that.

    I am facing exactly the same issue with 2 of my custom Reports in R12.1.3. We did our level best to find out the issue. It was always a hit and trial fix.
    But the following were our observations and workarounds
    0) The reports Conc Prog were in MOAC - Single mode. Both the reports had SRW INIT, EXIT and P_CONC_REQUEST_ID
    1) The reports which caused the issues[NO data fetched for MOAC] had multiple Queries in the data model and one Query fetches data and the 2nd one doesnt. Both the queries when run from SQL developer after setting the org gave results.
    Workaround for Report1
    a) We deleted the data link connecting the 2 columns in both the queries and added a bind variable instead in the 2nd /child query to refer to the column in the parent query and linked the 2 groups.
    Workaround for Report 2
    a) In report 2 the queries were not linked to each other. Only one query used to return results and the 2nd one returned 0 rows. The workaround was to use the "where" conditions as lexical parameters after having set the value for the same in before report trigger.
    Both the work around looks illogical. Still It worked..!
    Thanks
    Biju Radhakrishnan

Maybe you are looking for

  • HP Officejet Pro 6830 Won't Connect to WiFi

    I've had the HP Officejet Pro 6830 for 6-9 months, it's been working great wirelessly the whole time.  Three nights ago we had a power failure, now the printer won't connect to the wireless router.  It sees the SSID, but when I enter the password, it

  • HELP! Fuzzy images and text in Muse

    Hi I am going to preface this post by admitting that I am a complete amateur, just trying to create a simple but work-able and professional looking website for my business. I am new to Muse (previously used a similar program to create my sites) and h

  • String concat problem

    Hi folks,- i know this question might be very simple but i just cannot see what i am doing wrong here. String stringA, stringB, stringC; stringA= new String(); stringB= new String(); stringC= new String(); stringA = null; stringB = "TRUE"; stringC =

  • Qosmio G20-139: Using notebook screen to play on the Xbox360

    Hi I have a query about the monitor in function with the G20-139, I have an xbox 360 and want to know if there is a way of using the notebooks screen to play on the 360 either in High-Def or composite mode by using the monitor in function. With the n

  • Colorspace changed?

    I've set up a customized colorspace, named it and saved it. The one pref I always change is that I work in Adobe 1998. So I'll be working in PS and then see that when I go to save an image, the box checked at the bottom of the Open/Save dialog is sRG