
My Timesheet App - S/4 HANA Version 3 - With this app, as an employee, you can manage your time entries quickly and efficiently using your desktop or mobile device.
Problem: ‘My Timesheet’ Fiori App at times takes considerable amount of time to load and record the time. Also, when the application is reloaded, then some of the text descriptions gets disappeared.
Analysis: We analyzed the ABAP trace and found that the search help view, and the selection method table associated with the Timesheet fields is comparatively taking more time.
Help view for the UI field is maintained in the SPRO path - SAP Customizing Implementation Guide->Cross-Application Components->Time Sheet->Specific Settings for CATS regular->CATS regular (ITS)->Modify Possible Entries Help
Figure 1
Also, we noticed that during the Application initial load, standard code fetched 1000 records (max limit set as 1000). Now, if the field value is not within these 1000 records, then the corresponding text description does not appear in the UI.
On debugging the standard, it has been found that although the values (for example UI field Receiver Cost center) are passed from the UI but it is not passed in the where condition in the dynamic select query of the Help view table. Hence it is fetching all the records based on the maximum limit set and increasing the overall execution time.
Figure 2
Below in Figure 4., we can see that LT_SEARCH_SELECTION is having the key and value, but the UI field name (here RKOSTL) is not same as the technical field name which is KOSTL [see Figure 3 line# 426], hence it is not correctly mapped and passed in the where condition. This means that for all the fields where the UI field name and the technical field name are not same, it will cause the same issue.
Figure 3
Figure 4
Solution: We found the BADI HCMFAB_B_TSH_PICKLIST_TXTFLTR and in the implementation method IF_HCMFAB_TSH_PICKLIST_TXTFLTR~SEARCH_BY_TEXT replaced the UI field name with the SAP Technical field name…in the above example, RKOSTL [UI field] replaced with KOSTL [SAP field]. Finally called the standard FM HCMFAB_CATS_GET_VALUEHELP1 to get the results. Now it will fetch only the specific entries as passed in the selection and hence improve the overall performance. As the results fetched having all the time record entries so the text description will also appear in the UI.
Note: In the BADI, we introduced a check so that above logic applies only for the fields where the UI and the technical field names are different. For all other fields, standard determination will happen.
Thank you!
--Jagdish Panjwani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
16 | |
10 | |
9 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 |