CVS download result : no data found

Hi Experts,
could you help me to solve this problem? When I use the download link of a report the cvs contains only the "no data found" text.
Please write me a detaild solution to this problem.
Thanks!
Atesy

Hi!
Application Express 3.1.2.00.02
NLS_RDBMS_VERSION 11.1.0.6.0
I use two items. One multiselect list and text field.
I have an On Load page process:
DECLARE
l_vc_arr2 APEX_APPLICATION_GLOBAL.VC_ARR2;
BEGIN
if :P2_KERES IS NULL THEN :P2_KERES:='%'; end if;
l_vc_arr2 := APEX_UTIL.STRING_TO_TABLE(nvl(:P2_COLUMNS,'nev:beosztas:email:tel:modositotta:kat:ceg:cim'));
apex_collection.create_or_truncate_collection( p_collection_name => 'MULTISELECTCOL');
FOR i IN 1..l_vc_arr2.count LOOP
apex_collection.add_member(
p_collection_name => 'MULTISELECTCOL',
p_c001 => l_vc_arr2(i));
END LOOP;
END;
and my select:
select
a.ID,
a.NEV,
a.BEOSZTAS,
a.E_MAIL,
a.MOBIL_TEL,
b.CEG_nev,
a.MEGJEGYZES,
a.MODOSITOTTA,
a.MOD_DATUM ,
c.iranyitoszam||', '||c.varos||' '||c.utca "Cím",
from table_1 a, table_2 b, table_3 c
where
a.ceg=b.ceg_id
and c.id=b.ceg_id
and
('nev' IN (SELECT multiselectid FROM arena_multiselect_view) and UPPER(a.nev) like UPPER('%'||:P2_KERES||'%') ) or
('beosztas' IN (SELECT multiselectid FROM arena_multiselect_view) and UPPER(a.beosztas) like UPPER('%'||:P2_KERES||'%') ) or
('email' IN (SELECT multiselectid FROM arena_multiselect_view) and UPPER(a.e_mail) like UPPER('%'||:P2_KERES||'%') ) or
('tel' IN (SELECT multiselectid FROM arena_multiselect_view) and UPPER(a.mobil_tel) like UPPER('%'||:P2_KERES||'%') ) or
('ceg' IN (SELECT multiselectid FROM arena_multiselect_view) and UPPER(b.ceg_nev) like UPPER('%'||:P2_KERES||'%') ) or
('modositotta' IN (SELECT multiselectid FROM arena_multiselect_view) and UPPER(a.modositotta) like UPPER('%'||:P2_KERES||'%') ) or
('kat' IN (SELECT multiselectid FROM arena_multiselect_view) and UPPER(b.kat) like UPPER('%'||:P2_KERES||'%') ) or
('cim' IN (SELECT multiselectid FROM arena_multiselect_view) and UPPER(c.iranyitoszam||', '||c.varos||' '||c.utca) like UPPER('%'||:P2_KERES||'%') )
And I'd like to download the result of this select into csv.
Atesy

