A LET expression defines variables var1, var2, … or field symbols , , … as local auxiliary fields in an expression and assigned values to them. When declared, the auxiliary fields can be used in the operand positions of the expression. There is no way of accessing an auxiliary field statically outside its expression.

See example below:

  1. in line 25 and line 26 we define two auxiliary fields date and sep with keyword LET, which are used in LET expressions in line 27.
  2. in line 27 we define a LET expression by keyword IN
  3. finally the value of LET expression will be calculated and filled to inline variable isodate defined in line 24. We use CONV string to explicitly specify that inline defined variable isodate has type STRING.

Execution result:

Another example:
Defines three local auxiliary variables, x, y, and z, in a constructor expression to construct the values of a structure. The values of the auxiliary variables are used for the structure components.

Execution result:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

ABAP 740里的新语法 - LET表达式相关推荐

  1. 如何在ABAP workbench里创建新的repository对象

    for details and background, see my blog An example to help you understand how does ADT work. 要获取更多Je ...

  2. 利用ABAP 740的新关键字REDUCE完成一个实际工作任务

    ABAP 740从2013年发布至今已经过去很长的时间了,下面这张图来自SAP社区博客: ABAP News for Release 7.40 – What is ABAP 7.40? 图中的ABAP ...

  3. 用新语法写更简洁的ABAP代码

    相比其他语言,ABAP可能有很多特有的长处,但简洁从来就不是它的优点之一. 不像其他语言通过Library提供常用功能,ABAP大量使用内置声明(Built-In Statement) 来完善自身,这 ...

  4. abap新语法(一)

    DATA 赋值动态声明变量 通过赋值的方式来动态声明变量,系统会根据所赋的值来确定变量类型 其中,字符类型会参照数据长度来指定 DATA(gv_str) = 'hello seele'. " ...

  5. switch表达式新语法

    1.JDK12之前的原语法  public static void choiceSwitch(int num) { switch (num) {case 1:System.out.println(&q ...

  6. ABAP 新语法简述

    新语法 1select 后的所有字段之间必须用逗号分割 2.gt_out 要加 @ 3.且所有屏幕算选择条件必须用@

  7. 浅谈 SAP ABAP 系统里的 ALV 输出方式实现

    由于国情原因,ABAP ALV相关的报表开发在国内众多SAP技术交流群里永远都是一个热门话题. 最近Jerry和朋友的技术交流群里,郭爷向大家介绍了ALV Integrated Data Access ...

  8. 第十六节:语法总结(3)(C#6.0和C#7.0新语法)

    一. C# 6.0 新语法 1. 自动属性初始化可以赋值 1 /// <summary> 2 /// 自动属性初始化 3 /// </summary> 4 public cla ...

  9. 1、ASP.NET MVC入门到精通——新语法

    本系列目录:ASP.NET MVC4入门到精通系列目录汇总 在学习ASP.NET MVC之前,有必要先了解一下C#3.0所带来的新的语法特性,这一点尤为重要,因为在MVC项目中我们利用C#3.0的新特 ...

最新文章

  1. Hive的Security配置
  2. 【Linux】 Samba 服务器安装配置实现与Windows系统的文件共享服务
  3. NR 5G SA注册流程
  4. String类(二)
  5. 如何把照片压缩到20k一下_如何将图像压缩10倍?阿里工程师有个大胆的想法!...
  6. export命令添加和删除环境变量
  7. Druid 配置_配置WebStatFilter
  8. TCP/IP协议读书笔记(1)
  9. python执行脚本时的命令行选项_Python 处理脚本的命令行参数(二):使用click
  10. servlet-servletContext简述
  11. 书籍推荐:《Java数据结构与算法》
  12. Postfix 故障记录
  13. Logisim-Gates library
  14. 微信公众号(测试号)开发
  15. c语言32关键字详解pdf,C语言32个关键字.pdf
  16. android qq 退出帐号,大家手机上的QQ平常用完退不退出帐号
  17. Pytorch Image Models (timm)
  18. ChemDraw怎样输入大括符?
  19. 【前端实例代码】用HTML、CSS和JavaScript创建一个简易图片编辑器(实现图片的亮度、饱和度、灰度、颜色反转、图片旋转镜面翻转等滤镜效果)
  20. A. Arithmetic Array

热门文章

  1. 肖鹏:微博数据库那些事儿(图灵访谈)
  2. 解决m2eclipse需要jdk的错误
  3. IT人的学习方法论-4 一些重要的能力
  4. MyEclipse10安装SVN插件的几种方法
  5. 洛谷T44252 线索_分治线段树_思维题
  6. 将Python文件打包为exe文件,并在控制台运行之简易教程
  7. 笔记18 客户端跳转
  8. 【BZOJ2004】公交线路(动态规划,状态压缩,矩阵快速幂)
  9. Unity3D两种方式播放视频
  10. Linux下使Shell命令脱离终端运行