‎2009 Sep 01 3:51 PM
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.
‎2009 Sep 01 3:56 PM
‎2009 Sep 01 3:56 PM
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
‎2009 Sep 01 4:06 PM
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
‎2009 Sep 02 5:10 AM
Hi,
Try to use EXIT instead of STOP.
maybe it can solve your problem.
Regards,
Rajesh Kumar
‎2009 Sep 02 5:19 AM
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
‎2009 Sep 02 7:13 AM
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.
‎2009 Sep 02 8:49 AM
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
‎2009 Sep 02 7:39 PM
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.
‎2009 Sep 02 8:11 PM
‎2009 Sep 02 8:34 PM
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