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: 

Replace the obsolete statement STOP

Former Member
0 Kudos

Hi expert ,

I am working for a upgrade project fron 4.7 to ECC. We need to replace the obsolete statement STOP. Which is the best statement to replace STOP(RETURN or EXIT)

Thanks and Regards

Joby Jacob

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI STOP leaves the current event block and trigger END-OF-SELECTION.

SAP recommend using EXIT only within loops (see EXIT - loops ). Instead, use RETURN to leave processing blocks.

So RETURN seems to be better option.

Edited by: Anurag_n on Apr 14, 2010 8:31 AM

3 REPLIES 3

Former Member
0 Kudos

HI STOP leaves the current event block and trigger END-OF-SELECTION.

SAP recommend using EXIT only within loops (see EXIT - loops ). Instead, use RETURN to leave processing blocks.

So RETURN seems to be better option.

Edited by: Anurag_n on Apr 14, 2010 8:31 AM

Former Member
0 Kudos

hi,

you can use leave to list-processing if you are displaying any error message in end-of-selection so that you can return back to the selection screen

rgds/

shivraj

Edited by: ShivrajSinha on Apr 14, 2010 8:33 AM

Former Member
0 Kudos

Hi,

It is recommended to use RETURN instead of EXIT.

Exit is considered best incase of loop processing, But to terminate the event block, Pls use RETURN.

Regrads,

Lokesh.