S4HANA For ABAP(1):S4 ABAP升级改变
S4HANAForABAP
1New In SAP NetWeaver 7.0 to SAP NetWeaver 7.51
1.1SAP ABAP发展历程
1.2Understanding Compiler Warnings and Suppressing Pragmas
编译时的一些警告信息,可以通过Pragmas使警告消失;
示例代码:
"test1 "Understanding Compiler Warnings and Suppressing them with Pragmas FORM f_test1. DATA:lv_val TYPE C LENGTH 10 "#EC NEEDED VALUE 'test' . "#EC NOTEXT "Pragmas,what use? DATA:lv_val1 TYPE C LENGTH 10 ##NEEDED VALUE 'test' ##NO_TEXT. DATA:lt_spfli TYPE TABLE OF spfli WITH NON-UNIQUE SORTED KEY k_sort COMPONENTS carrid connid. "DATA:ls_spfli LIKE LINE OF lt_spfli. SELECT * INTO TABLE lt_spfli FROM spfli. "没有pragmas,会有warning LOOP AT lt_spfli INTO DATA(ls_spfli) WHERE carrid = 'AA' AND connid = '0017' ##PRIMKEY[K_SORT]. WRITE:/ ls_spfli-carrid,ls_spfli-connid,ls_spfli-cityfrom. ENDLOOP. "使用key LOOP AT lt_spfli INTO ls_spfli USING KEY k_sort WHERE carrid = 'AA' AND connid = '0017'. WRITE:/ ls_spfli-carrid,ls_spfli-connid,ls_spfli-cityfrom. ENDLOOP. ENDFORM.
1.3Using the Source-Code-Based Class Builder
默认Class Builder是表格格式,通过Form-Based可以切换为Source-Code模式;
1.4Enhancing Productivity through Code Completion
代码自动补全,使用Code Completion提高代码编辑效率;
只支持微软拼音输入,需要取消Ctrl+Space热键占用;
帮助:https://blog.csdn.net/qq_30797051/article/details/123862919
1.5Providing a Type-Ahead Search Help
通过输入参数,不需要F4,自动触发Search Help;
示例代码:
"data element:zt_custom "search help:zt_scustom "advanced Options:AutoSuggest in input fields SELECTION-SCREEN BEGIN OF BLOCK blk3 . PARAMETERS:scustom TYPE zt_custom. SELECTION-SCREEN END OF BLOCK blk3.
1.6 Developing with ABAP Development Tools for Eclipse (ADT)
通过Eclipse(ADT)插件开发ABAP;
SAP Development Tools For Eclipse:http://tools.hana.ondemand.com
Eclipse在线安装ADT:
Help->Install New Software
添加对应Eclipse版本的ADT;
勾选所有->点击Next;
接受所有Certificates;
点击安装完成后重启;
Window->Perspective->Open Perspective->Other:
选择ABAP/BW Modeling/SAP HANA Development进行不同类型SAP项目开发;
1.7Working with the new Dictionary Tools in Eclipse
版本NW 7.40增加三种通过Eclipse创建的数据对象;
External View和Databas Procedure Proxy专为HANA的数据对象;
1.External View;
2.Database Procedure Proxy;
3.CDS View;
本文来自博客园,作者:渔歌晚唱,转载请注明原文链接:https://www.cnblogs.com/tangToms/p/17151809.html