Skip to Content
-2

SAP MSS Leave Approval

Apr 06, 2017 at 11:50 AM

68

avatar image

Hi,

I need to change the column heading of Customer field provided by SAP in MSS Leave approval screen - " Time approval and task Reminder". In Leave Approval screen, I have added a new customer field "Customer10" by changing the view settings.

My requirement is

- Change the Column text of "CUSTOMER10" to "Notification" (Highlighted in Yellow color in attachement).

- Change the Font Color of the column "CUSTOMER10".

Could you please help me to solve the issues.

Thanks,

Ravi

mss-leave-approval.jpg

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

harish vyas Apr 07, 2017 at 05:09 AM
0

Hi Ravi,

As per my understanding, to achieve this requirement you should explore following things:

  1. Method GET_FIELD_SEL_FOR_FIELDS_CUST inside class CL_HRESS_PTARQ_LEAVREQ_GUIBBL. Do an implicit enhancement to set the value of exporting parameter to some dummy value. Example CUSTLEA.
  2. Table TPT_FILED_SEL, in this table put field_selection as CUSTLEA and screen_area as LEA.
  3. Table TPT_FIELD_SEL_C, and in this table you actually define the label against custom fields (CUSTOMER01...10) inside the combination of field_selection as CUSTLEA and screen_area as LEA.

I hope by taking these steps you can achieve the requirement.

Do let me know if this solves your issue and in case of any follow-up query.

Regards,

Harish

Share
10 |10000 characters needed characters left characters exceeded
Ravi Sirigiri Apr 07, 2017 at 06:14 AM
0

Hi Harish,

1. Method GET_FIELD_SEL_FOR_FIELDS_CUST - is used to change the field selection and not to change the field column headings.

2. The tables mentioned TPT_FILED_SEL and TPT_FILED_SEL_C are used for details screen and not for Overview screen with all the leave requests display in ALV table.

We have to change the column heading of customer field and its font color of values.

Could you please provide a solution?

Thanks,

Ravi

Share
10 |10000 characters needed characters left characters exceeded
Ravi Sirigiri Apr 07, 2017 at 06:33 AM
0

Hi Harish,

Solved the column heading by using the method "UPDATE_DEF_ASSOC_TEXT" of CL_HRESS_PTARQ_LEAVREQ_GUIBBL. I am exploring on changing the Font Color.

Thanks,

Ravi

Share
10 |10000 characters needed characters left characters exceeded
harish vyas Apr 07, 2017 at 10:07 AM
0

Thanks Ravi for sharing the solution.

As per my analysis method GET_FIELD_SEL_FOR_FIELDS_CUST is getting called inside method MODIFY_DEF_LABEL_FIELDS_CUST of class CL_HRESS_PTARQ_LEAVREQ_GUIBBL. Now if you will will put debugger inside method MODIFY_DEF_LABEL_FIELDS_CUST, then you will able to link between GET_FIELD_SEL_FOR_FIELDS_CUST / TPT_FILED_SEL and TPT_FIELD_SEL_C objects which I have mentioned in my previous answer.

Table TPT_FILED_SEL and TPT_FIELD_SEL_C are used inside FM PT_FIELD_SELECTION_GET.

I am asking you to give a try because inside method UPDATE_DEF_ASSOC_TEXT you might have done implicit enhancement i.e. might have set label for CUSTOMER1...10 field, but if you try using table I have suggested then you will achieve it via table entries, and this is why SAP have given that table.

I have checked the things only in debugging mode so maybe wrong and you can correct me.

Regards,

Harish

Share
10 |10000 characters needed characters left characters exceeded