‎2008 Sep 19 5:36 AM
Hi,
Check this out.
REPORT ZCHK_FAIL .
tables zchk_tab2.
data itab like standard table of zchk_tab2 with header line.
SELECT * from zchk_tab2 table itab." ---sytax error here
loop at itab.
write:/, itab-zempno.
endloop.
-
REPORT ZCHK_FAILTEST .
DATA oref TYPE REF TO cx_root.
TRY.
submit zchk_fail and RETURN.
CATCH CX_ROOT INTO OREF.
WRITE 'ERROR IN REPORT PROGRAM'.
ENDTRY.
-
I want the above program (Fail Test to run properly. No changes in the First Program Allowed.
Please help me out
Thanks
ChK
Edited by: Harsha Cheruku on Sep 19, 2008 6:36 AM
Edited by: Harsha Cheruku on Sep 19, 2008 6:38 AM
‎2008 Sep 19 5:43 AM
Hi Harsha,
Harsha wrote :
REPORT ZCHK_FAIL .
tables zchk_tab2.
data itab like standard table of zchk_tab2 with header line.
SELECT * from zchk_tab2 table itab." ---sytax error here
loop at itab.
write:/, itab-zempno.
endloop.Make the select statement as
SELECT * from zchk_tab2 into table itab.This will solve.
Regards,
Swapna.
‎2008 Sep 19 5:43 AM
Hi Harsha,
Harsha wrote :
REPORT ZCHK_FAIL .
tables zchk_tab2.
data itab like standard table of zchk_tab2 with header line.
SELECT * from zchk_tab2 table itab." ---sytax error here
loop at itab.
write:/, itab-zempno.
endloop.Make the select statement as
SELECT * from zchk_tab2 into table itab.This will solve.
Regards,
Swapna.
‎2008 Sep 19 5:53 AM
Hi Harsha,
Check the select statement in the program.
SELECT * from zchk_tab2 into table itabRegards,
Sravanthi
‎2008 Sep 19 5:54 AM
Hi
In submit statement you write the name of program in capital letter and for query you write
SELECT * from zchk_tab2 into table itab.
‎2008 Sep 19 5:56 AM
i think in your first program you are using this syntax
SELECT * from zchk_tab2 table itab.
this is not correct.
use
select *
from zchk_tab2
into corresponding fields of table itab.
i think this is surely help you.
thanks & regard
abhishek
‎2008 Sep 19 6:04 AM
Hi,
My question is not if the syntax, is right or wrong, i want it to be wrong and catch the error in the first program through the second program. Everything else is right, just try to copy both of them into ur system, activate the first program inspite of errors and execute the second program and check, theres an error coming, i want to catch that error.
Thanks
ChK
‎2008 Sep 19 6:04 AM
Hi,
My question is not if the syntax, is right or wrong, i want it to be wrong and catch the error in the first program through the second program. Everything else is right, just try to copy both of them into ur system, activate the first program inspite of errors and execute the second program and check, theres an error coming, i want to catch that error.
Thanks
ChK