Similar Messages

  • Pick Slip report gives 'No Data Found' output

    Hi All,
    Problem Statement:
    Iam unable to generate Pick release report, the shipping
    lines status is "ready to release" and we have a available quantity for the shipment.
    Step1 : Create a Order.
    Step2 : Save and Book the Order.
    Step3 : Pick Release the Order.
    Step4 : Go To " View My Requests".
    Step5 : Select the Request Id " Pick Slip Report "
    Step6 : Click on Output.
    Result " No Data Found.
    Thanks in Advance
    SYR

    Hi SYR,
    Pick Slip report gives you out put as NO DATA FOUND, is basically, bcos there has not been any picking of the item, reason may be,
    1. Qty avaialble wont be reservable and transactable
    Check in Inventory> On handqty > click availibility tab
    And see whether the item is available to transact & reserve.
    If you have enought qty thn you shld be able to pick release tht item.
    2. Check which sub inventory are you using while pick release, is it the same as where the item is kept.
    Try this out.
    This may help.
    Thanks
    Manoj

  • Creating a service program in inventory results in 'no data found error'

    Hi,
    i tried creating a service program as was given in the sep 2001 issue of the crm newsletter. While saving the item it results in the following error:
    FRM-40735 ON-INSERT trigger raised unhandled exception ORA-01653
    ORA-01403 No data Found
    What could be the possible cause for the occurrence of this error?
    Thanks & Regards,
    Nithya

    You're doing a lot of unnecessary conversion of dates into character strings and back into dates again.
    Keep it simple and just use dates as-is:
    SQL> select * from T_REC_PER;
                     VAL START_PERIOD         END_PERIOD
                       5 15-OCT-2008 00:00:00 30-OCT-2008 00:00:00
                       6 31-OCT-2008 00:00:00 06-NOV-2008 00:00:00
                       8 07-NOV-2008 00:00:00 12-NOV-2008 00:00:00
    SQL> declare
      2     ls_per   date := to_date('17-OCT-2008','DD-MON-YYYY');
      3     ln_val   number;
      4  begin
      5     select t.val
      6     into   ln_val
      7     from   T_REC_PER t
      8     where  ls_per between t.start_period and t.end_period;
      9     dbms_output.put_line(ln_val);
    10  end;
    11  /
    5
    PL/SQL procedure successfully completed.
    SQL> declare
      2     ls_per   date := to_date('09-NOV-2008','DD-MON-YYYY');
      3     ln_val   number;
      4  begin
      5     select t.val
      6     into   ln_val
      7     from   T_REC_PER t
      8     where  ls_per between t.start_period and t.end_period;
      9     dbms_output.put_line(ln_val);
    10  end;
    11  /
    8
    PL/SQL procedure successfully completed.

  • Getting no data found error while CSV download

    Hi,
    I have a report generated from the PL/SQL returning the query and I enabled the CSV Download option. But, when I try downloading the report contents using CSV download option, the excel sheet contains message "no data found". I enabled sorting and sum on few columns. Is it anywhere related to CSV download? Any solution would be really helpful..
    Thanks,
    Prabhakar

    Thanks for the help!! yep, it is indeed the wrong session state value. In the report, I was modifying the value to display the report, hence when CSV download is given, it was taking wrong session state value. So, giving "no data found" error. Probably, this may help some people.
    Regards,
    Prabhakar

  • Sorting Interactive Report results in no data found message

    Hi,
    I've got an interactive report which returns results based on the :REQUEST bind variable - I've got a navigation list at the side where all the items link to the current page with different Request values. The IR works fine until I try to sort any of the columns by clicking the header and choosing ascending / descending, at which point it returns no data found.
    It starts working again if I change the last line to OR :REQUEST IS NOT NULL but this breaks the functionality of the report, I want to return only the selected statuses, or all if no request variable is present. I'm guessing that sorting sets :REQUEST to something temporarily and breaks it. My query is below, any ideas?
    SELECT   id,
             job_number,
             appt_start,
             domain,
             pwa,
             status,
             tstamp_created
      FROM   fail_jobs
      WHERE  (status = 'NEW' AND userid_created != 'SYSTEM' AND :REQUEST = 'ARD')
         OR  (status = 'ATR' AND :REQUEST = 'ATR')
         OR  (status IN ('ERR','REV') AND :REQUEST = 'REV')
         OR  (status = 'COM' AND :REQUEST = 'COM')
         OR  (status IN ('PCD','PCA') AND :REQUEST = 'PCD')
         OR  :REQUEST IS NULLThanks

    There are known issues with Interactive Reports referencing :REQUEST value, probably due to some inner logic that also handles it simultaneously - potentially causing malfunction or deadlocks.
    One workaround I've learned is to create a computation to assign :REQUEST to a temporary item (a PXX_REQUEST, for instance) and reference it in the query, instead of :REQUEST. This has worked fine for me in my experience.
    Let me know if that helps - pls sign the thread as 'Useful' or 'Correct' if so, hence more people can benefit.
    tks,
    Kleber

  • Process Flow Execution of Mapping results in ORA-01403: no data found

    Hi,
    When the Mapping is run standalone, it runs fine, but when run through a Process Flow, it generates ORA-01403 on a FILTER within the Mapping.
    What should be the debug steps. The RTE_ROWKEY is mentioned as 0 and does not help.
    OWB Version is 9.2.0.2.8
    - Jojo

    So, when I submit the form, the Apex error I see is:
    ORA-01403: no data found
    Error     Unable to process row of table fRQ (the debug is also posted in mail earlier)
    Thanks
    Edited by: skomar on Jan 29, 2011 5:39 PM

  • Apex_collection.update_member results in no data found found

    I'm trying to build a simple scheduling grid using a collection to show who is available on what day of the week. This is the table:
    CREATE TABLE WORK (
    USER_ID NUMBER(9) NOT NULL,
    MON VARCHAR2(1),
    TUE VARCHAR2(1),
    WED VARCHAR2(1),
    THU VARCHAR2(1),
    FRI VARCHAR2(1),
    CONSTRAINT WORK_FROM_HOME_PK PRIMARY KEY (USER_ID));
    My create collection script is:
    if apex_collection.collection_exists(p_collection_name=>'WFH') = TRUE then
    apex_collection.delete_collection(p_collection_name=>'WFH');
    end if;
    apex_collection.create_collection_from_query(
    p_collection_name=>'WFH',
    p_query=>'SELECT user_id,
    mon,
    tue,
    wed,
    thu,
    fri
    FROM work');
    As I try to sort this out, I have two reports on the page. One is for the schedule/collection processing, & the other simply shows the collection so I can verify changes:
    SELECT seq_id, c001 emp_id, c002 mon, c003 tue, c004 wed, c005 thu, c006 fri -- my working query
    FROM apex_collections
    WHERE collection_name = 'WFH'
    select * from apex_collections -- this shows the entire collection
    where collection_name = 'WFH'
    I have 2 buttons & processes to add new rows & undo changes, & a button for updates. (I'm not trying to update the underlying table yet, just update the collection.) The add & undo seem to work fine. When I try to update the collection, I get a "no data found" error. The update collection process is:
    BEGIN
    FOR i IN 1..apex_application.g_f01.count LOOP
    apex_collection.update_member(
    p_collection_name => 'WFH',
    p_seq => apex_application.g_f01(i),
    p_c001 => apex_application.g_f02(i),
    p_c002 => apex_application.g_f03(i),
    p_c003 => apex_application.g_f04(i),
    p_c004 => apex_application.g_f05(i),
    p_c005 => apex_application.g_f06(i),
    p_c006 => apex_application.g_f07(i));
    END LOOP;
    END;
    I suspect there is a problem with the way I'm trying to reference the sequence, but have yet to figure it out.
    Suggestions?

    As you can see below, the sequence & emp_id are not getting assigned the f01 or f02. That starts with the updatabl fileds on the report.
    <td class="t1Body" colspan="2"><div id="report_3645482605396131456_catch"><table cellpadding="0" border="0" cellspacing="0" summary="" id="report_R3645482605396131456"><tr><td></td></tr>
    <tr>
    <td><table cellpadding="0" border="0" cellspacing="0" summary="" class="t1standard">
    <tr ><th id="SEQ_ID" class="t1header">Seq Id</th><th id="EMP_ID" class="t1header">Emp Id</th><th id="MON" class="t1header">Mon</th><th id="TUE" class="t1header">Tue</th><th id="WED" class="t1header">Wed</th><th id="THU" class="t1header">Thu</th><th id="FRI" class="t1header">Fri</th></tr>
    <tr onmouseover="row_mouse_over3645482605396131456(this, 1)" onmouseout="row_mouse_out3645482605396131456(this, 1)">
    <td headers="SEQ_ID" class="t1data">1</td>
    <td headers="EMP_ID" class="t1data">157</td>
    <td headers="MON" class="t1data"><label for="f01_0001" class="hideMe508">MON</label><input type="text" name="f01" size="3" maxlength="2000" value="" id="f01_0001" /></td>
    <td headers="TUE" class="t1data"><label for="f02_0001" class="hideMe508">TUE</label><input type="text" name="f02" size="3" maxlength="2000" value="Y" id="f02_0001" /></td>
    <td headers="WED" class="t1data"><label for="f03_0001" class="hideMe508">WED</label><input type="text" name="f03" size="3" maxlength="2000" value="" id="f03_0001" /></td>
    <td headers="THU" class="t1data"><label for="f04_0001" class="hideMe508">THU</label><input type="text" name="f04" size="3" maxlength="2000" value="" id="f04_0001" /></td>
    <td headers="FRI" class="t1data"><label for="f05_0001" class="hideMe508">FRI</label><input type="text" name="f05" size="3" maxlength="2000" value="Y" id="f05_0001" /><input type="hidden" name="fcs" value="58AA1A6F02752BF76429EF06E2F1934D" /></td>
    </tr><tr onmouseover="row_mouse_over3645482605396131456(this, 2)" onmouseout="row_mouse_out3645482605396131456(this, 2)">
    <td headers="SEQ_ID" class="t1data">2</td>
    <td headers="EMP_ID" class="t1data">152</td>
    <td headers="MON" class="t1data"><label for="f01_0002" class="hideMe508">MON</label><input type="text" name="f01" size="3" maxlength="2000" value="Y" id="f01_0002" /></td>
    <td headers="TUE" class="t1data"><label for="f02_0002" class="hideMe508">TUE</label><input type="text" name="f02" size="3" maxlength="2000" value="" id="f02_0002" /></td>
    <td headers="WED" class="t1data"><label for="f03_0002" class="hideMe508">WED</label><input type="text" name="f03" size="3" maxlength="2000" value="" id="f03_0002" /></td>
    <td headers="THU" class="t1data"><label for="f04_0002" class="hideMe508">THU</label><input type="text" name="f04" size="3" maxlength="2000" value="Y" id="f04_0002" /></td>
    <td headers="FRI" class="t1data"><label for="f05_0002" class="hideMe508">FRI</label><input type="text" name="f05" size="3" maxlength="2000" value="" id="f05_0002" /><input type="hidden" name="fcs" value="E267918580DC33BACF54431F3E928ED6" /></td>
    </tr><tr onmouseover="row_mouse_over3645482605396131456(this, 3)" onmouseout="row_mouse_out3645482605396131456(this, 3)">
    <td headers="SEQ_ID" class="t1data">3</td>
    <td headers="EMP_ID" class="t1data">153</td>
    <td headers="MON" class="t1data"><label for="f01_0003" class="hideMe508">MON</label><input type="text" name="f01" size="3" maxlength="2000" value="" id="f01_0003" /></td>
    <td headers="TUE" class="t1data"><label for="f02_0003" class="hideMe508">TUE</label><input type="text" name="f02" size="3" maxlength="2000" value="" id="f02_0003" /></td>
    <td headers="WED" class="t1data"><label for="f03_0003" class="hideMe508">WED</label><input type="text" name="f03" size="3" maxlength="2000" value="Y" id="f03_0003" /></td>
    <td headers="THU" class="t1data"><label for="f04_0003" class="hideMe508">THU</label><input type="text" name="f04" size="3" maxlength="2000" value="" id="f04_0003" /></td>
    <td headers="FRI" class="t1data"><label for="f05_0003" class="hideMe508">FRI</label><input type="text" name="f05" size="3" maxlength="2000" value="" id="f05_0003" /><input type="hidden" name="fcs" value="F3012D3BBA78B492A5FC7D47D4D88395" /></td>
    </tr><tr onmouseover="row_mouse_over3645482605396131456(this, 4)" onmouseout="row_mouse_out3645482605396131456(this, 4)">
    <td headers="SEQ_ID" class="t1data">4</td>
    <td headers="EMP_ID" class="t1data"> - </td>
    <td headers="MON" class="t1data"><label for="f01_0004" class="hideMe508">MON</label><input type="text" name="f01" size="3" maxlength="2000" value="" id="f01_0004" /></td>
    <td headers="TUE" class="t1data"><label for="f02_0004" class="hideMe508">TUE</label><input type="text" name="f02" size="3" maxlength="2000" value="" id="f02_0004" /></td>
    <td headers="WED" class="t1data"><label for="f03_0004" class="hideMe508">WED</label><input type="text" name="f03" size="3" maxlength="2000" value="" id="f03_0004" /></td>
    <td headers="THU" class="t1data"><label for="f04_0004" class="hideMe508">THU</label><input type="text" name="f04" size="3" maxlength="2000" value="" id="f04_0004" /></td>
    <td headers="FRI" class="t1data"><label for="f05_0004" class="hideMe508">FRI</label><input type="text" name="f05" size="3" maxlength="2000" value="" id="f05_0004" /><input type="hidden" name="fcs" value="A884FA378C851786DDFE3A33709CB23C" /></td>
    </tr></table><div class="t1CVS"></div></td>
    </tr>

  • BEx Analyzer (SAP BW 3.x) - No Applicable Data Found

    Hi,
    currently, i now access my BI Server remotelly and my local pc is install with Netweaver 2007s, and i try to do a tutorial on SAP BW. like create infosource, infocube and etc but when i finish creating the infocube and try to make a new query on BEx Analyzer (SAP BW 3.x), and seem like it cannot display anything the errors is as follow "No Applicable Data Found" so now i suspect is either drivers problem or access right problem.. beside that i do make an Installation Check On BEx Analyzer  on Business Explorer after that i display this few red alerts.
    Filename                   Version on PC
    <b>BW Components</b>     
    sapbex.xla                     Not found
    sapbex0.xla     Not found
    sapbexc.xla     
    <b>OLE for OLAP</b>     
    mdrmdlg.dll     Not found
    mdrmsap.dll     Not found
    mdxpars.dll     Not found
    saprfc.ini                     Not found
    scerrlkp.dll                     Not found
    <b>SAP GUI core components</b>
    sapfctrl.dll                     Not found
    sapfcust.exe     Not found
    sapfdraw.dll     Not found
    sapfewrm.dll     Not found
    sapfhook.dll     Not found
    wonder could anyone advise me on will this few components result i unable to display the data? if really i need those component how could i download it or should i reinstall it...
    anyway for access right part, currently i not the super user account will it affect the query??

    Hi Ram,
    My dimension table i check already in the Data Warehousing WorkBench the data is sufficient.
    even i also check on My Fact table, it has also data loaded in.
    but then problem is i unable to display data out.
    as according to the book, i follow it should be display out the whole information.
    Regards
    Jia Jun

  • Error on WWI server EHS_GLM_GENSERV: Results file not found on production

    Hi Experts,
    I need some help/advice. We have issues with our new EH&S WWI server. 
    This new setup working OK with Dev and QA (the WWI and GLM part is just fine), We did try to link this server to production then it gives below error.
    Only difference between  existing WWI QA and production server is that
    Existing QA and development WWI server installed at location C:\Program Files (x86)\EHS\WWI 
    And Same path maintain on new server C:\Program Files (x86)\EHS\WWI  
    But existing production WWI server installation path  is  different C:\Program Files\EHS\WWI
    So is there any customizing changes required from SAP side to avoid this error on production
    Can you please advise on this.
    ================================================================================
    Error on WWI server EHS_GLM_GENSERV: Results file not found
    Message no. C$830
    Diagnosis
    The results file of the generation was not found on the WWI server EHS_GLM_GENSERV.
    System Response
    Generation was not carried out.
    Procedure
    Advise your system administrator to check the WWI installation on the WWI server EHS_GLM_GENSERV.
    Check the Windows event log on the WWI generation server. The event log may contain other error messages.
    SAP Note 1058521 provides possible solutions for this error.
    ==================================================================================
    Log shows
    ============================================================================================================================================
    E000 Error: OLE Exception (-2146823114) from Word8_OpenDoc (docs.Open) by Microsoft Word: This file could not be found. (C:\Windows\...\r00000000000001422051.rtf) (HRESULT Code:5174)
    E000 Error opening document (Word8_OpenDoc: Documents.Open failed)
    ================================================================================================================================================

    Hello Gajanan,
    the path of the temporay workfolder can be configured in the IMG. Often this path is setup as the WWI server installed location but it is just a temporay workfolder which must exist on the WWI server. The path can be configured under:
    For ECC 6.0 Ehp 0-2 and lower
    Environment, Health and Safety -> Basic Data and Tools -> Basic Settings -> Specify Environment Parameters
    For ECC 6.0 Ehp 3-6
    Environment, Health and Safety -> Product Safety -> Global Label Management -> Make Settings for Basic Data
    For ECC 6.0 Ehp 7
    Environment, Health and Safety -> Global Label Management -> Set Basic Data and Tools for Global Label Management -> Make Settings for Basic Data

  • No data Found when executing select within a function

    Hi
    I have a select statement based on the USER_ROLE_PRIVS view for a specific granted_role and user, If I execute the statement in SQL/Plus I obtain the required result, however if I put the same select in a function and excute the function signed on as the same user I get ora-00100 no data found. I have granted execute to public on the function. Is there a grant I have missed
    Any Help would be Great
    Tina

    1 CREATE OR REPLACE FUNCTION xyz
    2 Return number IS
      3  v_return number := 0;
      4  v_granted_role user_role_privs.granted_role%type;
      5  BEGIN
      6  Select granted_role
      7  into v_granted_role
      8  from USER_ROLE_PRIVS
      9  where Granted_Role = 'CONNECT'
    10  and username = user;
    11  v_return := 1;
    12  RETURN v_return;
    13  EXCEPTION
    14  when no_data_found then
    15  v_return := 0;
    16  RETURN v_return;
    17  when others then
    18  v_return:= 9;
    19  RETURN v_return;
    20* END;
    SQL> /
    Function created.
    SQL>  declare
      2   n number;
      3   begin
      4   n:=xyz;
      5   dbms_output.put_line('n'||n);
      6   end;
      7   /
    PL/SQL procedure successfully completed.
    SQL> set serveroutput on;
    SQL> /
    n1
    PL/SQL procedure successfully completed.Your supplied code works fine for me - Executing in owner schema. Then only authid current_user is missing in your code
    Edited by: Lokanath Giri on १९ अगस्त, २०१० ६:०२ अपराह्न

  • Download using open data set and close data set

    can any body please send some sample pgm using open data set and close data set .the data should get downloaded in application server
    very simple pgm needed

    Hi Arun,
    See the Sample code for BDC using OPEN DATASET.
    report ZSDBDCP_PRICING no standard page heading
    line-size 255.
    include zbdcrecx1.
    *--Internal Table To hold condition records data from flat file.
    Data: begin of it_pricing occurs 0,
    key(4),
    f1(4),
    f2(4),
    f3(2),
    f4(18),
    f5(16),
    end of it_pricing.
    *--Internal Table To hold condition records header .
    data : begin of it_header occurs 0,
    key(4),
    f1(4),
    f2(4),
    f3(2),
    end of it_header.
    *--Internal Table To hold condition records details .
    data : begin of it_details occurs 0,
    key(4),
    f4(18),
    f5(16),
    end of it_details.
    data : v_sno(2),
    v_rows type i,
    v_fname(40).
    start-of-selection.
    refresh : it_pricing,it_header,it_details.
    clear : it_pricing,it_header,it_details.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    FILENAME = 'C:\WINDOWS\Desktop\pricing.txt'
    FILETYPE = 'DAT'
    TABLES
    DATA_TAB = it_pricing
    EXCEPTIONS
    CONVERSION_ERROR = 1
    INVALID_TABLE_WIDTH = 2
    INVALID_TYPE = 3
    NO_BATCH = 4
    UNKNOWN_ERROR = 5
    GUI_REFUSE_FILETRANSFER = 6
    OTHERS = 7.
    WRITE : / 'Condition Records ', P_FNAME, ' on ', SY-DATUM.
    OPEN DATASET P_FNAME FOR INPUT IN TEXT MODE.
    if sy-subrc ne 0.
    write : / 'File could not be uploaded.. Check file name.'.
    stop.
    endif.
    CLEAR : it_pricing[], it_pricing.
    DO.
    READ DATASET P_FNAME INTO V_STR.
    IF SY-SUBRC NE 0.
    EXIT.
    ENDIF.
    write v_str.
    translate v_str using '#/'.
    SPLIT V_STR AT ',' INTO it_pricing-key
    it_pricing-F1 it_pricing-F2 it_pricing-F3
    it_pricing-F4 it_pricing-F5 .
    APPEND it_pricing.
    CLEAR it_pricing.
    ENDDO.
    IF it_pricing[] IS INITIAL.
    WRITE : / 'No data found to upload'.
    STOP.
    ENDIF.
    loop at it_pricing.
    At new key.
    read table it_pricing index sy-tabix.
    move-corresponding it_pricing to it_header.
    append it_header.
    clear it_header.
    endat.
    move-corresponding it_pricing to it_details.
    append it_details.
    clear it_details.
    endloop.
    perform open_group.
    v_rows = sy-srows - 8.
    loop at it_header.
    perform bdc_dynpro using 'SAPMV13A' '0100'.
    perform bdc_field using 'BDC_CURSOR'
    'RV13A-KSCHL'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'RV13A-KSCHL'
    it_header-f1.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_CURSOR'
    'KONP-KBETR(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KOMG-VKORG'
    it_header-f2.
    perform bdc_field using 'KOMG-VTWEG'
    it_header-f3.
    **Table Control
    v_sno = 0.
    loop at it_details where key eq it_header-key.
    v_sno = v_sno + 1.
    clear v_fname.
    CONCATENATE 'KOMG-MATNR(' V_SNO ')' INTO V_FNAME.
    perform bdc_field using v_fname
    it_details-f4.
    clear v_fname.
    CONCATENATE 'KONP-KBETR(' V_SNO ')' INTO V_FNAME.
    perform bdc_field using v_fname
    it_details-f5.
    if v_sno eq v_rows.
    v_sno = 0.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '=P+'.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    endif.
    endloop.
    *--Save
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '=SICH'.
    perform bdc_transaction using 'VK11'.
    endloop.
    perform close_group.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Csv no data found when using bind variables

    Hi,
    I have created a report, that uses 2 date variables to limit the query and rows display as they should. But clicking the csv link opens csv having one row stating 'No data found...'. If I set static values in place of variables, I get the right result. How could I use bind variables and get the right answer in csv (without coding my own function)?
    Kaja

    I am having the same problem.
    The export link opens a new session without submitting the current page. The page item values are therefor not saved to cache before the export is undertaken.
    Any report using page item bind variables in the where clause will not export correctly as the bind values are either null or those of the previous page submit.
    Any ideas on how to get round this??

  • "no data found" run-time error masking SQL/report mismatch

    Hi all,
    At last, figured out a vexing problem and wondering if anyone else either:
    a) has also hit the problem, and hopefully
    b) has figured out a clever way around it.
    Namely, in our AppEx apps, we rely on SQL query generation from PL/SQL packaged functions. This "best practice" promotes reuse, automated testing, etc. Great idea - works great.
    However, we've repeatedly come across a situation where we go to run a page with a report on it only to get a "report error: ORA-01403: no data found" message where the report should be. Not much to go on. After trial and error, it turns out that simply going to the Region Definition page (where the PL/SQL function call is defined) and clicking the "Apply Changes" button cleared the problem up.
    Mystifying because the actual SQL query generated by the PL/SQL is valid (we've got a nightly testing job that pulls the PL/SQL function calls out of the AppEx metadata tables, executes them to get back the SQL and then validates the SQL).
    Turns out this problem looks to be a result of columns changing in the actual SQL itself, and hence not matching up to the Region Attributes (column names, one assumes) that AppEx knows about. Simply clicking Apply Changes causes AppEx to validate the returned query and then it adjusts the column attributes (one assumes) so that things match up.
    So - the $64,000 question(s):
    1) Are there any cool AppEx APIs to be able to try and detect this situation? Given an app of middling complexity (50-100 pages, each with various queries/reports), this is not an attractive issue to deal with manually.
    2) Any cool AppEx APIs to fix, or auto-sync these situations? (Essentially programmatically calling the "Apply Changes" button if you will).
    At a minimum, it would be great if AppEx could be updated to put out some kind of more informative error message when this occurs - maybe something along the lines of "Region Attributes Do Not Match Data Returned from Query", or something like that at least.
    Thanks for any input/ideas,
    Jim C.

    Thanks to all for your prompt responses.
    Vikas actually did me the favor of pretty much clarifying my info for me (tks Vikas). Yes, to all the above. It's PL/SQL code generating a SQL query, so 1 is (a); we want to use query-specific columns so it is (2a). And yes, the whole problem is that the something does change to cause the SELECT statement column list to change...nature of the beast, so "don't do that" doesn't really help here.
    Scott - sorry, should have been more explicit. Basically, we have a PL/SQL function behind a report that returns a SQL statement for the report. If that PL/SQL code changes to add a new column to the report (without going to the corresponding Report Attributes page and clicking the "Apply Changes" button to get AppEx to revalidate the query), then you wind up with this "no data found" error msg, which doesn't exactly point you to the root of the problem.
    It seems as though the "parse at compile-time" is really what's going on here. There must be some kind of "run-time" check going on as well, that is resulting in the "no data found" message. Seems as though it ought to be fairly straightforward to add some kind of check at run-time to handle that exception a little cleaner. Is there an official process to register a "Request for Process Enhancement" for AppEx to do this?
    In the meantime, thank you Vikas for the pointer to the APEX_APPLICATION_PAGE_RPT_COLS view - that looks like it will do the trick nicely. Given that, we can now add logic to our nightly "app tester" job that can compare what columns AppEx expects to find in a given report (for a given page) with the actual SQL (coming back from the PL/SQL function call) to essentially "validate" the AppEx meta data and at least let us know when these things get out of sync.
    BTW - if anyone would be interested in the actual contents of that "app tester" logic, I'd be happy to post it (someplace...here? Studio site?). It's basically just a PL/SQL block of code that currently runs in cron that just validates any SQL embedded in our app. (I suppose it is a little "hard-coded" since it does use our naming conventions for packages/functions to parse the PL/SQL calls from the Meta Data but it might still serve as a usefull starting point...) Since our AppEx app(s) sit on top of a database schema that is in fairly constant flux, we need the ability to know when somebody has changed something in the schema that needs to be accounted for in AppEx. The job primarily just parses the AppEx meta data to find PL/SQL function calls that return SQL, executes that PL/SQL to get the generated SQL, then just validates that SQL and reports back any invalid SQL calls. Perhaps we're in some unusual development environment (15-20 people working on a database schema with 700-800 tables/views) but it seems as though it would be fairly easy, for anybody using PL/SQL to generate SQL (which is a GREAT and powerful thing, by the way - thanks to whoever thought that up in AppEx land) to run into this issue.
    Jim C.

  • Forms application returns "ORA-01403 no data found" exception on Windows 7

    Hi everyone,
    I am currently involved in an application compatibility project for an O/S migration from Windows XP to Windows 7.
    We have a legacy Oracle Dev6i P18 Forms application that has been working perfectly on Windows XP for the last decade or so. When we installed the same application on Windows 7, it returned a pop-up error message with the text: "ORA-01403 no data found" when performing a certain operation (clicking on a Submit button in a specific form). The same operation works successfully on Windows XP displaying the message "Submit has been successful".
    This error is well documented and the solution involves adding an exception handler to the faulting SQL statement(s) in order to handle the ORA-01403 exception. Unfortunately, the application is composed of compiled forms (.FMX) and we no longer have the source code so I can't implement this solution.
    I ran a file comparison utility (WinDiff from the Windows SDK) and confirmed that all the files in the application folder and the Oracle Dev6i P18 folder are identical on both the Windows XP and Windows 7 systems.
    I enabled tracing in SQLNet.ORA by configuring TRACE_LEVEL_CLIENT=SUPPORT (I know, too verbose) and other related settings on both systems and have uploaded the traces to my SkyDrive for public viewing:
    http://sdrv.ms/10BNYtI
    The traces show that the "ORA-01403" exception occurs many times on both Windows XP and Windows 7 systems as a result of various SQL statements being executed, for instance:
    SELECT TASK_ID,TASK_DETAIL_STATUS,ASSIGNED_DATE FROM TASK_DETAILS WHERE TASK_ID = :b1 AND TASK_DETAIL_STATUS = (SELECT ID FROM V_TASK_STATUS WHERE ABBREVIATION = 'PLANNED' ) FOR UPDATE OF TASK_DETAIL_STATUS,ASSIGNED_DATE
    UPDATE TASK_DETAILS SET ASSIGNED_DATE=NTMS_UTIL.GET_SERVER_DATE,TASK_DETAIL_STATUS=(SELECT ID FROM V_TASK_STATUS WHERE ABBREVIATION = 'ASSIGNED' ) WHERE ROWID = :b1
    ORA-01403: no data found.
    So the same error happens on both Windows XP and Windows 7.
    On Windows XP, the error is somehow handled, and does not cause the "Submit" operation to fail.
    On Windows 7, however, the error bubbles to the surface and is displayed to the user, thus halting the "Submit" operation.

    Thank you. I'm well aware that adding an exception handler is the classic solution to the ORA-01403 error. However, like I mentioned in my original post, I don't have the source code. All I have are the compiled .FMX forms so I can't implement such a solution:
    From my original post:
    This error is well documented and the solution involves adding an exception handler to the faulting SQL statement(s) in order to handle the ORA-01403 exception. Unfortunately, the application is composed of compiled forms (.FMX) and we no longer have the source code so I can't implement this solution.

  • IR report - No Data Found exception

    Hi,
    I have created one IR report in apex. I need to get the no data found exception on this report i.e. if user enters some search keywords and he is getting no data in that case want to store the searched keywords in the database for future reference that there is no data for such search criteria.
    Could anyone help me to catch the no data found exception and executing a pl-sql process for fetching the search criteria ?
    Thanks in advance!

    I have created an IR report based on collections. But still I am not able to understand where I can write a code for EXCEPTION NO_DATA_FOUND. The pl-sql code used to create a collection which we write in before header process and the actuall IR report which is build using SQL query on collection so where can I put the exception code?
    What I want is to catch no data found exception when user types something in IR report search bar and gets nothing as a search result. Can you please help me on this?
    Thanks,
    Punam

Maybe you are looking for