How to know if the data model qry is not returning any data

Hi
If my report doesn't have data (meaning if the data model qry doesn't retreive any data), I wan't to show this text: "There is no data returned."
My question is how would I know that the qry is not returning any data. I know I can create a text field, and write a trigger on it, to set it True or False depending on the fact that data is being returned or not.
Thanks
Shalu

Hi,
In Data Model create a summary column for function=count on one of your columns.
Then for BeforeReport trigger you can write
function BeforeReport return boolean is
begin
if :CS_RPT_NODATA > 0 then
return (TRUE);
end if;
SRW.MESSAGE(300,'There is no data');
return (FALSE);
end;
Regards, Gicu

Similar Messages

  • Payroll extractor 0HR_PY_1 do not return any data in RSA3 in full mode

    Hi,
    I have activated Payroll extractor 0HR_PY_1.
    I use RSA3 to check the extractor.
    It does not return any data(0 records) in full mode.
    Do i need to do activate any other object, apart from the datasource?
    Thanks in advance  for your help.
    Regards,
    Suresh.

    Hi Suresh,
    HR extractors need additional authorizations. When the extractor is run, there would be a check if the user is authorized to extract data. Check SAP notes 672514 & 397208. Also find my previous post on this.
    Re: Extractor 0HR_PY_1 does not return data to BW
    Best Regards,
    Murali.

  • How to know whether the javascript is disabled or not while loading the jsp

    Hi,
    My query is like how to know whether the javascript is disabled or not while loading the Application main JSP in Mozilla browser.
    I want some Java code or JavaScript code.

    To the point, just let JS fire a specific HTTP request inside the same session.
    This can be done in several ways. 1) Create a hidden <img> element and set the `src` attribute so that it will request a (fake) image from the server. The server just have to intercept on this specific request. 2) Fire an ajaxical request and let the server intercept on it. You can use a Filter for this which sets a token in the session scope to inform that the client has JS enabled.

  • Hi, you know how i can fix the problem that my iPhone5s not have any coverage in place? Please.

    Hi, you know how i can fix the problem that my iPhone5S not have any coverage in place?
    Please, and thanks.

    If it's out of warranty, Apple will replace your phone for $269.

  • Safari cannot open the page because it could not load any data

    I had a odd thing happen with Safari today I get a "Safari cannot open the page because it could not load any data" msg when going to a saved site with a book mark but I can get the page to load by going to google.  It dosn't happen for the same site every time  Mosty Fanfiction.net.  Happens on Nework and on cellular.   Sites work on my Ipad but not my Iphone 6  

    Thanks a lot for the tip! I wrote to the NYTimes webmaster but did not get a reply. However, the next day my problem was solved and I could access all content as I did previously. Either a coincidence or...? I'll take it either way and thanks again!

  • Binocular search for Cost Center is not returning any data

    Hi Gurus,
    When clicking on the SRM-Shooping Cart-Cost Assignment- Account Assignment Overview- Cost center Binocular search icon,  it is not returning any data.  However,  when drilling down in the Account Assignment Overview, you will see another Binocular search icon for Cost Center which is working fine.
    Any idea of how you troubleshoot it.
    Thanks in advace for your help.
    HA

    Not sure about the cost assignment drill down, but after we applied SP13 to SRM server 550 the binoculars for cost center stopped working. the following note corrected this.
    Note 1259735 - Search help of generic account does not work
    If it has never worked, then probably need to setup a RFC dialog user for the F4 search help, Multiple threads on here around the dialog user for F4 with details on configuration and use.
    JF

  • 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

  • Ibots not returning any data

    Hi,
    I have some ibots that I scheduled to run on a daily basis and which were working perfectly.
    Suddenly the same ibots, they run but the content of the attachment says "The specified criteria did not return any data".
    I checked the log files and could not see any relavant error.
    If I go back in the report that I am sending through the ibot, it runs without any problem.
    I tried to send it in different formats and run as different users, but the results are still the same!
    Any idea what else I could check?
    Type: Warning
    Severity: 50
    Time: Wed May 15 14:10:19 2013
    File: project/webodbcaccess/odbcconnectionimpl.cpp Line: 199
    Properties: RptPath-/shared/MICROS/giuliano/cube_build_verification;SID-btilnnapkfo2omg91a71b9m6n2;bindID-1;connID-31;ThreadID-4640;statementID-364;RSP-o:go~r:report
    Location:
         saw.odbc.statement.fetch
         saw.subsystem.portal.pdf
         saw.delivers.rpc.getDeviceContent
         saw.rpc.server.responder
         saw.rpc.server
         saw.rpc.server.handleConnection
         saw.rpc.server.dispatch
         saw.threadPool
         saw.threads
    SQLFetchScroll returned code SQL_NO_DATA_FOUND

    Thanks it solved the issue.
    But One more thing Now I have placed the parameters in the where clause of the query
    Query-
    select field1,field2,field3,field4,field5,job_name,candidate_name,interview_date from etc.ethr_irc_int_details
    where field1 is not null
    and job_name = :1
    and candidate_name = :2
    and interview_date = :3
    in the VO I am executing
    public void iniQuery(String S1, String S2,String S3)
    System.out.println("insdie ini query of the VO");
    System.out.println("S1 "+S1);
    System.out.println("S2 "+S2);
    System.out.println("S3 "+S3);
    this.setWhereClauseParams(null);
    this.setWhereClauseParam(0,S1);
    this.setWhereClauseParam(1,S2);
    this.setWhereClauseParam(2,S2);
    executeQuery();
    and in AM
    ETHRIntDetailsVOImpl IDVO = (ETHRIntDetailsVOImpl)this.getETHRIntDetailsVO();
    // IDVO.executeQuery();
    // OAViewObject IDVO = (OAViewObject)findViewObject("ETHRIntDetailsVO");
    IDVO.iniQuery(S1,S2,S3);
    Row row = IDVO.first();
    again I am not getting any data in the row??
    Any idea if I am doing any thing wrong..
    Please help urgently.
    Thanks
    Ashish

  • Boot loader did not return any data.

    Hi,
    i have installed the Oracle VM Server and Oracle VM Manager in two different machines. I'm using the VM Manager to create the Virtual Machines(guest). I followed all the steps given in the Oracle VM Manager User guide 2.2. I'm using the RHEL5 as the OS for the guest machine. I receive an error saying 'Boot loader did not return any data.'. The vm.cfg file has got created in the path /OVS/running_pool/12_VM1. The contents of the vm.cfg file are as below
    bootloader = '/usr/bin/pygrub'
    disk = ['file:/var/ovs/mount/616CC4FA976D4352B1630FFCE835FEC5/running_pool/14_VM1/System.img,xvda,w']
    keymap = 'en-us'
    memory = '1024'
    name = '14_VM1'
    on_crash = 'restart'
    on_reboot = 'restart'
    uuid = '3a925bc9-1555-b5bb-b0f0-c5958db65468'
    vcpus = 1
    vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=vm123']
    vif = ['mac=00:16:3E:02:8B:64, bridge=xenbr0']
    Can any one help out in this ASAP.
    Thanks in Advance.

    re..
    sorry but did you installed guest OS or not ?
    Did you install from image, from dvd ...?
    If yes try start youre vm from server terminal
    #>xm create -c vm. cfg
    *T                                                                                                                                                                                                                                                                                                                                                       

  • How to know whether the phone is replaced or not?

    Dear All,
    Please help in how to know whether Iphone 5 is replaced or not? I came to know that on replacement, imei number gets changed. please make me aware.

    Nobody here can make you aware.  You need to contact Apple directly.

  • Very Very Urgent Issue: Restricted Key Figure does not return any data

    Hi all,
    Please help me solving this urgent issue.
    created customer exit variable on characterstics version and also
    other customer exit variable on Value type.
    I coded that in variable exit. Problem is when I include these in
    restrickted keyfigure My query does not return me any data.
    But if I remove from restrickted key firgure and put it as normal
    charaterstics I see the variable is getting populated.
    Also in RSRT the SQl generated when these are included in RKF is not
    correct.
    I debugged and know they are getting populated. As when included in RKF
    I can also see the values of customer exit variables from information
    tab.
    I also know that there is data in cube for those restrictions.
    I posted one OSS Notes regarding this urgent issue. But got no reply from SAP.
    FYI: We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11
    Thanks
    SAP BW
    **Please do not post the same question twice: Very Urgent Issue: Restricted Key Figure does not return any data

    Hi,
    Everyone out there this is very urgent. If someone can help me solving this problem.
    We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11.
    I posted one oss notes also regarding this issue. But got no reply from SAP.
    So, Please help me solving this issue.
    Thanks
    SAP BW

  • Ref cursor not returning any data

    Hi
    How can I raise an exception when ref cursor is not retrieving any data.
    create or replace function getempdetails(p_deptno in number)
    return sys_refcursor
    is
    v_refcursor sys_refcursor;
    begin
    open v_refcursor for
    select * from emp
    where deptno = p_deptno;
    return v_refcursor;
    exception
    when no_data_found then
    dbms_output.put_lline('No data available for p_deptno');
    end;
    Say for example p_deptno = 12
    Thanks
    Raghu
    Message was edited by:
    user584123

    It is useless but... you can do this
    create or replace function getempdetails(
         p_deptno in number
    return sys_refcursor
    is
         v_refcursor sys_refcursor;
         flag number;
    begin
         select count(*)
              into flag
         from emp
         where deptno = p_deptno
              and rownum = 1;
         if ( flag = 0) then
              dbms_output.put_lline('No data available for p_deptno');
              return null;
         else
              open v_refcursor for
              select * from emp
              where deptno = p_deptno;
              return v_refcursor;
         end if;          
    end;Bye Alessandro
    Message was edited by:
    Alessandro Rossi
    Or this
    create or replace function getempdetails(
         p_deptno in number
    return sys_refcursor
    is
         v_refcursor sys_refcursor;
         flag number;
    begin
         select 1
              into flag
         from emp
         where deptno = p_deptno
              and rownum = 1; -- This throws the exception
         open v_refcursor for
         select * from emp
         where deptno = p_deptno;
         return v_refcursor;
    end;

  • How to Create a record if vo.executequery does not return any rows

    I would like to update a single record on adf form. However if the record does not exist would like to create a row and save it in the table.
    The user does not want to add a "create" button on the screen. Hence would need to add the create code if vo.execute does not return any rows...
    How to add this and where to add?

    you can have a TF router for for exists and does not exist and based on that execute transient VO and other VO.
    Add a method call activity like below to create a row in transient VO
    public Row createRow()
    ViewObjectImpl tVO = (ViewObjectImpl)getTVO();
    tVO.executeEmptyRowSet();
    Row newRow = tVO.createRow();
    tVO.setCurrentRow(newRow);
    tVO.insertRow(newRow);
    return newRow;
    }

  • FM not returning any data

    When using the FM GN_DELIVERY_CREATE i am not getting any delivery created for a PO.

    Hi,
    After calling any function module, and if it has to do any changes in the SAP database table, u must do Commit work..
    After call function, you should give either COMMIT WORK or CALL FUCNTION ' BAPI_TRANSACTION_COMMIT'......i.e
    CALL FUNCTION 'GN_DELIVERY_CREATE'
    importing
    exporting.
    either
    COMMIT WORK.
    or
    CALL FUCNTION ' BAPI_TRANSACTION_COMMIT'.
    Regards,
    Surya

  • How to know if the path given exists or not???

    i have a string containing a path (of a directory or a file(.pdf)
    i want to test if the path given exist in the hard disc or not i have tested with file.canRead but there is no results
    please help???

    the path are estracted from a database and i will check if these patwh exists or not in the hard disc
    this is the method ; it read from the 1 tabe ,the second (and test if inthis path there is any .pdf),the third (and test if inthis path there is any .pdf),
    public void parcours()
    /*2*/ {
    String ParcDep="select code_dp from departement" ;
    String ParcOrg="select code_or from organisme o,departement d where d.code_dp=o.code_dp and o.code_dp=? ";
    String ParcSor="select code_so from sous_organisme so,organisme o,departement d where so.code_or=o.code_or and d.code_dp=o.code_dp and so.code_or=? ";
    Statement st=autentif.getStatement();
    try
    /*3*/{
    Connection connec=autentif.getConnection();
    PreparedStatement ps = connec.prepareStatement(ParcOrg);
    PreparedStatement ps1 = connec.prepareStatement(ParcSor);
    ResultSet rsd = st.executeQuery(ParcDep);
    while(rsd.next())
    /*4*/ {
    System.out.println("boucle departement");
    String Dep=rsd.getString(1);
    String chem="c:\\Etats_insaf\\".concat(Dep);
    System.out.println(chem);
    String DepChem=chem.concat("\\");
    System.out.println(DepChem);
    ps.setString(1,Dep);
    ResultSet rso = ps.executeQuery();
    while(rso.next())
    /*5*/ {
    System.out.println("boucle organisme");
    String Org=rso.getString(1);
    System.out.println(Org);
    String chem1=DepChem.concat(Org);
    String DepOrgChem=chem1.concat("\\");
    System.out.println(DepOrgChem);
    File dirOrg=new File(chem1);
    /*System.out.println("le chemin de lorganisme est");
    System.out.println(dirOrg);
    System.out.println("esqu il existe :");
    System.out.println(dirOrg.exists());*/
    if(dirOrg.exists()==false){ System.out.println("le chemin de l organisme au dessus n existe pas");}
    else{/*11*/
    FilenameFilter filter = new FilenameFilter()
    public boolean accept(File dirOrg, String name)
    return name.endsWith(".PDF");
    String[] childOrgp=dirOrg.list(filter);
    System.out.println("le tableau");
    System.out.println(childOrgp);
    if (childOrgp == null)System.out.println("pas de doc pdfdans org");
    else
    {/*6*/
    System.out.println("aaaaaaaaaaaaaaaaa");
    System.out.println(childOrgp.length);
    for(int i=0;i<childOrgp.length;i++)
    {/*7*/
    System.out.println("le chemin du doc .pdf dans lorganisme est");
    System.out.println(childOrgp);
    System.out.println("esqu il existe :");
    System.out.println(dirOrg.exists());
    Statement stat=autentif.getStatement();
    String reqnum="select cod_ed.nextval from dual";
    ResultSet rsnum=stat.executeQuery(reqnum);
    rsnum.next();
    int num1=rsnum.getInt(1);
    System.out.println(num1);
    String num= Integer.toString(num1);
    System.out.println("num");
    System.out.println(num);
    System.out.println("bbbbbbbbbbbbbbbbbb");
    String filename = childOrgp;
    String nom=DepOrgChem.concat(filename);
    System.out.println("oooooooooooooooo");
    System.out.println(nom);
    String typef1=filename.substring(0,filename.indexOf("."));
    int lg=nom.length();
    String nomfin=nom.substring(3,lg);
    String req="insert into etat_d'edition (code_ed,path_ed,taille_ed,telecharger_ed,code_te,code_or,code_so) values '"+num+"','"+nomfin+"',null,null,'"+typef1+"','"+Org+"',null )";
    System.out.println(req);
    st.execute(req);
    }/*7*/
    }/*6*/
    ps1.setString(1,Org);
    ResultSet rss = ps1.executeQuery();
    while(rss.next())
    {/*8*/
    System.out.println("boucle Sous organisme");
    String Sor=rss.getString(1);
    System.out.println(Sor);
    String chem2=DepOrgChem.concat(Sor);
    String DepOrgSorChem=chem2.concat("\\");
    System.out.println(DepOrgSorChem);
    File dirSor=new File(chem2);
    System.out.println("le chemin du sous organisme est");
    System.out.println(dirSor);
    System.out.println("esqu il existe :");
    System.out.println(dirSor.exists());
    if(dirSor.exists()==false){ System.out.println("le chemin de l organisme au dessus n existe pas"); }
    else{/*12*/
    FilenameFilter filter1 = new FilenameFilter()
    public boolean accept(File dirSor, String name)
    return name.endsWith(".PDF");
    String[] childSor=dirSor.list(filter1);
    if (childSor == null)System.out.println("pas de doc pdf");
    else
    {/*9*/
    for(int j=0;j<childSor.length;j++)
    {/*10*/
    Statement stat=autentif.getStatement();
    String reqnum1="select cod_ed.nextval from dual";
    ResultSet rsnum1=stat.executeQuery(reqnum1);
    rsnum1.next();
    int num2=rsnum1.getInt(1);
    System.out.println(num2);
    String num1= Integer.toString(num2);
    System.out.println("num1");
    System.out.println(num1);
    String filename1 = childSor[j];
    String nom=DepOrgSorChem.concat(filename1);
    String typef=filename1.substring(0,filename1.indexOf("."));
    int longu=nom.length();
    String nomfin1=nom.substring(3,longu);
    String req2 ="insert into etat_edition(code_ed,path_ed,taille_ed,telecharger_ed,code_te,code_or,code_so) values('"+num1+"','"+nomfin1+"',null,null,'"+typef+"','"+Org+"','"+Sor+"' )";
    st.execute(req2);
    }/*10*/
    }/*9*/
    }/*12*/
    }/*8*/
    }/*5*/
    }/*11*/
    }/*4*/
    }/*3*/
    catch(Exception ex)
    System.out.println("ayayayayayayayaaaaaa");
    System.out.println(ex.getMessage());
    }/*2*/
    it must test if all the path extracted exists or not but it go to the first department (because it exist) then it stops (because the second department dosnot exist)

Maybe you are looking for

  • SQL Open Sales Orders Value using today's currency rates

    Hi experts, I am creating a report for displaying the open sales order values (and other fields) using current currency rate (where applicable). I developed the below query. The only problem with this query is that it ignores the order rows in which

  • Different Color Text of Topic Titles by Child Project in Search Results List

    Does anyone know how I can change the text color to indicate the source project of a topic as displayed in the Search Results list? I have followed Peter Grainge's directions for setting up a parent project that has several child projects, one of whi

  • Ipod touch 3rd Gen Still Making G4 Crash

    I thought we had corrected this issue but it has not been corrected. Have a G4 Mac 733 Mhz running 10.4.11 When Ipod Touch 3rd Gen is plugged into usb hub that is separately powered by its own brick the computer locks up. Everything just freezes up..

  • Limit country on a selection screen to present only states on screen

    The selection screen that I developed has city, state, and country parameters.  My users need to select only states from the US.  How can I limit the source data of only states in the US to the selection parameters? I would appreciate your suggestion

  • Please Urgent sound applet in jsp problem

    Hi please any body hekp me urgently. I have a problem while playing a sound applet in the jsp file the error is class not found. My applet class file is in the com.mypack.common its code is public class PlayErrorSoundApplet extends Applet public Play