
SAP Cloud development has lot of interesting and undocumented features. One for such example is Field Transformation.
This document gives you an idea on how to use it and where to use it.
Using field transformations, you can avoid lot of extra fields which are basically calculated. Calculation can mean anything here based on your operation.
Let us take a small example to see how it works.
Example: To display logon language of user, you don't need to write an absl script always. If you want to render it on the UI, then UI layer can do the same job as absl does.
With the assumption that you've defined your BO and opened your QAF/OIF screen in UI Designer and switched to Data Model, follow these steps:
Step 1: Create a new field in your DataModel and set the DedicatedField (LogonLanguage) property to true.
Ste 2: Switch to Controller tab and create a New FieldTransformation.
Step 3: In the next screen that you see, set the field values as shown in the below screenshot (where TargetField is the one which you created in Step1)
Step 4: That's it. It just works with what you've done till now. Bring the DedicatedField (LogonLanguage) on to the screen where ever you want and preview the screen.
If you ask me, " Okay. We are done with SimpleExample. Now what? How complex can this thing go? ", my answer would be " I am here to help you to make a good start. There are lot of other reusable functions which might help your use case which you'll have to dig it out yourself buddy. "
It is just not the case that you need to use the UI layer functions always. If you want to bring up something on to the screen which is an outcome of your absl code, even that is possible.
Is this the only advantage of such a useful feature? Well, fortunately, NO!
As the title of this document talks about using Field Transformation but not in UI Designer alone. So, here you go with another way where you can make a good use of Field Transformations.
End of story pal! Let me know if this could be done in a better way or something needs to be added. Thanks for going through.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
7 | |
7 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |