1.语法为 CONV dTYPE|#(...)\ # 代表任意类型 "7.40之前表达式 . DATA helper TYPE string. DATA xstr TYPE xstring. helper = text. xstr = cl_abap_codepage=>convert_to( source = helper ). "7.40之后 DATA text TYPE c LENGTH 255. text = 'zhujx'. DATA(xstr1) = cl_abap_
今天学习一下内表的表达式在ABAP 7.4之后的语法: SELECT * FROM mara INTO TABLE @DATA(gt_mara)UP TO 10 ROWS. DATA gt_mara_sort TYPE SORTED TABLE OF mara WITH UNIQUE KEY primary_key COMPONENTS matnr. "旧语法DATA LV_MATKL TYPE MARA-MATKL. INTO DATA(LS_MARA).READ TABLE gt_mara_
"今天学习一下FOR的语法,常用的2个语法. FOR wa|<fs> IN itab [INDEX INTO idx] [cond] "FOR i = … [THEN expr] UNTIL|WHILE log_exp DATA gs_mara TYPE mara. ROWS. *FOR wa|<fs> IN itab [INDEX INTO idx] [cond] TYPES:ty_matnr TYPE mara-matnr, ty_t_matnr TYPE
ABAP 740从2013年发布至今已经过去很长的时间了,下面这张图来自SAP社区博客: ABAP News for Release 7.40 – What is ABAP 7.40? 图中的ABAP 8.0, 即现在的SAP Cloud for Customer和Business By Design后台使用的ABAP版本NGAP - Next Generation ABAP Platform,里面存在不少只在8.0版本可用的关键字和语言特性. 因为C4C和BYD的ABAP后台,客户和partn