Skip to Content

SAP S/4HANA Cloud Key User Extensibility – Custom business object – Creating Code List Values – Part 2

Target Audience – Key Users of SAP S/4HANA Cloud and Developers

Blog applicability – SAP S/4HANA Cloud 1702, SAP S/4HANA Cloud 1705 and SAP S/4HANA Cloud 1708

In this part of the blog series, we will now see how to create a custom code list for a custom business object and will go through all the steps. Please note that you should have the pre-requisites already in place as discussed in the part 1 of this blog series.

Let’s go through the steps and see how to create a custom code list value –

Log on to you SAP S/4HANA Cloud system. Once logged in you will arrive at your home page (Fiori Launchpad). Look for the tile ‘Custom Business Objects’. Normally, it should be under the group Extensibility.

If not, then it would be under a custom group defined by your administrator. If you are still not able to find it, then use the search bar.

This should bring up the tile, as shown below

Click on the tile and you would arrive inside the application. Inside, you would notice two tabs – Custom Business Objects and Custom Code Lists.

Custom Business Object – We will use this to create a new custom business object

Custom Code List – This is like creating predefined set of values for the fields in the custom business object. This is akin to providing an F4 to the user for a field on the UI, something like fixed value help.

Let us now think of a custom business object which can be used to store supplier information. This custom business object will have a parent node to store the basic supplier information and a sub-node to store supplier role information. The structure would look like below –

Root Node (Supplier) Fields Length / Data Type Custom Code List
Supplier ID 20 / Char No
Supplier First Name 30 / Char No
Supplier Last Name 30 / Char No
Supplier Account Group 4 / Char Yes
Supplier Country 20 /Char No
Sub-Node (Role) Supplier Role 10 / Char Yes
Role Valid From Date No
Role Valid To Date No

 

Let us first start with creating custom code list values for field Supplier Account Group and Supplier Role.

Choose the tab – Custom Code List and click on New

Start with the General Information tab, where you would provide a name to the code list and length.

Click on next tab Code Values and then click on New

Enter some code values for this code list. For example, like below, we have provided 3 code values

In the next tab, you can maintain the Translation for the for the code values. However, this is not mandatory. Just click on New if you want to maintain the translations.

Once this is done, click on button ‘Save and Publish’. This would publish the new code list and would be available for use later during custom business object creation.

The status will be published, if all goes through successfully.

Let us now go ahead and create new custom code list – Supplier Role. In the similar fashion as above, click new and then provide the coded list values.

Once done, Save and Publish to make the changes effective in the system.

Ok this completes the steps required to create custom code list values that we will now use during creation of custom business object in the next blog.

 

Congratulations you have successfully understood the basics of creating custom code list values in SAP S/4HAHA Cloud!

Rohit Khan, S/4HANA Regional Implementation Group

 

For any clarification or support, feel free to reach rohit.khan@sap.com

 

Link to Part 1 of this blog can be accessed from here –

SAP S/4HANA Cloud Key User Extensibility – Introduction to Custom Business Objects – Part 1

Link to Part 3 of this blog can be accessed from here –

SAP S/4HANA Cloud Key User Extensibility – Create Custom Business Object – Part 3

Link to Part 4 of this blog can be accessed from here –

SAP S/4HANA Cloud Key User Extensibility – Maintain data in Custom Business Object – Part 4

 

 

 

 

 

 

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply