SAP S/4HANA Coding block and extension to Fiori
I am writing this blog about coding block in S/4HANA Finance and how we can extend it to Fiori and other reporting tool provided by standard SAP.
What is coding block
SAP allows to have additional dimensions to be captured for the financial posting. This will allow business to add reporting dimensions needed which cannot be catered by say existing fields ( e.g. profit center , text , assignment etc.).
Example can be Depot number for a downstream O&G business or Maturity date for a trading business.
Capturing this data as level of journal allows Finance team to perform analysis and downstream activities ( consolidation etc.)
How do we set it up
Enabling Coding block is not changed ( in term of configuration node) from SAP ECC,
The node is present in Customer fields and under edit coding block.
Once created the field is updated in ACDOCA & BSEG along with COBL structure which is referenced by multiple views ( reporting) and structures & tables ( e.g. MSEG)
I will not go deep in the steps as it is pretty much the same as it was years ago.
Enabling for Fiori reporting ( for Coding block fields)
This is part which is quite interesting as you can use standard features provided by SAP and enable reporting on the coding block fields.
SAP provides an extensibility feature ( read this below blog from Ulrike -https://blogs.sap.com/2017/01/20/sap-s4hana-extensibility-tutorial/).
This can be used for coding block too and then enable reporting tiles
e.g. G/L Line item reporting view:-
Or Trial balance tile:-
Steps to be followed
The below items assumes that the coding block field is defined and field is available in ACDOCA.
Steps 1- Run SCFD_EUI to enable fields for custom fields and logic.In this step you can select the field and enable it.
Once you execute the program you can select the field and enable the field.
Enabling for one structure will enable the coding block field for other structures
2) Enable the field in Fiori tiles- You will need Fiori basis role for below task.
The two key tiles needed are shown below:-
2.1) Register field for transport- As shown below, you will have a transport linked to your coding block field.
2.2) Custom field and logic- In this tile select the field and enable for different Fiori apps.
As shown below, you will see the list of the available coding block fields and you have option to publish the field.
Once you publish you will also have option to enable the field for the reporting tile.
So as shown below we have option to enable the coding block field on the Fiori tile e.g. Clear Gl account etc.
This way you can help your client and business counterpart to use the additional dimensions provided in SAP and avoid performing any custom developments or reports.
This also helps use the existing Fiori tiles in optimal manner and ease the reporting needs.
I would like to thank Adam Gilbert who showed us how the above steps are done.
I hope you find this blog useful and help your clients in optimizing their financial system on S/4HANA.