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: 

dump when command STOP is used.

JayantkumarS
Participant
0 Kudos

HI experts,

I am facing dump , when i use STOP command.

IF va_answer = 2 .

stop.

endif.

i have to stop creation of contract creation,without saving anything .so i have used stop.

this is not inside any loop / case .

please help me out in this.

10 REPLIES 10

ThomasZloch
Active Contributor
0 Kudos

Please be more specific about your "dump". Or maybe not...

Former Member
0 Kudos

Hi,

STOP is only to be used in executable programs with events

GET

START-OF-SELECTION

and AT-SELECTION SCREEN without additions

and it triggers END-OF-SELECTION event.

regards

Krishna

former_member555112
Active Contributor
0 Kudos

HI,

What do you mean by

i have to stop creation of contract creation,without saving anything .so i have used stop.

Are you coding teh STOP statement in some user exit while creating the contract?

You can use STOP in an exit.

Kindly be more specific with your requirement.

Regards,

Ankur Parab

Former Member
0 Kudos

Hi,

Try to use EXIT instead of STOP.

maybe it can solve your problem.

Regards,

Rajesh Kumar

0 Kudos

Hi,

STOP is followed immediately by the END-OF-SELECTION processing. If you do not want this, you may have to use EXIT instead.

Regards,

Prashant

0 Kudos

I have tried using EXIT, the probelm is that it is woring fine but its saving the contract.

this should not happen, it has to stop the process there it self, Imean contract creation process without saving anything.

0 Kudos

HI,

Give an error message instead.

Incase your are in a report use LEAVE LIST-PROCESSING after the error message.

In case it is an exit; then just give the error message.

Regards,

Ankur Parab

Former Member
0 Kudos

The STOP statement is only useful in specific events of the report processing (that is, the execution of a type 1 program).

In module pool/User exits canu2019t be use STOP command.

For replacement, you can give error message or command u2018LEAVE to CURRENT TRANSACTIONu2019.

If you use u2018LEAVE to CURRENT TRANSACTIONu2019, it will return to the same tcode, but will not have the old values.

0 Kudos

just pass a message of type 'E'. program halts there.

_IvanFemia_
Active Contributor
0 Kudos

Hi,

I had this issue after a system upgrade, I replaced STOP with EXIT and problem was solved.

From the sap help:

STOP is only to be used in executable programs with events GET, START-OF-SELECTION and AT-SELECTION SCREEN without additions and it triggers END-OF-SELECTION event.

Regards,

Ivan