zoukankan      html  css  js  c++  java
  • sap变量的定义

    *&---------------------------------------------------------------------*
    *& Report  ZDM_FIRST
    *&
    *&---------------------------------------------------------------------*
    *&
    *&
    *&---------------------------------------------------------------------*

    REPORT ZDM_FIRST.
    data sss type value 5.
    write sss.
    write text-sss.
    * /表示换行
    databegin of Student,
           name(20type c,
           age type i,
           sex type i,

          end of Student.


       Student-name 'cherry'.
       Student-age 22.
       Student-sex 1.

     write'student:',Student-name,',age->',Student-age,'sex->',Student-sex.

    * like表示变量stu的数据类型是参考Student 修改stu的值 不会修改Student的值

     data stu like  Student.
       stu-name ='jiaozi'.
       stu-age 22.
       stu-sex 0.
       write:'student:',stu-name,',age->',stu-age,'sex->',stu-sex.
       write'student:',Student-name,',age->',Student-age,'sex->',Student-sex.
     typesbegin of StudentType,
               name(20type c,
               age type i,
               sex type i,
            end of StudentType.
     data stu1 type StudentType.
     stu1-name 'ggg'.
     write stu1-name.
    *FIELD-SYMBOLS是宏 表示引用一个变量 宏修改变量的值也跟着修改
     FIELD-SYMBOLS <s> like stu1.
     assign stu1 to <s>.
     <s>-name 'cherry'.
     write <s>-name.
     write stu1-name.
  • 相关阅读:
    c++虚函数
    Boost Graph Library
    二分查找 http://ac.jobdu.com/problem.php?pid=1545
    二叉树应用
    注解篇二
    springboot+fastdfs+docker
    注解篇一
    vue启动加修改例子
    SSM框架中的中文乱码问题
    mybatis4
  • 原文地址:https://www.cnblogs.com/liaomin416100569/p/9331320.html
Copyright © 2011-2022 走看看