Go to ABAP-instructions on some commands of ABAP process processing (STOP, exit, return, check, reject)

Source: Internet
Author: User

The Stop command uses the program location initialization, at selection-screen, start-of-selection and get to handle instructions 1. When the command is executed in the initialization event, the system will directly trigger the sending of the application server and client screen elements; 2. In other events, the end-of-selection event will be directly triggered. If you do not want to execute end-of-selection, use return or exit. note: The exit command uses the program location of this command for loop and program modules: Do and other processing modules (event block, dialog module, procedure (function module, method, subroutine ))... enddo, while... endwhile, loop... endloop, select... endselect processing description 1. Processing cyclically, Exit only jumps out of the current loop. 2. In the start-of-selection, get, end-of-selection event, list output is directly triggered, the end-of-selection event will not be executed. If no list output is available, the system will directly return to the selection screen. 3. For procedure, the system will return to the call place; note: SAP recommends that exit be used only for loop processing. Use return for the processing module. The return command uses the program location of this command for processing the processing module (event block, dialog module, procedure (function module, method, subroutine) Processing instructions 1. For procedure, return will exit the current processing module unconditionally without affecting the execution of subsequent modules. 2. In the start-of-selection, get, end-of-selection event, the list output is directly triggered, and the end-of-selection event is not executed. If no list output is available, the system returns the selection screen directly. Note: return no matter how many levels of loops exist, the current processing module will be exited directly. This is different from the exit check command. The program location of this command is used in the loop and program module: Do and other processing modules (event block, dialog module, procedure (function module, Method, subroutine ))... enddo, while... endwhile, loop... endloop, select... endselect processing description 1. In loop processing, check only continues to be adjusted to the next loop without executing the subsequent processing of this loop. 2. In start-of-selection, get, in the end-of-selection event, only subsequent code execution in this event is interrupted and the processing of other subsequent modules is not affected. This is different from exit and return; 3. The system returns the call place for a non-circular procedure system. 4. For a get event of the logical database, the system exits the record and reads the subnode. The next record will be processed; note: SAP recommends that you use check for loop processing. Use return for the processing module. The reject command uses the program location of this command to handle get processing events in the logical database. It indicates that reject processing is similar to check, but unlike check: if reject exits the current processing in the same loop, and check only exits the loop, note: The message command uses the program location of this command to handle the list of messages corresponding to different program locations.
  A E I S W X
Pai Module 1 2 3 4 5 6
Pai module for Poh 1 7 3 4 7 6
Pai module for POV 1 7 3 4 7 6
             
At selection-screen... 1 8 3 4 9 6
At selection-screen for Poh 1 7 3 4 7 6
At selection-screen for POV 1 7 3 4 7 6
At selection-screen on exit 1 7 3 4 7 6
             
At line-selection 1 10 3 4 10 6
At PFN 1 10 3 4 10 6
At user-command 1 10 3 4 10 6
             
Initialization 1 11 3 4 11 6
Start-of-selection 1 11 3 4 11 6
Get 1 11 3 4 11 6
End-of-selection 1 11 3 4 11 6
             
Top-of-page 1 11 3 4 11 6
End-of-page 1 11 3 4 11 6
Top-of-page... 1 10 3 4 10 6
             
Load-of-Program 1 1 4 4 4 6
             
PbO Module 1 1 4 4 4 6
At selection-screen output 1 1 4 4 4 6
  1. The message appears in a dialog box and the program terminates. When the user has confirmed the message, control returns to the next-highest area. All the internal sessions are deleted from the stack.
  2. The message appears in the status line. then Pai terminates and the system returns to the current screen. all the screen fields combined using field or chain are now ready for input. the user must enter new values. the system triggers the pai event again, with the new values.
  3. The message appears in a dialog box. Once the user has confirmed the message, the program continues immediately after the message statement.
  4. The message appears in the status line of the next screen. The program continues immediately after the message statement.
  5. The message appears in the status line. then the system continues as in 2, cannot that the user can quit the message using enter without having to enter new values. the system continues handling the pai event from immediately after the message statement.
  6. No message is displayed and a runtime error, message_type_x, is triggered. The short dump text contains the Message identification.
  7. The program terminates with a runtime error dynpro_msg_in_help. While F1 and F4 are processed, the system cannot send error messages or warnings.
  8. The message appears in the status line. then the system stops selection screen processing and returns to the selection screen itself. the screen fields specified in the additions to the at selection-screen statement are now ready for input. the user must enter new values. the system then starts processing the selection screen again with the new values.
  9. The message appears in the status line. then the system continues as in 8, cannot the user can quit the message using enter, without having to enter new values. the system continues handling the pai event from immediately after the message statement.
  10. The message appears in the status line and the processing block terminates. The list level is displayed as before.
  11. The message appears in the status line and the processing block terminates. The system then returns to the program call.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.