`
blueoxygen
  • 浏览: 1193527 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

CHECK,EXIT,STOP etc...

    博客分类:
  • SAP
阅读更多

CHECK
If the check statement appears in a LOOP process block, the unfufilled condition check will stop processing rest codes and do next loop.
If the check statement appears in a EVENT block, the unfufilled condition check will stop current event process and jump to next evetn.

EXIT
If you use the EXIT statement within an event block but not in a loop, the system stops processing the block immediately.If the EXIT statement occurs in a loop using DO, WHILE, or LOOP, it is the loop that terminates, not the processing block.

STOP
If you use the STOP statement within an event block, the system stops processing the block immediately.Before and during selection screen processing, the next event in the prescribed sequence is always called. From the AT SELECTION-SCREEN event onwards, the system always jumps from a STOP statement directly to the END-OF-SELECTION statement. Once the corresponding event block has been processed, the system displays the list.

RETURN
If the return occurs in a subroutine, the system will jump out the subroutine processing. If the return occurs in event block processing, system will stop the program directly.
e.g.
START-OF-SELECTION.
  PERFORM frm_test.
  return.
  WRITE / 'start of selection'.

END-OF-SELECTION.
  WRITE / 'end of selection'.
*&---------------------------------------------------------------------*
*&      Form  frm_test
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM frm_test.
  DO 5 TIMES.
    IF sy-index = 2.
      RETURN.
      WRITE 'IF STATEMENT'.
    ENDIF.
    WRITE: 'DO', sy-index.
  ENDDO.
  WRITE / 'END'.
ENDFORM.                    "frm_test

分享到:
评论

相关推荐

    大数据 50 道面试题及答案.docx

    当你输入 hadoop fsck 造成“connection refused java exception”时,系统究竟发生了什么,可以通过 stop-all.sh 再点击 start-all.sh 来重启 Namenode。 Fsck 的全名是 File System Check。可以通过 etc init. d ...

    linux各自启动配置脚本简介

    # Check if the service is running is_running() { if [ -f "$APACHE_PID_FILE" ]; then return 0 else return 1 fi } # Start the service start() { echo "Starting Apache HTTP Server..." $APACHE_BIN ...

    Centos编译安装Tengine&nginx加自启动脚本资料.pdf

    # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 [ -x $nginxd ] || exit 0 # Start nginx daemons functions. start() { if [ -e $nginx_pid ]; then echo "nginx already running...." ...

    nginx开机启动.docx

    # Check that networking is up. [ "$NETWORKING" = "no" ] && exit 0 ``` 2. **配置Nginx路径:** - 需要修改脚本中的路径以匹配实际的Nginx安装位置: ```bash nginx="/usr/sbin/nginx" prog=$(basename $...

    如何部署play1.2.x

    # Check that networking is up. [ "$NETWORKING" = "no" ] && exit 0 # Define program location PROGRAM=/fcg/mo/framework/play-1.2.1/framework/play-1.2.1.jar PIDFILE=/var/run/hello.pid APP_PATH=/fcg/mo/...

    Redis_5.0安装(Linux)说明

    2. **`redis-check-aof`**:AOF文件修复工具,用于检查并修复AOF持久化文件。 3. **`redis-check-rdb`**:RDB文件修复工具,用于检查并修复RDB持久化文件。 4. **`redis-cli`**:Redis命令行客户端,是与Redis服务...

    javacv-platform-1.3.3-src

    Simply put all the desired JAR files (opencv*.jar, ffmpeg*.jar, etc.), in addition to javacpp.jar and javacv.jar, somewhere in your class path. Here are some more specific instructions for common ...

    VSFTP安装配置

    # Check that networking is up. [ "${NETWORKING}" = "no" ] && exit 0 [ -x /usr/local/sbin/vsftpd ] || exit 0 RETVAL=0 prog="vsftpd" start() { # Start the FTP server. echo -n "Starting vsftpd: ...

    Linux使用笔记Linux使用笔记

    sudo systemctl stop firewalld ``` ##### 配置SMB服务 配置SMB服务主要涉及到对`/etc/samba/smb.conf`文件的修改。 1. **备份原文件**: ```bash mv /etc/samba/smb.conf /etc/samba/smb.conf.bak ``` 2. *...

    Java邮件开发Fundamentals of the JavaMail API

    Fundamentals of the JavaMail API Presented by developerWorks, your source for great tutorials ... Table of Contents If you're viewing this document online, you can click any of the topics below ...

    CentOS6.5上部署spingboot项目

    echo "Usage: /etc/init.d/myapp {start|stop}" exit 1 ;; esac exit 0 ``` 4. 授予脚本执行权限: ``` sudo chmod +x /etc/init.d/myapp ``` 5. 添加服务到系统服务管理,使其可以在开机时启动: ``` sudo ...

    Ubuntu11搭建QT开发环境(第四章)完.docx

    sudo /etc/init.d/ssh stop sudo /etc/init.d/ssh start ``` 使用SSH连接另一台主机: ``` ssh username@192.168.1.112 ``` 退出连接: ``` exit ``` 最后,提到了在Ubuntu上安装和构建QT的嵌入式版本。从文档片段...

    2009 达内Unix学习笔记

    ls /etc/ 显示某目录下的所有文件和目录,如etc目录下的。 ls -l (list)列表显示文件(默认按文件名排序), 显示文件的权限、硬链接数(即包含文件数,普通文件是1,目录1+)、用户、组名、大小、修改日期、文件名。 ...

    BURNINTEST--硬件检测工具

    can stop in the operating system - i.e. there is a problem in the operating system/ device driver that prevents control being returned to the BurnInTest for that test. This was added for ...

    FRP-Linux服务端安装-一键安装脚本

    本处高能:因Frp作者更换新的模块,导致Frp v0.18.0.../etc/init.d/frps stop /etc/init.d/frps restart /etc/init.d/frps status /etc/init.d/frps config /etc/init.d/frps version 七、更多帮助请移步官方帮助文件 ...

    Memcached的Linux和Windows安装包

    sudo yum check-update ``` 2. **安装依赖**:在某些发行版中,Memcached可能需要libevent库。 - 对于`apt-get`: ``` sudo apt-get install libevent-dev ``` - 对于`yum`: ``` sudo yum install ...

    hm1375_tinav2.1验证通过_增加设备ID的读取显示_20170825_1333没有外层目录.7z

    if(read_ini_info(dev,input_num, "/system/etc/hawkview/")) { vfe_warn("read ini info fail\n"); } } if(dev->ccm_cfg[input_num]->act_used == 1) { dev->dev_act[input_num].addr = ...

    微软内部资料-SQL性能优化2

    Contents Module Overview 1 Lesson 1: Memory 3 Lesson 2: I/O 73 Lesson 3: CPU 111 Module 3: Troubleshooting Server Performance ...Troubleshooting server performance-based support calls requires ...

    occam一维反演

    C OF THE MODEL, SUCH AS LAYER THICKNESSES, FINITE ELEMENT MESH, ETC. COMMUNICATION C BETWEEN INPUTM() AND FORMOD() AND FORDIV() MUST BE VIA THE USER'S OWN COMMON C BLOCKS. WITH STATIC COMMONS (CHECK ...

Global site tag (gtag.js) - Google Analytics