使用ABAP代码创建SAP S/4HANA系统的扩展字段

Posted sap-jerry

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用ABAP代码创建SAP S/4HANA系统的扩展字段相关的知识,希望对你有一定的参考价值。

Besides S4 extension tool in Fiori UI, you can also create extension field in backend using report CFD_TEST.

Caution

(1) NEVER run it in development system like ER9 and AG9 currently! If you want to test your extension CDS view for POC, contact me first.

(2) Avoid to create too many extension fields which might have negative impact on system performance.
Run report, specify mandatory field as example below.

技术图片

As I mentioned in this link, the extension field generation is done in ASYNCHRONOUS way - technically speaking, it is finished in a background job automatically scheduled and released via extension field framework.
You can debug to get the exact job id:

技术图片

Sometimes it takes long time to get your extension field generated and published, it is simply because there is no more background job processor with status "Free". In this case you can do nothing but wait until other job is finished.

技术图片

How to check your field generation job status

select the job and click button "Job log":

技术图片

Here you can monitor job execution detail:

技术图片

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
技术图片

以上是关于使用ABAP代码创建SAP S/4HANA系统的扩展字段的主要内容,如果未能解决你的问题,请参考以下文章

如何在SAP S/4HANA Cloud系统里创建employee

使用ABAP代码返回S/4HANA Material上维护的Attachment明细

SAP S/4HANA Cloud 系统集成的一些场景介绍

SAP S/4HANA扩展字段创建过程的单步调试

SAP S/4HANA系统Fiori UI上Adapt UI按钮显示与否的控制逻辑

SAP Cloud Platform和S/4HANA的互联