Displaying no Records found in webdynpro side?

Hi All ,
How to display the error message coming from R/3 side.
If iam giving input from dynproside, if no Records found in R/3 side how can I display "No records Found"in Dynpro side.
Please help me for this.
Thanks
Nageswara.

hi Armin
I have implemented the following code as suggested by you but still it seems that I am not able to get the expected results.Even though there are no results in the BAPI it is firing to the next screen and displaying "records found" when there are no records displayed.
I am using the following code.
try
            // Calls remote function module Customer OrderList
            wdContext.currentZ_Vf_Customer_Orderstatus_List_InputElement().modelObject().execute();
          // Synchronise the data in the context with the data in the model
          wdContext.nodeOutput().invalidate();
          //if(wdContext.currentOutputElement()== null)
          //wdComponentAPI.getMessageManager().reportException(wdContext.currentZ_Vf_Customer_Order_Detail_InputElement().get<messageAtribute>);
          int i = wdContext.nodeOutput().size();
          if(i ==  0)
               wdThis.wdGetAPI().getComponent().getMessageManager().reportException("NO Records Found",false);
                    //wdThis.wdFirePlugToOrderStatusResults();
               else
               wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Records Found");
          catch (Exception ex)
            // If an exception is thrown, then the stack trace will be printed
            ex.printStackTrace();
Plase suggest me as to what has to be done.
thanks and regards
gopi krishna

