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: 

Is there any Replacements/ Code for the Reject Statement.....!

Former Member
0 Kudos

Hi All,

When I do syntax Check its's showing "REJECT" is obsolete statment

Generally The statement REJECT is not allowed in ABAP Objects.

Error message is shown in ABAP Objects if the following syntax is used:

REJECT dbtab.

Thanks in advance

Venkatesh

7 REPLIES 7

Former Member
0 Kudos

Hi Mukkalla,

Use CHECK keyword instead of using REJECT.

Refer the following thread:

Regards,

Nitin.

Former Member
0 Kudos

Did you press F1 on reject ?? Just do that, you will get some information on that.

Former Member
0 Kudos

Hi,

As far as i know

CHECK <CONDITION> is the replacement for Reject ..coz other keywords like EXIT..are obselete in ABAP objects..

Regards

Vasavi Kotha

Former Member
0 Kudos

HI,

REJECT is used when LDB's are used if not you can go with EXIT if inside the itearative statement or CHECK to got END-OF_SELECTION event.

Former Member
0 Kudos

hi>

only use REJECT word.

dnt give reject dbtab etc.

REJECT will let u come out of the flow of instrcution which u are executing in a particular block.

Former Member
0 Kudos

hi,

you can use check statement instead of reject.

thanks

Former Member
0 Kudos

Thanks for all