且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-01-24 00:11:21

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.

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

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:

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

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.

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

How to check your field generation job status

select the job and click button "Job log":

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

Here you can monitor job execution detail:

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

本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。