Similar Messages

  • Let me know how to Display "No Record found"

    Hello All,
    Please help me in displaying the text " No record found" when no datas are present. I use lexical parameter and bind paramter to retrieve datas.
    Appreciate your help!
    Thanks
    Ashok

    There may be an easier way to do this, but this is how I do it. I create a summary column to count the primary key in my query. I usually call this CS_TEST_RS (record set). I then create a label "No Records Found" outside any frames in my paper layout and apply a format trigger to it. Ex:
    IF :CS_TEST_RS = 0 THEN
    return (TRUE);
    ELSE
    return (FALSE);
    END IF;
    That's it. If the count is 0, display the "No Records Found", if not, hide it. Hope this helps.
    TL

  • How to show 'No Records Found' and 'Employee Name Unknown' in oracle report

    Hello,
    I'm using 6i and building a report to show employees who have incorrectly input their time. I have an input parameter so a user can select a specific employee by emp_id or can leave it empty to show all. That part works. I also have date parameters that are required. That works too. However I am having trouble displaying 'NO Records Found' if the date parameters have no late or rejected employee time records. I currently have it as a text field arranged behind the emp_name field which i filled white. It works...however i have a pretty good feeling there is a better way to do this. Also, I have some data that is null since i am using two tables. There are time stamps with no emp_name or emp_number. I still need to show these records but want them to show up as "Employee Name Unknown" that way the user doesnt get confused and thinks the emp_name in the row above also includes this row.
    select e.location "Clock Location",
    e.emp_no "Emp No",
    l.first_name ||' ' || last_name "Name",
    e.time_stamp "Time",
    from emp_time e, master_all l
    where e.emp_no (+) = l.emp_no
    and e.status = 'rejected'
    --and e.emp_no  = nvl (:p_emp_no, emp_no)
    --and e.time_stamp between :p_start_date and :p_end_date                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    So, when the join between emp_time and master_all produces no rows, you still want one row of output, saying 'No Records Found'; is that right?
    If so, you can outer-join the result set to dual, with some join condition that accepts anything.
    Use CASE (or equivalents) to get special values (like 'No Record Found' or 'Employee name unknown') when certain columns are NULL.
    For example:
    SELECT     j.location     AS "Clock Location"
    ,     j.emp_no     AS "Emp No"
    ,     CASE
              WHEN  j.name     IS NULL
              THEN  'No Records Found'
              ELSE  j.name
         END          AS "Name"
    ,     time_stamp     AS "Time"
    FROM     dual     d
    ,     (     -- Begin in-line view j, join of emp_time and master_all
              SELECT     e.location
              ,     e.emp_no
              ,     CASE
                       WHEN  l.first_name IS NULL
                       AND       last_name    IS NULL
                       THEN  'Employee name unknown'
                       ELSE  l.first_name || ' ' || last_name
                   END     AS name
              FROM      emp_time     e
              ,     master_all     l
              WHERE     e.emp_no (+)       = l.emp_no
              AND      e.status (+)       = 'rejected'
    --           AND     e.emp_no (+)        = NVL (:p_emp_no, emp_no)
    --           AND       e.time_stamp (+)  BETWEEN :p_start_date
                                             AND        :p_end_date
         ) j     -- End in-line view j, join of emp_time and master_all
    WHERE     d.dummy     != j.name (+)
    ;In an outer join, all conditions involiving the optional table need a + sign; otherwise, the effect is the same as an inner join.
    The message 'No Records Found' is a string, so it has to go in a string column.
    I put it in the "Name" column, just because I knew that "Name" was a string.
    You can put in in any other column if you wish. If that column is not already a string, then use TO_CHAR to make it a string.
    You could also have a column just for this message.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    DOUBLE U wrote:
    I've tried nvl in the select statement but since emp_name is a concatination of first and last name it doesnt work. This is what i have tried
    nvl(l.first_name|' '||l.last_name,'NO EMPLOYEE RECORD FOUND') "Employee",I assume you meant to have two | characters, not just one, after first_name.
    The first argument to NVL will never be NULL in that case; it will always contain at least a space, whether or not the other columns are NULL. You could say:
    NVL ( NULLIF ( l.first_name || ' ' || l.last_name
        , 'NO EMPLOYEE RECORD FOUND'
        )        "Employee",bujt I find it less confusing to use CASE, as shown above.

  • Display 'No Data Found' if the records doesnot match the parameter

    Can anyone pls answer this question.
    I have just one parameter, if i select a value from the parameter and the results matches then the report shows records which is obvious but IF no data is matching to the value I selected in parameter, Can I didplay NO Data Found when I run the report??
    I want Display No Data found on my report, I just get a blank page with report title, date and PageNof M
    Someone pls suggest
    I am using CR 11.5

    hi,
    thanks for the suggestion but I am not clear about this part, i am sorry aboiut that:
    Create a text object with No Data Found in it.
    Conditionally suppress the text object with a formula similar to the following;
    {@countdbfieldformula} 0
    Where should i exactly drop my text box.
    I have parameter on 'Project Name'
    Pls suggest me something with steps...i would highly appreciate it

  • Report- not displaying some records in the report

    I have a query say q1 based on the query value. I am getting place holder colums obtained from a procedure. based on one of the place holder columns i want to display the data say i have place holder column err_ind if it y. i don't want to display the record in report.
    how can i do it ? ur help is much appreciated.

    Hi Praveen,
    Thanks for the response.
    Actually i did debug the program with the help of our technical guys but found nothing wrong in both the quality and the production system. We compared the program in both the systems and it seems to be same. I am exploring this issue. Will update the findings here.
    In case anyone has any suggestion please do suggest.
    Regards,
    Gokul

  • Database displaying all records when no records are in database

    SEARCH PAGE:
    <form id="searcMennuu" name="searcMennuu" method="post" action="VehicleListing.php">
    <select name="vehicles" id="vehicles">
    <option value="allCars" selected="selected">ALL</option>
    <option value="Sedan">Sedan</option>
    <option value="Jeep">Jeep</option>
    <option value="Motorbike">Motorbike</option> </select> <input name="radioVehicle" type="radio" id="searchSale" value="searchSale" />
    Vehicles for Sale</label>
    <label>
    <input type="radio" name="radioVehicle" id="searchRent" value="searchRent" />
    Vehicles for Rent</label> <input type="submit" name="searchButton" id="searchButton" value="Search" />
    </form> RESULTS PAGE:
    mysql_select_db($database_ddd, $ddd); $query_rsTest = "SELECT `year`, `model` FROM vehicles";
    if (isset ($_POST ['vehicles'])) {
    $parSearch = mysql_real_escape_string ($_POST['vehicles']);  if($_POST['vehicles'] == "Sedan"){
    $query_rsTest.= " WHERE vehicle_type LIKE '%$parSearch%'";
    } $rsTest = mysql_query ($query_rsTest, $ddd) or die(mysql_error());
    $row_rsTest = mysql_fetch_assoc ($rsTest);
    $totalRows_rsTest = mysql_num_rows ($rsTest); <div class="showPage"><?php echo $totalRows_rsTest ?></div><?php do { ?>
     <?php if ($totalRows_rsTest > 0) { // Show if  recordset not empty ?> 
    <div class="output" id="Results">
    <p><?php echo $row_rsTest['year']; ?></p>
    <p><?php echo $row_rsTest['model']; ?></p>
    </div>
    <?php } // Show if recordset empty ?>
    <?php } while ($row_rsTest = mysql_fetch_assoc($rsTest)); ?> 
    1. I think i found out why the hide region is not working, whenever i search for something that is not in my database or does not satisfy my search criteria the results page is displaying all records in the database. However i don't know how to fix that. Can someone please help me?
    2. Also i'm trying to find out how i would display ALL vehicles in my database either for rent or sale, i dont have a field in my database for "ALL" so i'm not sure where to start. Thanks in advance

    Which BOBJ version do you use?
    Which kind of data source are you retrieving data from?
    Regards,
    Stratos

  • Display No Msg found..

    Hi All,
    I am working on PL/Sql.. The concept i am using is for filtering.. as sample code is shoe beow..
    DECLARE
    q VARCHAR2 (4000);
    BEGIN
    IF TRIM (:P9_src_app_name) IS NULL
    AND TRIM (:P9_dest_app_name) IS NULL
    AND TRIM (:P9_src_att_type) IS NULL
    AND TRIM (:P9_dest_att_type) IS NULL
    AND TRIM (:P9_source_key) IS NULL
    THEN
    q := 'select * from dual where 1=2';
    ELSE
    q :=
    'select distinct SRC_APP_NAME||DEST_APP_NAME||SRC_ATTRIBUTE_TYPE||DEST_ATTRIBUTE_TYPE||SRC_KEY
    "EDIT",SRC_APP_NAME,DEST_APP_NAME,SRC_ATTRIBUTE_TYPE,DEST_ATTRIBUTE_TYPE,
    SRC_VALUE,DEST_VALUE,SRC_KEY,SRC_KEY_DATA_TYPE,SRC_KEY_FORMAT_MASK,DEST_KEY,
    DEST_KEY_DATA_TYPE,DEST_KEY_FORMAT_MASK,SRC_DATA_TYPE,DEST_DATA_TYPE,
    SRC_DATA_FORMAT_MASK,DEST_DATA_FORMAT_MASK,EFFECTIVE_START_DATE,
    EFFECTIVE_END_DATE,MODIFIED_DATE,MODIFIED_BY, SRC_APP_NAME||DEST_APP_NAME||SRC_ATTRIBUTE_TYPE||DEST_ATTRIBUTE_TYPE||SRC_KEY
    "DEL" from FEEDMGR.T_META_DATA_LOOKUP where DEST_APP_NAME not in (''HERMES'')';
    IF TRIM (:P9_src_app_name) IS NOT NULL
    AND TRIM (:P9_dest_app_name) IS NULL
    THEN
    q := q || ' and SRC_APP_NAME=' || '''' || :P9_src_app_name || '''';
    END IF;
    IF TRIM (:P9_dest_app_name) IS NOT NULL
    AND TRIM (:P9_src_app_name) IS NULL
    THEN
    q := q || ' and DEST_APP_NAME=' || '''' || :P9_dest_app_name || '''';
    END IF;
    IF TRIM (:P9_src_app_name) IS NOT NULL
    AND TRIM (:P9_dest_app_name) IS NOT NULL
    THEN
    q := q || ' and SRC_APP_NAME=' || '''' || :P9_src_app_name || '''';
    q := q || ' and DEST_APP_NAME=' || '''' || :P9_dest_app_name || '''';
    END IF;
    IF TRIM (:P9_src_app_name) IS NOT NULL
    AND TRIM (:P9_src_att_type) IS NOT NULL
    THEN
    q :=
    q || ' and SRC_ATTRIBUTE_TYPE=' || '''' || :P9_src_att_type
    || '''';
    END IF;
    IF TRIM (:P9_dest_app_name) IS NOT NULL
    AND TRIM (:P9_dest_att_type) IS NOT NULL
    THEN
    q :=
    q || ' and DEST_ATTRIBUTE_TYPE=' || '''' || :P9_dest_att_type
    || '''';
    END IF;
    IF TRIM (:P9_src_app_name) IS NOT NULL
    AND TRIM (:P9_source_key) IS NOT NULL
    THEN
    q := q || ' and SRC_KEY=' || '''' || :P9_source_key || '''';
    END IF;
    END IF;
    RETURN q;
    END;
    Now i am facing problem.. if there is no records found from the above results .. I need to display msg as "No Records Found" ..
    As i am very new to Pl/Sql pls help me out ..As it is very urgent..
    Thansks,
    Anoo...

    Hi Anoo,
    Suppose your report is in Page 10,
    Click On Application Builder. You will See all you pages here..
    Click on Page 10 ..
    On the Left you will see PAGE RENDERING section.
    Under PAGE RENDERING .. 2 option is REGION..
    In region which contains your report - You will see left one is region name and right link is "REPORT" ..
    Click on Report and there will will see the MESSAGE TAB...
    Regards,
    Shijesh

  • Payment F110 - No data records found for these selection criteria, FZ208

    Hi all,
    I have done all configuration for payment medium for a customer in Norway. We use Telapay and program RFFONO_T. We have not activated the new general ledger but we have ECC 6.0 so I do not see why it should not work.
    The invoices got paid with payment order but when I should download the file in Environment > Payment medium > DME Administration I got the following error message:
    "No data records found for these selection criteria
    Message no. FZ208
    Diagnosis
    No data could be accessed for this selection.
    Possible causes are:
    No data exists for the activated selection.
    You have no authorization to display or edit data from this selection.
    Procedure
    First check whether your selection criteria are correct.  You may need to expand the criteria to include a larger search area to check whether data exists in the system.
    Make sure you have the proper authorizations for displaying and editing data.  Read the Release note for DME management for further information on the authorization objects.
    Proceed"
    I have tried with different variants but that doesn´t matter. When I look at the payment run log I can see following:
    "Additional parameter specifications 1400 SAPO02 are missing
    Message no. FR193
    Diagnosis
    Entry 1400 $V2& is missing from the additional company code parameter table.
    System Response
    Processing was terminated.
    Procedure
    Maintain the entry according to the instructions in the program documentation."
    I suppose that´s why I can´t get a file. Do any one of you know why I can´t get the file created. Please help.
    Best regards Lisa

    Hi Lisa,
    I have a similar problem with program RFFONO_T and Telepay format for a Norwegian customer. Payment medium is not created. In the payment run log is the following message: "Additional parameter specifications XXXX SAPO02 are missing
    Message no. FR193.Entry XXXX $V2& is missing from the additional company code parameter table."
    According the program documentation for RFFONO_T, a company number (11 digits) has to be maintained under company code global data, additional details. The legal org.number with 9 digits is already entered but I do not understand where to enter a 11 digits company number? A user number (10 digits) is also entered in trans OB94  but the problem remains.
    Did you find a solution to your problem?
    Regards,
    Agneta

  • "No records found" in many pages after CVS synchronization

    Hi...
    We have a very servere problem with UIX pages after synchronizing changes using CVS. We work in a 7 persons team anda every night we perform a synchronization in order to begin the day allways with the same project.
    Unfurtunately we have found that many UIX pages made by our team mates can only be displayed correctly in the PC where that page was created. Eventhoug we all have the same files. We found that the person who created the pages can see them without a problem, but everyone else only see a "No records found" message in the page (this is when there are uix "read only tables" in the page).
    We have all the entity objects in a package named "entity" and the view objects in one named "vo". So the xml file that rules thes objects are called "entity.xml" and "vo.xml". We all have exactly the same files (including the application module java and xml files) after the synchronization, and also know that in order to the app works fine we all have to add all "UIModel" configuration files in the ViewController project.
    We also have tried using exactly the same ViewController.jpr and Model.jpr files that exist in the machine where it all works fine and the results are the same (the "no records found message" inside the tables).
    Is there any known reason for this behaivor???
    Are there other important files that we are missing in order to synchronize correctly???
    I hope somebody can help us...
    Thanks in advance...

    Hi ,
    Did you check-in and import into development and consolidation tabs?.If you already import ,they should appear.Did you define below standard scs as dependencies to SC in the created track?
    APJTECHS - 7.00 SP18
    SAPBUILDT - 7.00 SP18
    SAPJEE - 7.00 SP18
    BIUDI - 7.00 SP18
    BIMMR - 7.00 SP18
    SAPEU - 7.00 SP18
    SAP CAF - 7.00 SP18
    CAFKM/CAFMP - 7.00 SP18
    Regards,
    Koti Reddy

  • No Matching Records found G/L Accounts

    Hi All,
    I am adding a new Sales Order.Convert the sales order to Invoice.When I try to add the INVOICE document,i get an error message saying "No Matching Records found G/L Accounts (OACT).
    In The sale Order I have selected Item A in line one with price 8000$ and again Item A in line two with Price 25000$ the SO Document is added. when I Convert the SO to INVOICE the Above error appears.
    But when i Change the Line item two Price to 22999.99$ the Invoice is Posted but the error appears when i change the line item two price to 23000$ and above.
    My configurations are as below,
    SAP 2005A Patch 14
    G/L Accounts are set up by Item Group.
    I have also linked all the accounts to the respective Item Group and also in G/L Account determination including Rounding account.
    PLS HELP.....
    Regards
    AKS

    hi,
    Problem might be with Decimal places of quantities,prices / amount in Display tab of general settings,
    Simulate changes in test/demo database before correcting decimal place,
    Correct it according to ur requirement,ask other users to log out when u are doing it.
    Hope problem will be solved.
    also check this link
    https://websmp201.sap-ag.de/~sapidb/011000358700000894762007E/FIN_CW39_ErrorGLAccMissing.pdf
    Edited by: Jeyakanthan A on May 18, 2009 4:59 PM

  • No marching record found "GL account '

    Dear All,
    when i am doing AP invoice copy from GRPO then add the AP invoice error is showing no matching record found "GL ACCOUNT".
    Item is manged by item group evn i check the item group accounting and selection of GL account on ap invoice document.
    even then it is showing the error and not able to add AP document.
    Regard,
    Divya

    Hi Divya,
    If you display the G/L Account with Form Settings, is the field empty or not? I would usually restore a backup of the DB as a test DB and fill all the fields in the G/L Account Determination with dummy g/l accounts that does noet make sense (by doing this it is easier to find out which field in the Account Determination causes the error). I would use clearly identifiable accounts in all the EMPTY fields, to try to determine which one causes the problem.
    Try posting the document and go to the Journal to see to which account did it post to. By comparing the account posting in the Journal with the Account Determination, you would be able to see which account it was.
    Hope it helps.
    Carin

  • When saving a record it is displaying 2 records saved

    Hi
    When saving a record in a form it is displaying 2 records saved.
    On further analysis I found that "when new record instance" trigger is doing some validations and forcing form to think that there is a record updated though it is not so.
    what code can i add at the "when new record instance" trigger to prevent that.
    Thanks in advance.

    If you know that your when-new-record-instance is definitely NOT updating the record, you can amend it so that the last thing it does is use SET_RECORD_PROPERTY to set the record status back to QUERY.
    See SET_RECORD_PROPERTY in the Form Builder Help for details.

  • Intellisync error "Duplicate records found"

    I am trying to sync my BB 8300 with Outlook 2007.  I am using Blackberry Desk Manager 4.2.2.14.
    I was able to sync before but now it get this error "Duplicate records found in the device" and it won't sync.
    Any ideas to fix this problem?
    I tried to un-install and re-install DM.
    I also tried to delete Intellisync folder
    Thanks! 

    JJKD wrote:
    I am trying to sync my BB 8300 with Outlook 2007.  I am using Blackberry Desk Manager 4.2.2.14.
    I was able to sync before but now it get this error "Duplicate records found in the device" and it won't sync.
    Any ideas to fix this problem?
    I tried to un-install and re-install DM.
    I also tried to delete Intellisync folder
    Thanks! 
    Hi JJKD;
    What is your email application?
    Backup your device.
    Review the BB KB Here...
    There are a couple of approaches to this. If your not needing to complete a two way sync, you can clear the calendar on the BB Handheld by going to BACKUP / ADVANCED and clearing the calendar on right side of the Advanced GUI. Then just try a regular sync.
    This can also work by clearing
    If you do need to complete a two way sync you can BACKUP the device and clear the Calendar (edit), then RESTORE just the the calendar in BACKUP / ADVANCED by menu'ing the backup you created and complete a restore of the calendar. By backing up and then clearing and then restoring, this will clear any issues with the calendar DB and reindex the data. Then try a regular sync and see if the symptom is taken care of.
    Good luck and let us know how your doing...
    Message Edited by hmeister on 10-10-2008 09:48 PM
    +++++++++++++++++++++++++++++++++++++++++++++++++
    If successful in helping you, please give me kudos in my post.
    Please mark the post that solved it for you!
    Thank you!
    Best Regards
    hmeister

  • No Matching records found

    Hi All
    When a user trying to select or choose little yellow arrow of the document to approve in the message/alert window why the system displays "No Matching records found "(WDD1) (ODBC-2028)"
    Other Info SAP B1 2007B Patch level 14.  All the approval templates are in active and Data ownership authorisations are enabled
    thanks
    SV Reddy

    Hi SV Reddy,
    SAP Note Number: 1128378 and 1261872 might a good reference to narrow down this problem.
    Thanks,
    Gordon

  • No matching records found ' cheque for payment '(OCHO) (ODBC -2028).

    Hi All,
    Check number confirmation window does not automatically appear.
    I make all setting with SAP Note 1059752- cheque for payment skipping confirmation screen.
    I get the error message ' No matching records found ' cheque for payment '  (OCHO) (ODBC -2028).
    Can anyone guide  me to resolve this issue.
    Regards
    Vinod G

    Hi Manish,
    Yes, I am able to open the check for payment window manually and in the option credited GL Account , i found account is listed.
    And also i done all setting in house bank setup as per SAP note 1059752.
    Banking -
    > check number confirmation
    check number confirmation - Selection criteria  -
    > Window open
    After data is put and enter
    Error message is display "No matching records found 'Cheques for payment' (OCHO) (ODBC -2028) [ Message 131-183 ] ..
    Till not resolve .
    Regards
    Vinod G

Maybe you are looking for

  • Preview dynamic media files in Adobe Bridge

    This question was posted in response to the following article: http://help.adobe.com/en_US/creativesuite/cs/using/WSA7EB9381-408B-446f-A9F9-030235F3E7B7a .html

  • Can't Accept Acrobat XI EULA

    I've upgraded to Acrobat XI Pro via Creative cloud. Whenever I lauch the application I am presented with a blank license agreement screen and a non-functional accept button. I can only use the application for a few seconds before this happens on my O

  • JTextArea: Not thread safe

    I am working on a lobby system with a chat are using Networking, and recently I noticed that occasionally my JTextArea does not append the data I give it, even if I have a System.out.println() directly before which shows me what it is being passed, a

  • How can I get Adobe Flash Player to update

    When Updating Flash Player, I get a blue bar "initializing", but nothing happens. The "run / save selection" bar appears for an instant but immediately disappears. There is no downloaded install file in my "Downloads" folder. I have run the uninstall

  • We are interested to know how/where to check query runtimes for any Query in SAP BW?

    We are interested to know how/where to check query runtimes for any Query in SAP BW? Is there any table or program to get the query run time details per query for a particular day.