Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SUBMIT Related Problem

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Harsha,

Check the select statement in the program.

SELECT  * from zchk_tab2 into table itab

Regards,

Sravanthi

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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