ABAP 7.52更新概览

  • 内表可以作为SQL查询的数据源
select *
  from tj02t
  into table @data(lt_status).

select single istat
  from @lt_status as t
  where istat eq 'I0045'
  into @data(lv_status_teco).
  • 新方法CL_ABAP_ITAB_UTILITIES=>VIRTUAL_SORT ()实现内表排序,返回结果是最终排序的行索引
DATA(v_index) =
      cl_abap_itab_utilities=>virtual_sort(
        im_virtual_source = VALUE #(
         ( source     = REF #( itab )
           components = VALUE #( ( name = 'col1' )
                                 ( name = 'col2' ) ) ) ) ).

  • SQL函数 BINTOHEX / HEXTOBIN 实现字节(16进制)和字符(二进制)之间的强制转换(无法用CAST做到)
select single id as uuid32, hextobin( id ) as uuid16
from iwreferenc
where tcode = 'SE38'
into @data(wa).

if sy-subrc = 0.
  data uuid16 like wa-uuid16.
  cl_system_uuid=>convert_uuid_c32_static(
  exporting
    uuid          =     wa-uuid32
  importing
    uuid_x16      =     uuid16 ).
  assert wa-uuid16 = uuid16.
endif.

cl_demo_output=>display_data( wa ).

结果:可以看到是不同的类型
转换结果

  • 注解WITH PRIVILEGED ACCESS 可以关闭 CDS access control
"将取出所有的记录
SELECT *
       FROM demo_cds_auth_literal WITH PRIVILEGED ACCESS
       ORDER BY carrid
       INTO TABLE @DATA(result).

cl_demo_output=>display( result ). 
  • 左外连接支持TO ONE 和 TO MANY来定义基数
  • 子查询中支持使用ORDER BY and UP TO, OFFSET
  • CDS annotations可以用DDLA定义为独立的CDS对象
  • 推出对ABAP Daemons的支持
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值