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: 

How to Exit from Perform(subroutein)

Former Member
0 Kudos

Hi Guruu's,

im using interface arcitecture... in that im having 5 forms. i hv to code every thing inside form only(except declaration section)... im generating inter company vendor payment bill...My requirement is , if the vendor number exceeds some pre defined value i should stop generating the bill and come out of the pgm...how can i do it... if i use exit it is comming out from that form only...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi..

USE STOP instead of EXIT..

EXIT will come out only from the Perfrom where it found

whereas STOP will go to the END-OF-SELECTION no matter in which Perform it occured .

Hope this Helps .

Praveen

3 REPLIES 3

Former Member
0 Kudos

used submit syntac

submit report.

naimesh_patel
Active Contributor
0 Kudos

YOu can use the STOP ...

like

if vendor_amt > 100000.

STOP.

ENDIF.

Because of the STOP, control goes directly to END-of-SELECTION.. and if you don't have end-of-selection, program comes out to selection screen.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi..

USE STOP instead of EXIT..

EXIT will come out only from the Perfrom where it found

whereas STOP will go to the END-OF-SELECTION no matter in which Perform it occured .

Hope this Helps .

Praveen