Custom MDF Object Creation: |
As per the SAP Best Practices When the object is not fitting into a standard
SAP system based on the client requirement, we create the custom object.
For example: Client has Appreciation
policy in their company: Under Appreciation Object client require the below
fields and drop-down values as
Fields
Date:
Name (Employee Name):
Appreciation Type:
Attachment:
Appreciation Types:
Letter,
Family Dinner,
Gift Card or Coupons etc.
For Example:
W Employee
X Employee.
Y Employee (Approval 1) (Manager)
Z Employee (Approval 2) (HR)
As per the above scenario W wants to appreciate X with Family Dinner
and W has sent an appreciation request. Now, Y can Approve it or Edit
appreciation type as Gift card and given approval to it and finally sent for
the Z (HR approval).
How to create custom object?
Steps to Follow:
Login to the system >> Search Action Tool as >> Configure Object Definition >> Create New
Object Definition. Below is the screenshot
Create a Custom Code: Appreciation987
Effective Dating:
Note: Whenever you want to create a
custom object the effective dating plays a vital role. So, under Effective
Dating Field you have Dropdown list as
No selection
From parent
If you want to select the from parent option, you need to create a
parent object for child object Appreciation987 (here comes the Association concept)
None: Non-Effective Date Portlet
Basic: Effective Date Portlet
Here comes the Effective & Non-Effective Date Portlet concept.
So, you can choose whether you want None or Basic option.
Multiple changes per day Below is the screenshot
If you want to give appreciations to many then this Multiple Changes
per day option can be given. So, Multiple Changes Per day option is also an
Effective Dating Portlet. Whatever the mandatory fields required in the
Multiple changes Per Day portlet the information should be given. (Observe in
the below screenshot)
API Visibility:
No Selection
Editable
Read only
Not Visible
API Visibility is used for the API Integrations whether the data
replicates to the API system or not: So, always we can go with Read only Option,
so that no one can edit the system.
Label: Appreciation
Pending Data: Yes
Whenever you create the workflow at that time the workflow will
trigger. If you want to go with the pending data as YES, the workflow which you
have assign in the Business Rule then it will trigger.
For Example: You created workflow and the
business rule, but the workflow is not triggered then what is the issue? So, In
the Object level you need to maintain the drop down value as YES.
To do Category: Employee Change Requests.
Whenever you want to create a custom object always you must go with
the option in the dropdown value as Employee Change Requests.
Please
observe the below screenshot.
Standard Fields:
For External code, the >>Data type should always be
>>User. So that it can be visible to the employees.
For External Name, the >>Data Type given as >>User
>> Details >> Label: can be given Employee Name & >> In
Translations >> Default Value also can be given as Employee Name.
For effective Date, the >> Data Type >> Date >> Details
>> Label: Date >> Required as >> Yes
Create Appreciation Type >> Maximum Length to 256 >>
Data Type should be given as >> Picklist.
Now create Remarks >> Data type as >> String >>
Details >> Label: Remarks and Mandatory field is required you can mention
it as Yes in Required field.
Now create Attachments >> Data Type as >> Attachment
>> Details >> Label: Attachment and Required field >> Yes.
Whenever you want to create the field name, space is not required.
Now Open a new window>> Go to Admin center >> Search for
the tool called Picklist Center >>
Create New Picklist (+)
If already picklist created, you can choose the picklist or else you
can create new one.
Below
screenshot you can observe already Picklist Values are created.
Once the Picklist, Picklists values and the objects created.
Go to Security section >> In Secured mention it as>> Yes
(In RBP we must create the Permissions) we can pick any of the
permissions
In Permission Category >> Select >>Miscellaneous
Permissions
So, at the time of RBP you need to give the same permissions which
you have selected in the permission category.
And Now Save the Object. Below is the screenshot
Once we create the object, fields, Picklist and Picklist Values, we
need to create the workflows.
To create the workflow, Go to Admin Center >> Search for the
tool called >> Manage Organization Pay &
Job Structure.
Create Workflow ID >> Name >> and Workflow Step 1 as
Manager Manager and Step 2 as Employee HR. Please observe the above/Below screenshots
Once we create the workflow, we need to create the Business Rules.
For Business Rules: Go to Admin Center >> Search for the tool
called >> Configure Business Rules. For all Business rules we create in the same
Configure Business Rules Tool. Below is the screenshot
Select Metadata Framework >> check mark Rules for MDF Based
Objects.
Under Rules for MDF Based Objects >> Give Rule Name as
Appreciation 2021 >> Rule ID as Appreciation 2020 >> Start
Date>> Base Object: Select the Object you created as
>>Appreciation987 >> purpose >> Workflow >> Continue. Observe the
below screenshot.
If condition & Then condition: If condition, make it as >>
Always True.
Then condition make it as >> Set >> Workflow
Configuration >> to be equal to >> Value >> Appreciation
Object which you have created will be visible here.
If anyone wants to change the workflow automatically it triggers.
Save the Business Rule.
Once you save the Business Rule: Go to Admin Center >> Configuration Object Definition >> Under
Save Rule >> Select the Business rule you created. And Finally Save the
changes.
Now the Business Rule is Saved & Assigned: You can observe the
Green color tick mark in the Round.
Once the Business Rule is Assigned: You cannot delete the Rule
Go to take action option as Permanently delete the rule and check.
It asks for the confirmation whether to delete it or proceed.
Let us say proceed to delete: It is still given an error message saying that this role is assigned and cannot be deleted. To delete you must unassigned the rule.
If you want to delete the business rule, firstly you need to
unassign the rule.
Once You complete all the following steps like creating Object,
Picklist, Picklist Values, Creating the workflow, creating the Business Rules,
Assign the Business Rules to the created object.
Now we need create the UI Screen: To create the UI Screen>> Go
to Admin Center >> Search for the tool called >> Manage Configuration UI
Once you Create new and give the Base Object: Whatever the Object
and the fields we created can be visible here: Please refer to the below
screenshot.
If Require you can change the properties under the Edit Properties
tab.
Once you click the Edit Properties: You can change the layout style
of the screen
Once you create the UI Screen and Screen ID: Save
Go to Admin Center: >> Search action as >> Configure People Profile
As of now we have created Object Configuration, Configured in the UI
Screen and People profile. Whatever we have created the same we are going to
give the Role Based Permissions (RBP)
To Create the RBP >> Go to Admin >> Manage Roles
Permissions.
To create custom Object: We need to go with the 4 Configuration
steps & Assign to the Employee Profile.
4 Steps to Create the Custom Object Configuration:
Under Custom Object creation: Create the Fields as per the client requirement.
Configure the UI Screen
Configure the People Profile
Role Based Permissions (RBP)
No comments:
Post a Comment