Application Development and Automation 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: 
Read only

STOP Command

Former Member
0 Likes
949

Hi All,

I have a small issue like in the ECC 6.0 i am using "STOP" command.It is syntactically correct.But when i did the extended program check for this program.It is giving me error like "STOP statement is obsolete in OO context".

Which statement i should use Rather than STOP which will execute the same function like "STOP".

This is very urgent.Please.I will reward you points.

Thanks,

Swapna.

5 REPLIES 5
Read only

Former Member
0 Likes
744

Hi,

Try to use CHECK with condition.

If statement is true it will go ahead else it will stop that block.

Read only

Former Member
0 Likes
744

Hi

STOP ia absolete in ECC 6.0

make use of flag and check the flag and exit

regards

Shiva

Read only

Former Member
0 Likes
744

Hi swapna,

i tried stop statement its working in ECC 6.0......

use CHECK FLD IS INITIAL.

OR USE

SY-SUBRC EQ 0.

Regards,

V.balaji

Read only

Former Member
0 Likes
744

Swapna,

Even though its obsolete, you can use it still if its an executable report.There is no command relacing STOP command.

If u are using STOP in selection-selction screen (not in loop and not in FORM) then EXIT has same effect.

Otherwise go for flag.

Thanks Arjun

Read only

Former Member
0 Likes
744

Hi,

Yes STOP command is obsolete.

So, use flags and check it at the start of every sub-routine/event where u want to stop the execution, based on the condition.

Reward if helpful.

Regards,

Ramya