Custom Fields in SAP S/4 HANA PUBLIC CLOUD
Share

Introduction

In Key User Extensibility,  Custom fields can be added using Custom Fields App.

Custom Fields in SAP S/4 HANA PUBLIC CLOUD

Custom Fields is one of the Key User Extensibility Tools                        

In the Custom Fields App, 

  • Create and edit custom fields (extend the SAP table, application, CDS views and OData services)
  • Delete an existing custom field
  • Manage the usages of a custom field such as other Uls, reports, forms, service interfaces, processes, search
  • Define fields of type Text, number, amount, quantity, time, date, timestamp, …
  • Value help views based on fixed code list or based on CDS view.

Steps to Create Custom Fields

Navigation to Custom Fields App

YogiPavan_0-1763654828786.png

Custom Fields App

YogiPavan_1-1763654828790.png

Click on Create

YogiPavan_2-1763654828793.png

YogiPavan_3-1763654828800.png

Choose Required Business Context

YogiPavan_4-1763654828811.png

YogiPavan_5-1763654828818.png

Add Label name (Identifier, Tooltip appears automatically based on given label name).

Choose Type of a Custom Fields.

YogiPavan_6-1763654828825.png

Here Phone Number is chosen, System automatically assigns length of it.

If Text Type is chosen, then manually length should be given.

Based on the length of a field, business context capacity will be increased.

Available Types for the field

YogiPavan_7-1763654828833.png

YogiPavan_8-1763654828845.png

Choose Create or Create and Edit options

YogiPavan_9-1763654828849.png

Choose APIS

YogiPavan_10-1763654828857.png

To expose custom fields through APIs, ensure the necessary APIs are enabled so the fields become accessible.

YogiPavan_11-1763654828870.png

To display custom fields in the SAP GUI, make sure the relevant data sources are enabled so the fields appear on the screen

YogiPavan_12-1763654828882.png

Enable the SAP GUI

YogiPavan_13-1763654828893.png

To expose custom fields through services, ensure the necessary service are enabled so the fields become accessible.

YogiPavan_14-1763654828912.png

To make custom fields available in form templates, enable the appropriate templates to ensure the fields are accessible

YogiPavan_15-1763654828918.png

General Information provides information of the custom fields with all label texts

YogiPavan_16-1763654828923.png

Different Labels can be maintained for a custom field.

YogiPavan_17-1763654828926.png

Custom field is added in the Purchase Order Header Screen.

YogiPavan_18-1763654828932.png

Extended CDS View of Custom Field

After Creating Custom field and enabling related CDS View or API, that CDS View will be extended with that custom field.

YogiPavan_19-1763654828939.png

YogiPavan_20-1763654828946.png

For every custom field, separate Extended view will be generated.

Select the Extended view, it shows the custom field.

YogiPavan_21-1763654828951.png

The custom field is added in the Extended view of Purchase Order CDS View

YogiPavan_22-1763654828954.png

References

Conclusion

Using Custom Fields App,

Custom fields can be added to the UI.

Create and edit custom fields and Delete an existing custom field.

Value help views can be added to the custom fields.

Custom fields can also be added to the custom forms.

 

 

  Read More Technology Blog Posts by Members articles 

#abap

By ali