How to fetch NO DATA FOUND exception in Ref Cursor.
In my procedure ref cursor is out parameter with returns dataset. in my proceudre
its like...
OPEN pPymtCur FOR
select.....
when I call this procedure from report to get dataset it causes NO DATA FOUND exception.
How to fetch this exception in my oracle procedure so I can get some other data.
Any Idea to do this?
Edited by: Meghna on 17-Jun-2009 22:28
Mass25 wrote:
Correct me if I am wrong.
So if I do something as follows in my stored proc, I do not have to check for NO_DATA_FOUND?
OPEN my_CuRSR FOR
SELECT DISTINCT blah blah blahmy_cursr is what I am returning as OUT param in my SP.Correct. At the point you open the cursor, oracle has not attempted any 'fetch' against the data so it won't know if there is any data or no data. that only occurs when a fetch is attempted.
Take a read of this:
[PL/SQL 101 : Understanding Ref Cursors|http://forums.oracle.com/forums/thread.jspa?threadID=886365&tstart=0]
Similar Messages
-
No Data Found Exception in bulk updates
I am trying to catch no data found exception in bulk updates when it does not find a record to update in the forall loop.
OPEN casualty;
LOOP
FETCH casulaty
BULK COLLECT INTO v_cas,v_adj,v_nbr
LIMIT 10000;
FORALL i IN 1..v_cas.count
UPDATE tpl_casualty
set casualty_amt = (select amt from tpl_adjustment where cas_adj = v_adj(i))
where cas_nbr = v_nbr(i);
EXCEPTION WHEN NO_DATA_FOUND THEN dbms_output.put_line('exception')
I get this error at the line where i have exception:
PLS-00103: Encountered the symbol "EXCEPTION" when expecting one of the following:
begin case declare end exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe
Can someone pls direct me on how to get around this?
If I do not handle this exception, the script fails when it attempts to update a record that does not exist and the error says : no data found exception.
Thanks for your help.
Edited by: user8848256 on Nov 13, 2009 6:15 PMNo Data Found isn't an exception raised when an UPDATE cannot find any records to process.
SQL%ROWCOUNT can be used to determine the number of rows affected by an update statement, but if 0 rows are updated then no exception will be raised (it's just not how things work).
If you post your actual CURSOR (casualty) declaration, it's quite possible we can help you create a single SQL statement to meet your requirement (a single SQL will be faster than your current implementation).
Have you looked in to using the MERGE command? -
I'm getting No Data found exception while selecting a query.
I'm trying to insert into a table by selecting records from a table.
I'm doing this inside a loop. So I need to continue with insertion even though i get this error( NO DATA FOUND). How can this be done?
Any help?
Eg.
FOR id IN (select Emp_ID from Table A)
Begin
LOOP
BEGIN
Select COL_B INTO Var_X from Table B where COL_C = id.EMPID;
EXCEPTION
NO DATA FOUND ---- I need to go for insertion even though i get this error
END
---- Insertion Goes here to TABLE_C
----- Inserting VAR_X into the TABLE_C along with other Columns
END LOOP
END
Thanks
HarshiniWhat you have should work. Are you saying thet the exception handler doesn't catch the exception? If that is the case then it must be another exception. You could change the exceptiuon handler to be a when others (which will catch everything) or you could just decalre a cursor which you open, fetch from, and then close. If no data is found you won't get an exception, but your variables won't be null unless you reset them every time you go round the loop.
Obviously the no data found exception is actually no_data_found (i.e. with underscores) but your code wouldn't compile if you missed out the underscores so you must have that right. -
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 -
No Data Found: Exception in SQL inside PL/SQL block
Hi Friends
I am trying to execute an SQL SELECT stmt inside a PL/SQL block. But when i execute the procedure, it gives me No Data Found Exception.
I know it is because no row is fetched in the query, but the condition of the SELECT query i have specified is being satisfied, i have checked it by running it on the SQL prompt.
But somehow, it is not running from inside the PL/SQL procedure.Can anybody help me out on this as to why is this happening?? I am giving my code for reference and have Highlighted the Query inside it:
CREATE OR REPLACE procedure insert_sfdc_account
as
--DECLARE
CURSOR C1 IS
SELECT customer_code, name1, name2, name3, name4, phone_number, fax, web_address, industry_sector, customer_profile, customer_type,
address, city, postal_code, country_key, zzcust_type, vat_code
FROM load_cust_general
WHERE account_group = 'ZSIT';
v_cust_cur c1%ROWTYPE;
-- type sales_tab is table of load_cust_sales_area%rowtype;
v_sales_area load_cust_sales_area%ROWTYPE;
-- v_sales_area sales_tab;
v_salesorg varchar2(10);
v_sales_district varchar2(10);
v_salesoff varchar2(10);
v_custgrp varchar2(10);
v_salesgrp varchar2(10);
v_type varchar2(20);
v_nature varchar2(10);
v_partner_code varchar2(10);
v_parent_cust varchar2(20);
v_credit_blk varchar2(20);
BEGIN
open c1;
loop
fetch c1 into v_cust_cur;
exit when c1%NOTFOUND;
for i in (SELECT customer_code, salesorg from load_cust_partner
where customer_code = v_cust_cur.customer_code ) LOOP
dbms_output.put_line(v_cust_cur.customer_code );
SELECT partner_code into v_partner_code from load_cust_partner
where customer_code = i.customer_code and salesorg = i.salesorg and partner_function = 'Z1';
dbms_output.put_line(v_partner_code||i.customer_code);
SELECT salesorg, sales_district, salesoff, salesgrp, custgrp INTO v_salesorg, v_sales_district, v_salesoff, v_salesgrp, v_custgrp FROM load_cust_sales_area
WHERE customer_code = i.customer_code and salesorg = i.salesorg;
dbms_output.put_line(v_salesorg||i.salesorg);
SELECT parent_customer INTO v_parent_cust from load_cust_hierarchy
WHERE customer_code = i.customer_code and salesorg = i.salesorg and hierarchy_type = 'G'; dbms_output.put_line(v_parent_cust);
SELECT credit_block INTO v_credit_blk from load_cust_company_cod
WHERE customer_code = i.customer_code;
dbms_output.put_line(v_credit_blk);
for j in (SELECT account_group, customer_type from load_cust_general
where customer_code IN (select customer_code from load_cust_partner
where partner_code = i.customer_code and salesorg = i.salesorg and partner_function = 'ZS'))
LOOP
-- exit when j%NOTFOUND;
dbms_output.put_line(j.account_group);
if (j.account_group = 'ZDIS') THEN
v_type := 'DISAC';
v_nature := '06';
-- EXIT ;
else
v_type := 'SPACC';
v_nature := '01';
END IF;
dbms_output.put_line(v_type||' '||v_nature);
END LOOP;
INSERT INTO sfdc_account
(SAP_ACCOUNT_ID__C, NAME, TYPE, RECORDTYPEID, PARENTID, PHONE, FAX, WEBSITE, OWNERID, MARKETING_DOMAIN__C,
INDUSTRIAL_SECTOR__C, ABC_CLASSIFICATION__C, NAME_1__C, NAME_2__C, NAME_3__C, NAME_4__C, PAYMENT_STATUS__C,
CUSTOMER_GROUP__C, ADDRESS_STREET__C, CITY__C, POSTAL_CODE__C, COUNTRY__C, SALES_OFFICE__C, SALESORG__C,
SALESDISTRICT__C, SALESGROUP__C, NATURE__C, VATCODE__C)
VALUES((i.customer_code||i.salesorg), (v_cust_cur.Name1||' '||v_cust_cur.name2), ' ', v_type, v_parent_cust,
v_cust_cur.phone_number, v_cust_cur.fax, v_cust_cur.web_address, v_partner_code, SUBSTR(v_cust_cur.industry_sector,1,2),
v_cust_cur.industry_sector, v_cust_cur.customer_profile, v_cust_cur.name1, v_cust_cur.name2, v_cust_cur.name3,
v_cust_cur.name4, v_credit_blk, v_custgrp, v_cust_cur.address, v_cust_cur.city, v_cust_cur.postal_code,
v_cust_cur.country_key, v_salesoff, v_salesorg, v_sales_district,
v_salesgrp, v_nature, v_cust_cur.vat_code);
end loop;
end loop;
CLOSE c1;
-- Delete data from Load Table
-- EXECUTE IMMEDIATE 'TRUNCATE TABLE load_cust_general';
/* truncate table load_cust_partner;
truncate table load_cust_hierarhy;
truncate table load_cust_sales_area;
truncate table load_cust_company_cod;
commit;
exception
when others then
raise_application_error( -20001, substr( sqlerrm, 1, 150 ) );
END;
Kindly Help.....
Thanks and RegardsCreate the procedure again and execute it in SQL*Plus environment and paste the output:
CREATE OR REPLACE procedure insert_sfdc_account
as
--DECLARE
CURSOR C1 IS
SELECT customer_code, name1, name2, name3, name4, phone_number, fax, web_address, industry_sector, customer_profile, customer_type,
address, city, postal_code, country_key, zzcust_type, vat_code
FROM load_cust_general
WHERE account_group = 'ZSIT';
v_cust_cur c1%ROWTYPE;
-- type sales_tab is table of load_cust_sales_area%rowtype;
v_sales_area load_cust_sales_area%ROWTYPE;
-- v_sales_area sales_tab;
v_salesorg varchar2(10);
v_sales_district varchar2(10);
v_salesoff varchar2(10);
v_custgrp varchar2(10);
v_salesgrp varchar2(10);
v_type varchar2(20);
v_nature varchar2(10);
v_partner_code varchar2(10);
v_parent_cust varchar2(20);
v_credit_blk varchar2(20);
BEGIN
open c1;
loop
fetch c1 into v_cust_cur;
exit when c1%NOTFOUND;
for i in (SELECT customer_code, salesorg from load_cust_partner
where customer_code = v_cust_cur.customer_code ) LOOP
SELECT partner_code into v_partner_code from load_cust_partner
where customer_code = i.customer_code and salesorg = i.salesorg and partner_function = 'Z1';
SELECT salesorg, sales_district, salesoff, salesgrp, custgrp INTO v_salesorg, v_sales_district, v_salesoff, v_salesgrp, v_custgrp FROM load_cust_sales_area
WHERE customer_code = i.customer_code and salesorg = i.salesorg;
dbms_output.put_line('Customer_Code : '|| i.customer_code);
dbms_output.put_line('SalesOrg : '|| i.salesorg);
SELECT parent_customer INTO v_parent_cust from load_cust_hierarchy
WHERE customer_code = i.customer_code and salesorg = i.salesorg and hierarchy_type = 'G';
dbms_output.put_line('Successfully Executed SQL st. Error is somewhere else');
SELECT credit_block INTO v_credit_blk from load_cust_company_cod
WHERE customer_code = i.customer_code;
for j in (SELECT account_group, customer_type from load_cust_general
where customer_code IN (select customer_code from load_cust_partner
where partner_code = i.customer_code and salesorg = i.salesorg and partner_function = 'ZS'))
LOOP
-- exit when j%NOTFOUND;
if (j.account_group = 'ZDIS') THEN
v_type := 'DISAC';
v_nature := '06';
-- EXIT ;
else
v_type := 'SPACC';
v_nature := '01';
END IF;
END LOOP;
INSERT INTO sfdc_account
(SAP_ACCOUNT_ID__C, NAME, TYPE, RECORDTYPEID, PARENTID, PHONE, FAX, WEBSITE, OWNERID, MARKETING_DOMAIN__C,
INDUSTRIAL_SECTOR__C, ABC_CLASSIFICATION__C, NAME_1__C, NAME_2__C, NAME_3__C, NAME_4__C, PAYMENT_STATUS__C,
CUSTOMER_GROUP__C, ADDRESS_STREET__C, CITY__C, POSTAL_CODE__C, COUNTRY__C, SALES_OFFICE__C, SALESORG__C,
SALESDISTRICT__C, SALESGROUP__C, NATURE__C, VATCODE__C)
VALUES((i.customer_code||i.salesorg), (v_cust_cur.Name1||' '||v_cust_cur.name2), ' ', v_type, v_parent_cust,
v_cust_cur.phone_number, v_cust_cur.fax, v_cust_cur.web_address, v_partner_code, SUBSTR(v_cust_cur.industry_sector,1,2),
v_cust_cur.industry_sector, v_cust_cur.customer_profile, v_cust_cur.name1, v_cust_cur.name2, v_cust_cur.name3,
v_cust_cur.name4, v_credit_blk, v_custgrp, v_cust_cur.address, v_cust_cur.city, v_cust_cur.postal_code,
v_cust_cur.country_key, v_salesoff, v_salesorg, v_sales_district,
v_salesgrp, v_nature, v_cust_cur.vat_code);
end loop;
end loop;
CLOSE c1;
-- Delete data from Load Table
-- EXECUTE IMMEDIATE 'TRUNCATE TABLE load_cust_general';
/* truncate table load_cust_partner;
truncate table load_cust_hierarhy;
truncate table load_cust_sales_area;
truncate table load_cust_company_cod;
commit;
exception
when others then
raise_application_error( -20001, substr( sqlerrm, 1, 150 ) );
END;
SQL> set serveroutput on
SQL> exec insert_sfdc_account; -
How to display no data found in RTF template ? XML Publisher
Hi
I have xml file, how to display no data found in RTF template ? XML Publisher ?
This is the XML File
<?xml version="1.0" encoding="UTF-8"?>
<INVALIDSERIALPRODUCT>
<P_ORG_CODE></P_ORG_CODE><P_DATE_RANGE_FROM></P_DATE_RANGE_FROM><P_DATE_RANGE_TO></P_DATE_RANGE_TO><P_ITEM_NUMBER>VIR</P_ITEM_NUMBER><P_LOT_NUMBER></P_LOT_NUMBER><P_RMA_NUMBER_FROM></P_RMA_NUMBER_FROM><P_RMA_NUMBER_TO></P_RMA_NUMBER_TO><P_CUSTOMER_NAME></P_CUSTOMER_NAME><P_EMAIL></P_EMAIL>
<G_SNQ>
<USER_NAME>NSAWHNEY</USER_NAME>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T05:13:05.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T05:52:23.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000016</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T05:53:06.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>011000000011</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T06:09:16.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number does not exist in Axway Track-n-Trace</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000021</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T06:11:09.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000001</SERIAL_NUMBER>
<RMA_NUMBER>8200000066</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T06:46:04.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000001</SERIAL_NUMBER>
<RMA_NUMBER>8200000066</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T07:08:21.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>00000000004 </SERIAL_NUMBER>
<RMA_NUMBER>8200000066</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T07:13:05.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Unknow Error </REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000011</SERIAL_NUMBER>
<RMA_NUMBER>8200000101</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T19:32:00.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
<RMA_NUMBER>8200000107</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-14T02:49:40.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000092</SERIAL_NUMBER>
<RMA_NUMBER>8200000109</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-14T07:52:22.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000031</SERIAL_NUMBER>
<RMA_NUMBER>8200000109</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T02:24:27.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000034</SERIAL_NUMBER>
<RMA_NUMBER>8200000109</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T02:30:28.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Catchall fault scope has been executed</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000010</SERIAL_NUMBER>
<RMA_NUMBER>8200000114</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T03:36:18.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000158</SERIAL_NUMBER>
<RMA_NUMBER>8200000114</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T04:19:48.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
</G_SNQ>
</INVALIDSERIALPRODUCT>
thanks
nksThis is the General XML forum.
The homepage description says :
Discussion of the general XML language, standards (XSLT, XQuery, XMLSchema, etc.) and application management issues, suggestions and tips.
The BI Publisher forum is here :BI Publisher
So please mark this post as answered and ask again over there. -
How to fetch the data & display the data if fields got the same name in alv
hi frnds, i need ur help.
how to fetch the data & display the data if fields got the same name in alv grid format.
thanks in advance,
Regards,
mahesh
9321043028Refer the url :
http://abapexpert.blogspot.com/2007/07/sap-list-viewer-alv.html
Go thru the guide for OOPs based ALV.
Use SET_TABLE_FOR_FIRST_DISPLAY to display the table:
CALL METHOD grid->set_table_for_first_display
EXPORTING
I_STRUCTURE_NAME = 'SFLIGHT' Structure data
CHANGING
IT_OUTTAB = gt_sflight. Output table
You can also implement
Full Screen ALV, its quite easy. Just pass the output table to FM REUSE_ALV_GRID_DISPLAY.
For controlling and implementing the FS-ALV we have to concentrate on few of the components as follows :
1. Selection of data.
2. Prepare Layout of display list.
3. Event handling.
4. Export all the prepared data to REUSE_ALV_GRID_DISPLAY.
Regd,
Vishal -
SVG Pie chart : how to display no dat found message
Hello,
I have a SVG pie chart and written a message 'no data found' under charts attributes.
If there is no data for the chart,
In IE :the chart region will be blank . chart heading will be displayed and . no 'no data found ' message is displayed.
In mozilla : in the chart region, i can see ,the part of whole page where i display the chart ,is filled . Chart region heading is also displayed.
Could you please reply , how to display 'no data found ' in svg pie chart?
Thanks in advance.
Regards,
ArchanaHello,
I have a SVG pie chart and written a message 'no data found' under charts attributes.
If there is no data for the chart,
In IE :the chart region will be blank . chart heading will be displayed and . no 'no data found ' message is displayed.
In mozilla : in the chart region, i can see ,the part of whole page where i display the chart ,is filled . Chart region heading is also displayed.
Could you please reply , how to display 'no data found ' in svg pie chart?
Thanks in advance.
Regards,
Archana -
How does Fetch Rx Data works?
Dear Sir or Madam,
I have a problem when I am implementing MAC protocols by using LabVIEW and USRP2. Actually there are two problem, I will show them in a simple CSMA protocol.
The first design is that in CSMA protocol, node 1 sent a data packet to node 2, and node 2 received the packet, analyzed it, and sent back a corresponding ACK. The problem is, node 2 need to switch between receiving mode (to receive the packet) and transmitting mode (to sent ACK back), and the switching time is non-neglectable (around 7 to 10 ms). That delay significantly decreases system performance. Is that any way to reduce the switching time?
The second problem is rising after the first one. To overcome the time delay, I use two antennas in the system, therefore one can always work in Tx mode and another in Rx mode therefore no switching is needed. The block diagram is simplified as figure (if transmitter mode is set to false, then the receiving VI works by using another antenna).
The problem is, since we are using if structure, there is noway that transmitting and receiving can work concurrently. However, nodes always receive the signal it sent in the last while loop round. For example, after receiving a DATA packet from another node, this node sends a ACK back, and then the transmitter mode are switching to false then I can receive next packet. However, after sending the ACK, and switching to reception mode, I can receive the ACK I sent myself! That is my question, how does fetch Rx Data VI works?
Thank you very much!Hi HustLiliAn,
Thank you very much for you quick reply. I have to say sorry that my code is only partially belonging to me so I cannot distribute all of them, beg your understanding
To overcome the delay, I open both Tx and Rx session at the beginning of the code so I don't need to initial and abort session before and after using respectively. It could save a lot of time (I measure the same delay as you shown). I read from WBX application notes (http://files.ettus.com/uhd_docs/manual/html/dboards.html) that if the system is working in the duplex mode, then antenna TX/RX is using for transmission and RX2 is using for reception. I simply tested it and it seems true.
Since two antennas are working concurrently, the receiving antenna (RX2) can receive packet even it is sent by TX/RX. My problem is, in software level I have used the if structure to make transmission and reception work successively, RX2 can still receive signal sent by TX/RX. That is the real problem. Probably we can write some compensation VI which we can remove it by using the transmitted signal, but I still want to know is there any official solution for it.
BTW, I use the modulation toolkit. Its demodulation VI is also quite slow.
Thank you for your reading. I am not a native English speaker, so if my post make you confuse, please let me know and I would like to elaborate it again. -
No data found exception: no data found: [1299] error in Procedure
Hi all,
I am getting "no data found exception: no data found: [1299] " in SAP HANA procedure, even if data for the corresponding plant and material is present in the respective tables.
Can any-one suggest why I am getting this and what would be the resolution of the same.
Regards
dhinesh.Hi Dhinesh,
Ok. It seems you have some condition in your SQL and it gets fail. It is best practice to capture SQL exception in all your store procedure to avoid such errors .
Either you can capture the exception and write in a table if your procedure runs in background or simply throw the SQL exception message from dummy table.
Check exceptional handling in SAP Documentation
Thanks
Siva -
How to fetch MIR4 data based on MB51 refrence number
hi Experts.
i want to fetch MIR4 data based on MB51 refrence number.
I want to fetch below fileds in MIR4 TCODE.
1. RBKP-BELNR (Invoice Document NUMBER)
2. DRSEG-MENGE ( quantity )
3. DRSEG-WRBTR ( Amount in document currency)
As mentioned above DRSEG is structure.
please help me how to fetch 3 data fileds based on my MB51 refrence.( mkpf-xblnr ).
In MIR4 , Number of External Delivery Note( DRSEG-XBLNR ) is same as my MB51 refrence ( mkpf-xblnr).
This is the only link avilable to fetch above 3 fields.
kindly give any suggestions .
thanks & regards,
hari priyaHi ,
can anybody give me suggestions .
What is the table name for fetching above 3 fileld data .
DRSEG is structure .
Thanks & regards,
Hari priya -
How To keep No Data Found In my logic.
Hi My RTF temple design is like below
for-each C Table Heading
column1| column 2| column3|
F a1 a2 a3 E
EC end-for-each
The above logic is for each g_2 , C-- it si a condttion to check if:<ind='1'>
print table heading and table ..
end if, end for each
how to keep no data found logic if i dont have anu data for the avove condtion.
Thanks in Advance
Have a Nice day.Then close the thread please
thanks
Jorge -
Regarding "select into" query and "no data found" exception
So i have included the following into my procedure:
select div_cd into c_div_cd
from division_tab d, emp_tab y
where d.div_name=y.div_text and y.emp_code=d.emp_code;
and also an exception
exception
when no data found
-- print something
The above select query results into "no data found" and the control passes directly to the exception and prints something.
How do I do the following?
select div_cd into c_div_cd
from division_tab d, emp_tab y
where d.div_name=y.div_text and y.emp_code=d.emp_code;
if c_div_cd is null then
--enter this employee into some other table without raising an exception
No need to write a code for an answer. Please just guide me with something I can incorporate or do.use explicit cursors
DECLARE
c_div_cd division_tab.div_cd%type;
cursor c_div is
select div_cd
from division_tab d, emp_tab y
where d.div_name=y.div_text and y.emp_code=d.emp_code;
BEGIN
open c_div;
fetch c_div into c_div_cd;
--You can either use c_div%NOTFOUND or c_div_cd is null in the below if condition to check the data
-- Note if your select query returns multiple records then you have to do mutiple fetches for getting all records, so in that case your FETCH
-- should be inside the LOOP statement
if c_div_cd is null then
--enter this employee into some other table without raising an exception
end if;
close c_div;
EXCEPTION
IF c_div%ISOPEN then
close c_div;
END IF;
END;
Regards
JJ -
How to Fetch a data from HR Master Tables?
HI,
For all employees who have Infotype 0194 records valid in the time period or payroll period selected who have the vendor selected on the selection screen, you have to read the payroll results and find the Garnishment document in the GRORD if it exists. If a time period is selected, you must search for all payroll results with a check date that falls in that time period. If a payroll period is selected, search for that particular payroll and any off-cycle payroll whose check date falls between the begin date and end date of that pay period.
Once you searched IT 0194 for Employees (EE) with the Garnishment Vendor selected and then found the payroll results to process, you must search through payroll internal GRDOC and find the same vendor. If the vendor is found, search the payroll Results Table (RT) for the V0 split which matches the GRDOC record. Then use this amount(s) for the Deduction Amount field.
I have to fetch the Deduction amount according to the given Scenario,and I have to create an Outbound Interface Program to which creates an TXt file in Client Application server with Required fields
Case Number:
P0194-GCASE
Social Security Number:
P0002-PERID
Employee First Name:
P0002-VORNA
Employee Last Name:
P0002-NACHN
Deduction Amount:
Payroll Results RT
Can any one pls know me the entire procedure how to fetch the deduction amt based on the given scenario and what r the select statements i have to write to fetch required fields listed above.to provide infotype data you should use logical database PNP (see docu there)
that will create a selection screen by default.
In your report you have to specify
TABLES: PERNR.
INFOTYPES: 0002, 0194, ....
start-of-selection.
get pernr.
here you get all the specified infotypes in tables pxxxx
end-of-selection. " ends processing one pernr and starts with next GET PERNR
there is a function module to read payroll results
PYXX_READ_PAYROLL_RESULT
in your report you have to initialize the buffers first
HR_PCLX_INIT_BUFFER
and then get the cluster directory (RGDIR)
CU_READ_RGDIR -
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.
Maybe you are looking for
-
Mensagem para SAP re: signature - Componente: SLL-NFE
Olá u2013 nós utilizamos o R/3 4.6C SP53 (NF-e OSS Notes aplicado), GRC-NFE 1.0 SP09 instalado sob Netweaver 2004S SP18, SLL-NFE-JWS SP08, XI 7.0 SP15. Nós estamos recebendo as seguintes mensagems de erro no sistema SXMB_MONI of XID quando mandamos u
-
Report error, Invalid object name 'v_lu_cpu'
Hi I have a report that I have imported from another SCCM server that has it working. I have changed the datasources after the import but when I try to run the report I get this error message: An error has occurred during report processing. (rsProce
-
Reinstalling iTunes to correct problem
I have had a problem with iTunes. It crashes whenever i try to play a CD and i have to force quit. So i tried to reinstall the application with an iLife '05 CD-rom. I don't have an OS X disc so i found a cheap used iLife disc. I was hoping the reinst
-
How to contact Apple for de-authroizing all computers?
I need to de-authroize all of my computers on my iTunes account. But it says I can only do this once a year. And I can't find any other way to contact apple other than this community. I have no access to a phone because I am in Korea right now....
-
[svn] 4631: Changed clipping in TextBox and TextGraphic.as
Revision: 4631 Author: [email protected] Date: 2009-01-22 17:00:39 -0800 (Thu, 22 Jan 2009) Log Message: Changed clipping in TextBox and TextGraphic.as TextFlowComposer no longer relies on TextLineFactory.createTextLinesFromTextFlow() returning an 'o