Skip to Content
Technical Articles
Author's profile photo Andrea Langlotz

Adding Custom Fields using Key User Extensibility for Project System in SAP S/4HANA

Adding custom specific fields is one of the most common requirements in customer projects. In Project System predefined User Fields are available that can be adjusted by customers, however in case the customer needs additional or different fields, these fields had to be added by the IT department.

SAP S/4HANA Key User Extensibility has been introduced as an easier way to add additional fields to objects and include them into the respective Fiori UIs just using configuration. This enables key users to make simple adjustments to user interfaces without having to reach out to the IT department. For more details on the Key User Extensibility, check out this blog series by the S/4HANA Regional Implementation Group.

For Project System Key User Extensibility is supported for Fiori Apps and with SAP S/4HANA 2020 FPS2 for most relevant maintenance transactions, such as Project Builder or single maintenance transactions.

In this blog, I will show an example how to extend the Project System maintenance transactions with a new field for WBS elements.

To define a custom field, use the SAP Fiori app Custom Fields and Logic. For Project System in S/4HANA the following Business Contexts are relevant

  • Project Definition Details
  • WBS Element Details
  • Order Master Data (i.e. Network Header)
  • Network Activity Details
  • Project Milestone Details
  • Project Material Component Details

To add the example field ZWBSLocation to the WBS Element, the relevant business context is WBS Element Details. I define field properties such as Label, ID, Tooltip, Type and Length for the new custom field, in this example ZWBSLocation is a Text Field with 20 characters length.

Definition of Field Properties for custom field

When the field is created, I select in which UIs the custom field shall be displayed via the Tab UI and Reports. In this example I only enable the usage of the new field for the maintenance transactions, i.e. WBS Element Details GUI.

Enable%20Field%20for%20User%20Interface%20and%20Publish

Once I publish the new field it will be available in the extension include and the enabled user interface.

Extension%20Include%20in%20PRPS

In the WBS Element details screens a new Tab Custom Fields is available, displaying the custom fields created via Key User Extensibility. The tab is e.g. available in Project Builder as displayed below, but also in other maintenance UIs such as Change WBS (CJ02) or the details popup in the Project Planning Board.

Custom%20Field%20in%20Project%20Builder

Key User Extensibility fields are also included in archiving, substitution and validation and project versions/simulations. For Project and WBS Element the extensibility fields can be exposed via the published read API, but not via the BAPIs.

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Ait Boudaoud Boubekeur
      Ait Boudaoud Boubekeur

      Dear Andrea,

       

      Many thanks for sharing, we are looking for setting up WBS custom fields but we don't see the line 'enable WBS Elements Details Gui' line in the UI & Reports tab of the custom field and logic App. We are on S4 HANA 2020 OP version, is this possibility planned to be delivered on S4 2021 OP release?

      Br,

      Boubekeur

      Author's profile photo Andrea Langlotz
      Andrea Langlotz
      Blog Post Author

      Hi Boubekeur, for GUI it is available as of SAP S/4HANA 2020 FPS2.

      Regards, Andrea

      Author's profile photo Paulo Vitoriano
      Paulo Vitoriano

      Dear Andrea,

      The last sentence is mentioning the unavailability for the BAPI, I guess the consequence is that fields cannot be updated via CNMASS or similar developments that use BAPI.

      Would you recommend any tool for mass updates of such fields?

      Thank you,

      Paulo

      Author's profile photo Ahmed GHARIB
      Ahmed GHARIB

      Hi Andrea,

      Thanks for sharing this info.

      What is the suitable way to add the fields added by custom fields and logic app. to the BAPI.

      as we have a customer that is using S4 HANA 2021 OP, we added a field to the project material component, but there is no option to add this field to the BAPI from the custom field and logic app.

       

      Thank you,
      Ahmed Gharib

      Author's profile photo Andrea Langlotz
      Andrea Langlotz
      Blog Post Author

      Hi Ahmed, as mentioned in the blog, the key user extensibility fields are not supported for BAPIs. They can however be used in the OData APIs. So far CRUD APIs are available for Project and WBS, as part of the roadmap it is planned to provide also APIs for Networks which would include the project material components.

      Regards, Andrea

      Author's profile photo Ahmed GHARIB
      Ahmed GHARIB

      Thanks, Andrea for your reply,
      I think it is clear now and I hope this functionality will be improved more in the upcoming releases

      best regards,

      Ahmed Gharib