Sunday, April 3, 2016

EXIT, STOP, CONTINUE, RETURN and LEAVE PROGRAM

EXIT: The EXIT command will stop the LOOP passings, exit from the SUBROUTINES..etc.

The behavior of EXIT keyword is depends on where you use it.

  • If you use EXIT keyword inside IF .. ENDIF., it will comes out of the program.
  • If you use EXIT inside LOOP .. ENDLOOP., it will come out of loop.
  • If you use EXIT inside FORM .. ENDFORM., it will comes out of form (subroutine)

Leave Program : LEAVE PROGRAM always leaves the current program - there is never any processing after LEAVE PROGRAM 

STOP

STOP is a statement which is used to stop processing an event block, ex: If I have two events START-OF-SELECTION and END-OF-SELECTION in my program, If I use STOP keyword in START-OF-SELECTION, the keyword will exits start-of-selection and goes to END-OF-SELECTION.

CONTINUE

CONTINUE is a statement, which is used to skip execution of a record inside loop.. endloop, do..endo, while..endwhile etc. 

RETURN

RETURN is a statement which is used to stop processing of current block immediately.

52 comments:

  1. Fabulous..!! Thank you.The information you provided is much usful information on sap video training.

    ReplyDelete
  2. I am planning to join sap abap with them after reading your blog.
    Hope the best will turn out.
    Call them at 8122241286 in chennai.
    www.thecreatingexperts.com

    ReplyDelete
  3. We provide sap abap technical course, call us to know more about us and join with us.
    Call them at 8122241286 in chennai.
    www.thecreatingexperts.com

    ReplyDelete
  4. SAP ABAP training is provided in CHENNAI.

    THE CREATING EXPERTS is one of the leading trainer in SAP who provides real time training

    http://thecreatingexperts.com/sap-abap-training-in-chennai/

    contact 8122241286

    ReplyDelete
  5. SAP ABAP training is provided in CHENNAI.

    THE CREATING EXPERTS is one of the leading trainer in SAP who provides real time training

    http://thecreatingexperts.com/sap-abap-training-in-chennai/

    contact 8122241286

    ReplyDelete
  6. It has Wonderful Information on sap remote access free.

    ReplyDelete
  7. Thankyou for wonderful article. It has more Information in Your Website sap training videos.

    ReplyDelete
  8. Thankyou for wonderful article. It has more Information in Your Website sap training video tutorials.

    ReplyDelete
  9. The Staff Nurse vacancy in the UAE offers an engaging and rewarding opportunity for skilled nursing professionals. Applicants should be prepared to provide compassionate and effective patient care in a dynamic healthcare setting. Responsibilities include conducting thorough patient assessments, administering treatments and medications, and ensuring adherence to established protocols. Nurses will work closely with physicians and other healthcare staff to promote optimal health outcomes. Strong interpersonal skills are crucial as the role involves regular communication with patients and their families. The ideal candidate will be dedicated to lifelong learning, actively participating in training sessions and workshops to enhance their skills. By joining our team, you will play a pivotal role in shaping the future of patient care while enjoying a supportive and collaborative workplace. This vacancy is perfect for those looking to grow their nursing career in a culturally rich environment.
    https://www.dynamichealthstaff.com/staff-nurse-vacancy-in-uae

    ReplyDelete