ABAP 740里的新语法 - LET表达式

简介: ABAP 740里的新语法 - LET表达式

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:


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.

in line 27 we define a LET expression by keyword IN

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.

image.png

image.pngimage.png

目录
相关文章
|
1月前
|
Java C#
ABAP 7.40 新语法介绍系列之三 - ABAP Value 操作符试读版
ABAP 7.40 新语法介绍系列之三 - ABAP Value 操作符试读版
23 0
|
1月前
|
SQL Java 数据库
ABAP 7.40 新语法介绍系列之四 - ABAP Table Expression 内表表达式的用法试读版
ABAP 7.40 新语法介绍系列之四 - ABAP Table Expression 内表表达式的用法试读版
18 0
|
1月前
ABAP 7.40 新语法介绍系列之一 - ABAP 变量内联声明(Inline Declaration)试读版
ABAP 7.40 新语法介绍系列之一 - ABAP 变量内联声明(Inline Declaration)试读版
28 0
|
7月前
|
测试技术 应用服务中间件 数据库
一些 Next Generation ABAP Platform 的新语法用例
什么是 NGAP(Next Generation ABAP Platform)? SAP NetWeaver 7.40 发布,并附带其 ABAP 应用服务器 AS ABAP 7.40。 在 AS ABAP 7.40 中,ABAP 语言具有一些不错的新特性。 AS ABAP 7.40 是 AS ABAP 7.31(又名 AS ABAP 7.03)的继承者,后者是基于 AS ABAP 7.0 构建的 AS ABAP 7.02 的继承者。
42 0
|
7月前
|
监控 IDE Devops
有哪些ABAP关键字和语法,到了ABAP云环境上就没办法用了?
有哪些ABAP关键字和语法,到了ABAP云环境上就没办法用了?
56 0
|
监控 IDE 开发工具
有哪些ABAP关键字和语法,到了ABAP云环境上就没办法用了?(二)
SAP BTP ABAP 环境是用于 ABAP 开发的 SAP 平台即服务 (PaaS) 产品,使开发人员能够利用其传统的本地 ABAP 专业知识,在 SAP 业务技术平台中开发和运行 ABAP 应用程序,或者作为 SAP 软件的扩展或作为独立应用程序。
166 0
有哪些ABAP关键字和语法,到了ABAP云环境上就没办法用了?(二)
|
Devops
有哪些ABAP关键字和语法,到了ABAP云环境上就没办法用了?(一)
SAP BTP ABAP 环境是用于 ABAP 开发的 SAP 平台即服务 (PaaS) 产品,使开发人员能够利用其传统的本地 ABAP 专业知识,在 SAP 业务技术平台中开发和运行 ABAP 应用程序,或者作为 SAP 软件的扩展或作为独立应用程序。
108 0
有哪些ABAP关键字和语法,到了ABAP云环境上就没办法用了?(一)
|
数据库
SAP ABAP 因系统维护使ABAP语法不再被支持导致使用很久的程序报错问题之分析
SAP ABAP 因系统维护使ABAP语法不再被支持导致使用很久的程序报错问题之分析
SAP ABAP 因系统维护使ABAP语法不再被支持导致使用很久的程序报错问题之分析
|
XML 数据格式
ABAP里的隐藏语法,没有出现在官方文档里
ABAP里的隐藏语法,没有出现在官方文档里
ABAP里的隐藏语法,没有出现在官方文档里
|
1月前
|
存储 数据处理 开发者
ABAP 如何把 unicode 代码点转换成字符
ABAP 如何把 unicode 代码点转换成字符
19 0

热门文章

最新文章