首页 > 应用开发 > IT综合 > 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:
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的原创文章,请关注公众号"汪子熙":
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24475491/viewspace-2712214/,如需转载,请注明出处,否则将追究法律责任。