Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SUBMIT Related Problem

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

Tags:
Former Member
Former Member replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question