当前位置: 首页 > news >正文

SAP S4后的一些注意点(一)(更新中)

  1. SAP
    此外,我们必须确保 P10 中所有新的 Unicore 代码都是云就绪的。因此,在 ATC 中增加了一项新的检查(自定义),以证明代码的云就绪性。此外,我们还在 ADT 中安装了一个名为 ABAP Cleaner 的新插件,它也可以帮助您转换和检查代码的云就绪性(但仅限于语法检查)。可以在ECLIPSE下载这样的工具。
    地址:
    直接在eclipse输入“ https://sap.github.io/abap-cleaner/updatesite”安装新的ABAP cleaner软件.

怎么使用ABAP cleaner插件?

Select any amount of ABAP code in the current code editor in ADT - or alternatively, do NOT select any code to apply cleanup to the current method or declaration section.

(1)Automatic:Press Ctrl + 4 or select menu ‘Source Code / Clean Up With Automated ABAP Cleaner’. The cleanup will be done automatically, using the profile and cleanup range that was last selected when you used the interactive ABAP cleaner UI (see below).

(2)Inactive:Press Ctrl + Shift + 4 or select menu ‘Source Code / Clean Up With Interactive ABAP Cleaner…’. This will open the ABAP cleaner UI to compare the original and the cleaned code.

在这里插入图片描述

(Un)check the ‘Highlight …’ options to focus on certain types of changes. If you come across a changed statement which you prefer to keep in its original state, simply deactivate the applied rule(s) in the ‘Rules Used in Current Selection’ list for this statement. You may also configure or select a different profile for the cleanup.

Press Ctrl + Enter or click ‘Apply and Close’ to apply the result and return to the ADT editor; to discard the changes, press Esc or click ‘Cancel’.

(3)Read-only:
Press Ctrl + Shift + 5 or select menu ‘Source Code / Show Read-Only Preview With ABAP Cleaner…’:

This opens the interactive ABAP cleaner UI as described above, but the code will not be locked or changed. Nevertheless, changes to ABAP cleaner settings (selected profile, activated rules and options etc.) will be kept.

The read-only preview also allows you to paste other ABAP code (e.g. from SAP GUI) into the ABAP cleaner UI by pressing Ctrl + V or selecting menu ‘Code / From Clipboard’, or to read code from a file with ‘Code / From File…’.

2.尽量不直接从底层透明表拉数据

.尽量不直接从底层透明表拉数据 ,尽量用CDS视图代替底层数据表,根据业务需求选择适合的CDS view。
还有要注意的是,新的关键字WITH PRIVILEGED ACCESS可以关闭CDS的访问控制。
eg:

SELECT SalesOrganization AS ckorg,CompanyCode AS bukrsFROM i_salesorganization WITH PRIVILEGED ACCESSWHERE SalesOrganization IN @mt_r_vkorgINTO TABLE  @mt_vkorg.
http://www.lryc.cn/news/223184.html

相关文章:

  • Python高级语法----深入asyncio:构建异步应用
  • 5-爬虫-打码平台、打码平台自动登录打码平台、selenium爬取京东商品信息、scrapy介绍安装、scrapy目录结构
  • HTTPS 的工作原理是什么?
  • 【STM32】TIM2的PWM:脉冲宽度调制
  • DRF 学习
  • 2023年双11有哪些便宜的云服务器值得推荐?
  • [Java/力扣160]相交链表
  • LLVM学习笔记(60)
  • Linux命令查看pcap包报文数量、包体包含内容、包长
  • C++二分算法: 找出第 K 小的数对距离
  • 【计算机网络笔记】网络层服务模型——虚电路网络
  • 软文推广过程中,如何精准定位受众
  • 说说对React中类组件和函数组件的理解?有什么区别?
  • Unity 实例化物体以及赋予到父物体之下
  • Docker 介绍
  • VScode连接Xshell 并解决【过程试图写入的管道不存在】报错
  • Redis之事务
  • 【数据结构】树与二叉树(五):二叉树的顺序存储(初始化,插入结点,获取父节点、左右子节点等)
  • 【HarmonyOS】HarmonyOS备案获取公钥和指纹
  • ,多数据源+Mybatisplus + Sharding JDBC同一库中分表
  • Docsify 和 Hugo 之间的选型
  • 第二十章 ObjectScript 应用程序中的数值计算 - 转换:十进制到 $DOUBLE
  • C语言【趣编程】我们怎样便捷输出空心的金字塔
  • 《JavaScript设计模式》笔记 - - - 超全设计模式概览
  • 浅谈Vue 3的响应式对象: ref和reactive
  • 怎么学编程效率高,编程练习网站编程软件下载,中文编程开发语言工具下载
  • Alphago Zero的原理及实现:Mastering the game of Go without human knowledge
  • STM32 堆栈空间分布
  • 小程序制作(超详解!!!)第十五节 自动随机变化的三色旗
  • MySQL_主从复制_环境搭建