SP2-0552: Bind variable not declared error. Any help please?
Hi Experts,
I have a question regarding the error that I am getting: SP2-0552: Bind variable "V_COUNT_TOT_BAL" not declared.
I have 'out' parameters declared in my procedure and executing the same from sql script as shown below:
set ver off
set serverout on
set linesize 8000
Declare
Variable v_count_dtl_bal NUMBER(10);
Variable v_updat_dtl_bal NUMBER(10);
Variable v_count_tot_bal NUMBER(10);
Begin
execute load_abc.insert_abc_bal(:v_count_dtl_bal,:v_updat_dtl_bal,:v_count_tot_bal);
End;
exit;
So, when this sql script runs it given me the above error. However, all the result looks good and there's no problem with the data or anything else that might be impacted. I suspect this error stems from the code in the sql script above.
Any idea what am I doing wrong?
Thanks in advance for any inputs.
Thanks Frank. I still receive the same error if I follow your example or any of the ones explained above. This is what I am getting and still an error underneath:
Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
VARCHAR2 (n CHAR) | NCHAR | NCHAR (n) |
NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
BINARY_FLOAT | BINARY_DOUBLE ] ]
Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
VARCHAR2 (n CHAR) | NCHAR | NCHAR (n) |
NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
BINARY_FLOAT | BINARY_DOUBLE ] ]
Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
VARCHAR2 (n CHAR) | NCHAR | NCHAR (n) |
NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
BINARY_FLOAT | BINARY_DOUBLE ] ]
SP2-0552: Bind variable "V_COUNT_TOT_BAL" not declared.
Similar Messages
-
SP2-0552: Bind variable not declared
Hi,
I am using below bind values in a sql query.
declare
B1 number;
B2 varchar2(10);
B3 varchar2(10);
B4 number;
B5 date;
B6 date;
B7 varchar2(30);
B8 number;
B9 number;
B10 varchar2(9);
B11 number;
Begin
:B1 := 24152;
:B2 := 'CR_CORP';
:B3 := 'COST';
:B4 := 24152;
B5 := TO_DATE('01/29/12 23:20:34','MM/DD/YY HH24:MI:SS');
B6 := TO_DATE('02/27/12 21:10:58','MM/DD/YY HH24:MI:SS');
:B7 := 'BEGIN';
:B8 := 945142827;
:B9 := 483695;
:B10 := 'CR_CORP';
:B11 := 7;
End;
and even tried as below:
declare
variable B1 number;
variable B2 varchar2(30);
variable B3 varchar2(30);
variable B4 number;
B5 date;
B6 date;
variable B7 varchar2(30);
variable B8 number;
variable B9 number;
variable B10 varchar2(30);
variable B11 number;
Begin
:B1 := 24152;
:B2 := 'CR_CORP';
:B3 := 'COST';
:B4 := 24152;
B5 := TO_DATE('01/29/12 23:20:34','MM/DD/YY HH24:MI:SS');
B6 := TO_DATE('02/27/12 21:10:58','MM/DD/YY HH24:MI:SS');
:B7 := 'BEGIN';
:B8 := 945142827;
:B9 := 483695;
:B10 := 'CR_CORP';
:B11 := 7;
End;
Resulting in SP2-0552: Bind variable "B7" not declared.
Kindly help!Try this:
/* Formatted on 14-3-2012 12:02:31 (QP5 v5.163.1008.3004) */
DECLARE
B1 NUMBER;
B2 VARCHAR2 (10);
B3 VARCHAR2 (10);
B4 NUMBER;
B5 DATE;
B6 DATE;
B7 VARCHAR2 (30);
B8 NUMBER;
B9 NUMBER;
B10 VARCHAR2 (9);
B11 NUMBER;
BEGIN
B1 := 24152;
B2 := 'CR_CORP';
B3 := 'COST';
B4 := 24152;
B5 := TO_DATE ('01/29/12 23:20:34', 'MM/DD/YY HH24:MI:SS');
B6 := TO_DATE ('02/27/12 21:10:58', 'MM/DD/YY HH24:MI:SS');
B7 := 'BEGIN';
B8 := 945142827;
B9 := 483695;
B10 := 'CR_CORP';
B11 := 7;
SELECT /*+ USE_HASH(SUB_DD,BK) */
DH.ASSET_ID,
DH.CODE_COMBINATION_ID,
NULL,
DECODE (:B3,
'COST', CB.ASSET_COST_ACCT,
'CIP COST', CB.CIP_COST_ACCT,
'RESERVE', CB.DEPRN_RESERVE_ACCT,
'REVAL RESERVE', CB.REVAL_RESERVE_ACCT),
DECODE (
:B3,
'RESERVE', DECODE (DD.DEPRN_SOURCE_CODE, 'D', :B7, 'ADDITION'),
'REVAL RESERVE', DECODE (DD.DEPRN_SOURCE_CODE,
'D', :B7,
'ADDITION'),
:B7),
DECODE (:B3,
'COST', DD.COST,
'CIP COST', DD.COST,
'RESERVE', DD.DEPRN_RESERVE,
'REVAL RESERVE', DD.REVAL_RESERVE),
:B11
FROM FA_DEPRN_DETAIL DD,
FA_DISTRIBUTION_HISTORY DH,
FA_ASSET_HISTORY AH,
FA_CATEGORY_BOOKS CB,
FA_BOOKS BK,
( SELECT ASSET_ID, DISTRIBUTION_ID, MAX (PERIOD_COUNTER) MPC
FROM FA_DEPRN_DETAIL
WHERE BOOK_TYPE_CODE = :B2 AND PERIOD_COUNTER <= :B1
GROUP BY ASSET_ID, DISTRIBUTION_ID) SUB_DD
WHERE DH.BOOK_TYPE_CODE = :B10
AND DECODE (DD.DEPRN_SOURCE_CODE, 'D', :B6, :B5) BETWEEN DH.DATE_EFFECTIVE
AND NVL (
DH.DATE_INEFFECTIVE,
SYSDATE)
AND DD.ASSET_ID = DH.ASSET_ID
AND DD.BOOK_TYPE_CODE = :B2
AND DD.DISTRIBUTION_ID = DH.DISTRIBUTION_ID
AND DD.PERIOD_COUNTER <= :B1
AND DD.ASSET_ID BETWEEN :B9 AND :B8
AND DECODE (:B3,
'CIP COST', DD.DEPRN_SOURCE_CODE,
DECODE (:B7, 'BEGIN', DD.DEPRN_SOURCE_CODE, 'D')) =
DD.DEPRN_SOURCE_CODE
AND DD.PERIOD_COUNTER = SUB_DD.MPC
AND DD.DISTRIBUTION_ID = SUB_DD.DISTRIBUTION_ID
AND SUB_DD.ASSET_ID = DD.ASSET_ID
AND AH.ASSET_ID = DD.ASSET_ID
AND AH.ASSET_TYPE <> 'EXPENSED'
AND DECODE (DD.DEPRN_SOURCE_CODE, 'D', :B6, :B5) BETWEEN AH.DATE_EFFECTIVE
AND NVL (
AH.DATE_INEFFECTIVE,
SYSDATE)
AND CB.CATEGORY_ID = AH.CATEGORY_ID
AND CB.BOOK_TYPE_CODE = DD.BOOK_TYPE_CODE
AND BK.BOOK_TYPE_CODE = CB.BOOK_TYPE_CODE
AND BK.ASSET_ID = DD.ASSET_ID
AND DECODE (DD.DEPRN_SOURCE_CODE, 'D', :B6, :B5) BETWEEN BK.DATE_EFFECTIVE
AND NVL (
BK.DATE_INEFFECTIVE,
SYSDATE)
AND NVL (BK.PERIOD_COUNTER_FULLY_RETIRED, :B1 + 1) > :B4
AND DECODE (
:B3,
'COST', DECODE (AH.ASSET_TYPE,
'CAPITALIZED', CB.ASSET_COST_ACCT,
NULL),
'CIP COST', DECODE (AH.ASSET_TYPE,
'CIP', CB.CIP_COST_ACCT,
NULL),
'RESERVE', CB.DEPRN_RESERVE_ACCT,
'REVAL RESERVE', CB.REVAL_RESERVE_ACCT)
IS NOT NULL;
END;
/ HTH,
Thierry -
Hello.
This program is supposed to pull values from a table using a loop, and in the loop, put the values in objects in a varray. I'm new to objects and am stumped trying to get this program to run. When I attempt to run it in SQL*Plus I get the following feedback:
Type created.
Type body created
SP2-0552: Bind variable "MY_VARRAY_EMP1" not declared.
I don't think I even need a bind variable. Any feedback would be appreciated. Here's the program:
-- Enable screen I/O
SET SERVEROUTPUT ON SIZE 1000000
SET VERIFY OFF
-- begin object spec
CREATE OR REPLACE TYPE employee3 AS OBJECT
ename CHAR (20 char),
empno NUMBER (4),
sal NUMBER (10),
MEMBER FUNCTION get_ename RETURN CHAR, MEMBER PROCEDURE set_ename (SELF IN OUT NOCOPY employee3),
MEMBER FUNCTION get_empno RETURN NUMBER, MEMBER PROCEDURE set_empno (SELF IN OUT NOCOPY employee3),
MEMBER FUNCTION get_sal RETURN NUMBER, MEMBER PROCEDURE set_sal (SELF IN OUT NOCOPY employee3)
-- begin object body
CREATE OR REPLACE TYPE BODY employee3 AS
-- gets
MEMBER FUNCTION get_ename RETURN CHAR IS
BEGIN
RETURN self.ename;
END;
MEMBER FUNCTION get_empno RETURN NUMBER IS
BEGIN
RETURN self.empno;
END;
MEMBER FUNCTION get_sal RETURN NUMBER IS
BEGIN
RETURN self.ename;
END;
-- sets
MEMBER PROCEDURE set_ename(SELF IN OUT employee3) IS
BEGIN
self.ename := ename;
END;
MEMBER PROCEDURE set_empno(SELF IN OUT employee3) IS
BEGIN
self.empno := empno;
END;
MEMBER PROCEDURE set_sal(SELF IN OUT employee3) IS
BEGIN
self.sal := sal;
END;
END;
DECLARE
TYPE emp_varray IS VARRAY(10) OF EMPLOYEE3;
my_varray_emp1 EMP_VARRAY;
-- List of EMPNO's in order of appearance in EMP table (for cross-referencing, single-line retrieval)
TYPE MYCREF_VARRAY IS VARRAY(10) OF NUMBER(4);
varray_mycref MYCREF_VARRAY := MYCREF_VARRAY(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
this_object EMPLOYEE3;
-- make a variable to store one empno
thisno NUMBER(4);
-- make a counter
counter INT;
-- query variables for the set calls
q_ename CHAR(20 CHAR);
q_empno NUMBER(4);
q_sal NUMBER(10);
my_result INT;
BEGIN
--my_varray_emp1 := EMP_VARRAY(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
-- Put the first 10 EMPNO's in my cref array
SELECT empno BULK COLLECT INTO varray_mycref FROM emp WHERE ROWNUM < 11;
-- Use a loop to retrieve the first 10 objects in the "emp" table and put them in the varray of objects
q_ename := NULL;
q_empno := NULL;
q_sal := NULL;
my_result := NULL;
this_object := NULL;
counter := 1;
FOR counter IN 1..10 LOOP
thisno := varray_mycref(counter);
this_object := my_varray_emp1(counter);
SELECT ename INTO q_ename FROM emp WHERE empno = thisno;
my_result := this_object.set_ename(q_ename, NULL);
SELECT empno INTO q_empno FROM emp WHERE empno = thisno;
my_result := this_object.set_empno(q_empno, NULL);
SELECT sal INTO q_sal FROM emp WHERE empno = thisno;
my_result := this_object.set_sal(q_sal, NULL);
END LOOP;
-- Use another loop to display the information in the reverse order.
FOR counter in REVERSE 1..10 LOOP
this_object =: my_varray_emp1(counter);
dbms_output.put_line((this_object.get_ename()) || CHR(9) || (this_object.get_empno()) || CHR(9) || (this_object.get_sal()));
END LOOP;
END;Cleaning up your code for errors and eliminating unnecessary complexity...
Add a user-defined constructor which takes all attributes and calls the "setter" procedures in one trip:
-- Enable screen I/O
set SERVEROUTPUT on size 1000000
set VERIFY off
-- begin object spec
create or replace type employee3 as object
ename CHAR (20 char),
empno NUMBER (4),
sal NUMBER (10),
constructor function employee3(
self in out nocopy employee3,
aEname in char,
aEmpNo in integer,
aSal in number
return self as result,
member function get_ename return CHAR, member procedure set_ename (SELF in out nocopy employee3, ename in char),
member function get_empno return NUMBER, member procedure set_empno (SELF in out nocopy employee3, empno in integer),
member function get_sal return NUMBER, member procedure set_sal (SELF in out nocopy employee3, sal in integer)
-- begin object body
create or replace type body employee3 as
constructor function employee3(
self in out nocopy employee3,
aEname in char,
aEmpNo in integer,
aSal in number
return self as result
is
begin
self.set_ename(aEname);
self.set_empno(aEmpNo);
self.set_sal(aSal);
return;
end;
-- gets
member function get_ename return CHAR is
begin
return self.ename;
end;
member function get_empno return NUMBER is
begin
return self.empno;
end;
member function get_sal return NUMBER is
begin
return self.sal;
end;
-- sets
member procedure set_ename(SELF in out employee3, ename in char) is
begin
self.ename := ename;
end;
member procedure set_empno(SELF in out employee3, empno in integer) is
begin
self.empno := empno;
end;
member procedure set_sal(SELF in out employee3, sal in integer) is
begin
self.sal := sal;
end;
end;
(Since I don't have EMP handy at the moment, create a simple view instead)
create or replace view emp
as
select 'EMP' || to_char(level) ename
, level + 100 empno
, DBMS_RANDOM.VALUE(25000,75000) sal
from DUAL
connect by
level <= 20
Get rid of your loop and individual SELECTs, and replace it with a single SELECT BULK COLLECT INTO...
declare
type emp_varray is varray(10) of EMPLOYEE3;
my_varray_emp1 EMP_VARRAY;
this_object EMPLOYEE3;
begin
-- No need for a loop. Use SELECT BULK COLLECT INTO, together with a user-defined constructor call (since the
-- user-defined constructor overrides the default constructor we need to call it using named-parameter notation):
select new employee3(
aEname => e.ename,
aEmpNo => e.empno,
aSal => e.sal
bulk collect into
my_varray_emp1
from emp e
where rownum <= 10;
-- Use another loop to display the information in the reverse order.
for counter in reverse 1..10 loop
this_object := my_varray_emp1(counter);
dbms_output.put_line((this_object.get_ename()) || chr(9) || to_char(this_object.get_empno()) || chr(9) || to_char(this_object.get_sal()));
end loop;
end;
EMP10
110 60110
EMP9
109 67485
EMP8
108 58242
EMP7
107 47597
EMP6
106 58995
EMP5
105 49098
EMP4
104 47406
EMP3
103 67574
EMP2
102 59663
EMP1
101 52929
PL/SQL procedure successfully completed.
Gerard -
SP2-0552: Bind variable "SV_STUDENT_ID" not declared.
I get this error:
SP2-0552: Bind variable "SV_STUDENT_ID" not declared.
DECLARE
sv_student_id NUMBER;
v_student_id NUMBER := &sv_student_id;
v_enrolled VARCHAR2(3) := 'NO';
BEGIN
DBMS_OUTPUT.PUT_LINE ('Check if the student is enrolled');
SELECT 'YES'
INTO v_enrolled
FROM enrollment
WHERE student_id = v_student_id;
DBMS_OUTPUT.PUT_LINE ('The student is enrolled into one course');
EXCEPTION
WHEN NO_DATA_FOUND
THEN
DBMS_OUTPUT.PUT_LINE ('The student is not enrolled');
WHEN TO_MANY_ROWS
THEN
DBMS_OUTPUT.PUT_LINE ('The student is enrolled to many courses');
END;Define &sv_student_id;
DECLARE
v_student_id NUMBER := &sv_student_id;
v_enrolled VARCHAR2(3) := 'NO';
BEGIN
DBMS_OUTPUT.PUT_LINE ('Check if the student is enrolled');
SELECT 'YES'
INTO v_enrolled
FROM enrollment
WHERE student_id = v_student_id;
DBMS_OUTPUT.PUT_LINE ('The student is enrolled into one course');
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE ('The student is not enrolled');
WHEN TO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE ('The student is enrolled to many courses');
END; -
Bind variable not declared - please help
Hello,
I have wrote a PL/SQL script to update some order_id's in a table. I have declared all my variables but get an error -- bind variable not declared. Can anyone tell me what the problem might be?
DECLARE
last_ship DATE ;
last_order NUMBER;
last_cust NUMBER;
VARIABLE curr_item NUMBER;
VARIABLE curr_order NUMBER;
aorder_id CHAR(6);
aitem_id CHAR(2);
acust_id NUMBER(6);
aship_date DATE;
CURSOR c1 IS
SELECT
order_id,
item_id,
ship_date,
cust_id
FROM
test_sales
ORDER BY
1,2,3,4,5;
BEGIN
SELECT
MAX(order_id)
INTO
curr_order
FROM
sales_order;
OPEN c1;
LOOP
FETCH c1 INTO aorder_id, aitem_id, aship_date, acust_id;
EXIT WHEN c1%NOTFOUND;
last_cust := c1.cust_id; -- Saves the last values to check if processing same order
last_order := c1.aorder_id; --
last_ship := c1.aship_date; --
IF c1.aorder_id = last_order AND c1.cust_id = last_cust AND c1.ship_date = last_ship THEN
curr_item := curr_item +1;
UPDATE test_sales SET c1.aorder_id = :curr_order;
UPDATE test_sales SET c1.aitem_id = :curr_item;
ELSE
curr_order := curr_order + 1;
curr_item := 1;
UPDATE test_sales SET c1.aorder_id = :curr_order;
UPDATE test_sales SET c1.aitem_id = :curr_item;
END IF;
END LOOP;
CLOSE c1;
END;
/Cheers
Mikecheck yours code you are direct accesing cusrsor named directly which is not allowed
1 DECLARE
2 vemp emp.empno%TYPE;
3 vemp1 emp.empno%TYPE;
4 CURSOR c1 IS SELECT empno FROM emp;
5 BEGIN
6 OPEN c1;
7 LOOP
8 FETCH c1 INTO vemp;
9 EXIT WHEN c1%NOTFOUND;
10 vemp1:=c1.empno;
11 END LOOP;
12 CLOSE c1;
13* END;
SQL> /
vemp1:=c1.empno;
ERROR at line 10:
ORA-06550: line 10, column 14:
PLS-00225: subprogram or cursor 'C1' reference is out of scope
ORA-06550: line 10, column 4:
PL/SQL: Statement ignored
SQL> DECLARE
2 vemp emp.empno%TYPE;
3 CURSOR c1 IS SELECT empno FROM emp;
4 BEGIN
5 OPEN c1;
6 LOOP
7 FETCH c1 INTO vemp;
8 EXIT WHEN c1%NOTFOUND;
9 END LOOP;
10 CLOSE c1;
11 END;
12 .
SQL> /
PL/SQL procedure successfully completed.Yours code
OPEN c1;
LOOP
FETCH c1 INTO aorder_id, aitem_id, aship_date, acust_id;
EXIT WHEN c1%NOTFOUND;
last_cust:= c1.cust_id;
last_order:= c1.aorder_id;
END LOOP;
CLOSE c1;
END;You sholud move it c1.cust_id within fetch statment or
bind the cursor name with another local cursor variable
then fetch into this local bind variable and use cursor
via this variable
e.g
DECLARE
CUSRSOR c1 IS SELECT cust_id,aorderid
FROM <TABLE>;
c2 c1%ROWTYPE;
OPEN c1;
LOOP
FETCH c1 INTO c2;
aorder_id:=c2.aorderid;
last_cust:= c1.cust_id;
last_order:= c1.aorder_id;
END LOOP;
CLOSE c1;
END;Khurram -
I cannot upload an exel file from lap top to numbers in iPad, message says file not supported. Any help please?
File Sharing lets you transfer files between iPad and your computer. You can share files created with a compatible app and saved in a supported format.
Apps that support file sharing appear in the File Sharing Apps list in iTunes. For each app, the Files list shows the documents that are on iPad. See the app’s documentation for how it shares files; not all apps support this feature.
Connect iPad to your computer.
In iTunes, select iPad in the Devices list, then click Apps at the top of the screen.
In the File Sharing section, select an app from the list on the left.
On the right, select the file you want to transfer, then click “Save to” and choose a destination on your computer.
Transfer a file from your computer to iPad:
Connect iPad to your computer.
In iTunes, select iPad in the Devices list, then click Apps at the top of the screen.
In the File Sharing section, click Add.
Select a file, then click Choose (Mac) or OK (PC).
The file is transferred to your device and can be opened using an app that supports that file type. To transfer more than one file, select each additional file.
Delete a file from iPad: Select the file in the Files list, then tap Delete.
or use dropbox -
hi all
declare jobno number;
BEGIN
DBMS_JOB.SUBMIT(:jobno,
'proc_mvref;',
SYSDATE, 'SYSDATE + 1');
commit;
END;
when i run this statement,I get the follwing error.
P2-0552: Bind variable "JOBNO" not declared.
But I cannot locate the error.
Thanks in Advancevariable jobno number
BEGIN
DBMS_JOB.SUBMIT(:jobno,
'proc_mvref;',
SYSDATE, 'SYSDATE + 1');
commit;
END;
print jobno
Now it'll work.
or
set serveroutput on
declare jobno number;
BEGIN
DBMS_JOB.SUBMIT(jobno, -- note the edit
'proc_mvref;',
SYSDATE, 'SYSDATE + 1');
dbms_output.put_line(jobno);
commit;
END;
This will work too...
Sybrand Bakker -
Cannot get itunes 10.5.2x64 to install at all, 10.5.1x64 worked ok on my Vaio win7 laptop.The update totally screwed everything,
all I get is "the installer encountered errors before itunes could be configured.errors occured during installation.your system has not been modified."
Any help please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Praise God - I found the solution after hours of work: (1) Uninstall all Apple programs (itunes, Quicktime, Bonjour, .....); (2) Go to "Common Files" and delete all Apple files - this might be difficult for some are locked from you - you may have to change the "Owner" of the file in order to delete it - if that doesn't work "Rename the Apple Follder to something like Apple Old - that's like deleting it. Then download 10.5 from Apple and away you go - yippee.
-
Imy iPhone sounds are not working. Any help please
I have an iPhone 4s. I Powered it offhand when I opened it again all the sounds like the keyboard sounds and the sound u here when u unlock the phone. Even the music in games are not working. However, when I listen to music or watch videos on YouTube there are no problems. Any help please??
All the contacts sync configuration has been done, first I configured the iTunes to sync with outlook but nothing happen, then change to Gmail but same.
My contacts on my iPhone, no contacts in outlook.
No error msg -
Motorola ,motorokr s9 hd bluetooth, will not skip tracks, any help please
hi just got bluetooth motorola motorokr s9-hd headphones, paired fine, sound great but when try to skip songs on the headphones it will not let me do that, can anyone advise with any help please .....thanks
thanks for that help, just been checking some forums and stuff, so hopefully next firmware will be able to do this, at moment i am using voice control and seems to do the trick....thanks
-
JDOM - Variable not intialized error, why? please help.
Hello,
Please assit me.....I need a rush help. Stuck! Stuck!!!!
I am reading a text file which has multiple headers(identified in the first 2 pos as '//'), followed by '01' records which are details. It would look like
//nbr....
01address....
01city.....
01zip....
//name...(continues).
My jave routine reads it and puts the tags as
<efldata>
<tx>
<loadmessage>jhdfj
<nodedetail>
<address>....
<zip>
<nodedetail>
djfgkdf..... etc.
While compiling it gives me a loadmessage not initialized error. Please help. I have included arrow marks where the error occurs....
This is my code.....
while ((str = br.readLine()) != null) {
try {
String type = str.substring(0,2);
if ( "//".equals( type ) )
/**** header data ******/
hdr_count = hdr_count + 1;
controlnbr = str.substring(2,9);
f_first = 'y'; /**** first time header check flag ***/
} else
if ( "01".equals( type ) ) /**** Checks for detail records ****/
// loadmessage = new Element("LoadMessage");
if ((f_first) == 'y') { /*** Execute if first time(header) ***/
f_first = 'n';
Element tx = new Element("TX");
efldata.addContent(tx);
loadmessage = new Element("LoadMessage");
loadmessage.addAttribute(new Attribute("clientControlNo", controlnbr));
// loadmessage.setContent(null);
tx.addContent(loadmessage);
/*** Detail info ***/
dtl_count = dtl_count + 1;
String stopoffsequence = str.substring(2,4);
String nodecode = str.substring(4,24);
String addr1 = str.substring(24,60);
String bol = str.substring(147,154);
String year = str.substring(192,196);
Element nodedetail = new Element("NodeDetail");
nodedetail.addAttribute("seqInRoute", stopoffsequence);
// nodedetail.setContent(null);
Element nodeaddress = new Element("NodeAddress");
nodeaddress.addAttribute("address1", addr1);
Element nodeaction = new Element("NodeAction"); //.setContent(null);
nodeaction.addAttribute("bol", bol);
Element nodeactiondate = new Element("NodeActionDate");
nodeactiondate.addAttribute("year", year);
--------> loadmessage.addChild(nodedetail);
nodedetail.addChild(nodeaddress);
nodedetail.addChild(nodeaction);
nodeaction.addChild(nodeactiondate);Try
Element loadmessage= new Element()
Cheers
Sanjay -
I have just tried to update iTunes to the latest software and now I keep getting error messages. I have uninstalled and downloaded the latest version without any success. Any advice please?
Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
http://majorgeeks.com/download.php?det=4459
To install the utility, doubleclick the msicuu2.exe file you downloaded.
Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove", as per the following screenshot:
Quit out of CleanUp, restart the PC and try another install. Does it go through this time? -
Statement not accessible error - Any ideas please.
Hello all:
We were using macro from TRMAC table in 4.6C version and it used to give a warning but after upgrading to ECC6.0 it is syntax error! Please look at the code below:
*SELECTION SCREN / PARAMETERS *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-s01.
PARAMETERS: p_mode(1) TYPE c DEFAULT 'N' OBLIGATORY,
p_grp LIKE apqi-groupid DEFAULT 'SKF_POST' OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN SKIP 1.
unix_pc_path text-001 text-002 text-003.
*Intialization *
*INITIALIZATION.
*At selection screen *
AT SELECTION-SCREEN OUTPUT.
PERFORM format_unixpath(yunixctrl) USING 'YHOME_UX' yhome_ux.
AT SELECTION-SCREEN.
IF ( rdb_pc = 'X' AND yhome_pc IS INITIAL ) OR
( rdb_ux = 'X' AND yname_ux IS INITIAL ).
MESSAGE e000 WITH 'A filename is required'.
ENDIF.
AT USER-COMMAND *
AT USER-COMMAND.
*Start-of-selection *
START-OF-SELECTION.
IF NOT rdb_ux IS INITIAL.
unix_getname yhome_ux yname_ux v_file_in.
PERFORM upload_parse_unix_file.
ELSEIF NOT rdb_pc IS INITIAL.
v_file_in = yhome_pc.
PERFORM upload_parse_pc_file.
ENDIF.
PERFORM skf_posting.
*End-of-selection *
END-OF-SELECTION.
The program does not like the line "unix_pc_path text-001 text-002 text-003." and gives an error "Statement not accessible". I went through some discussion forums on this here but nothing related to macro. Could anyone please give me an idea how I could resolve this? All the answers will be rewarded.
Thanks.
MithunYou cannot put it in START-OF-SELECTION a you need the unix path in the
AT SELECTION-SCREEN FOR OUTPUT event.. move the statement from the selection-screen block to the INITIALIZATION event.
~Suresh -
I bought a ringtone from iTunes yesterday and set it to default ringtone at time of purchase. Today it is not there, any ideas on how to get it again?
http://support.apple.com/en-us/HT204076
-
Link for Adobe Premiere Elements 11 will not work. Any help please?
I bought my Premiere Elements package from another seller which gave me a link to download from Adobe. The product key thing is legit but every time I click on the file link for windows, my laptop comes up with this message: "The file archive of Adobe Premiere Elements 11 is missing. You need all parts in the same folder in order to extract Adpbe Premiere Elements 11. Please download all parts."
What does this mean??? Can anyone help me??? Please!it means you only download of the 2 needed files. there are files 1 of 2, and 2 of 2. you need both. try again.
Downloadable installation files available:
Suites and Programs: CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
Acrobat: XI, X | 9,8 | 9 standard
Premiere Elements: 13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
Photoshop Elements: 13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
Lightroom: 5.7.1| 5 | 4 | 3
Captivate: 8 | 7 | 6 | 5.5, 5
Contribute: CS5 | CS4, CS3
Download and installation help for Adobe links
Download and installation help for Prodesigntools links are listed on most linked pages. They are critical; especially steps 1, 2 and 3. If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.
Maybe you are looking for
-
"Exit" in director is ? in Flash
Another in my series of "switching from Director to Flash" questions. Here's what I'm trying to do. 1. Allow the user to type a new in an Input Text box. 2. If the number is from 1 to 12, go to the "input" frame 3. If the number is not from 1 to 12,
-
hello everyone in our company we are upgrading our DCs to server 2012R2 we have one Dc 2008R2 we installed another DC 2012R2 and make it GC from sites and services the problem appeared when I demoted the 2008 server I noticed that nobody in the compa
-
How to make form based authenticaiton in adf security?
Hi all How to make form based authenticaiton in adf security? help give example video or project. Thanks lhagva
-
Hello, i have a question regarding the hardware of a fms server. We have it installed and working properly on: CentOS 5.3 64bit Intel(R) Core(TM)2 Duo CPU E4400 @ 2.00GHz 3GB RAM 2xSATA HDD in RAID1 We are going to stream live video, at a rate o
-
Hello guru's, Is any program or FM is avilable in sap BI/BW for bulk creation of infoobjects(Char/KF) in one go? Thanks, Rishi Nigam