Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 04: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 04:53 AM

    Hi Harsha,

    Check the select statement in the program.

    SELECT  * from zchk_tab2 into table itab

    Regards,

    Sravanthi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 04: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.