Hi Frnds,
As per my requirement, I've found the solution for adding two more fileds which will show you Breakdown Duration in Minutes and respective Units.
Kindly find the details below:
1. Add the respective fields to Standard structure: RIHQMEL_LIST
2. As per the above BADI details, pass those two field values to the Structure, then to the Internal Table.
Sample Code:
FIELD-SYMBOLS: <ls_rihqmel> TYPE rihqmel_list.
ASSIGN cs_object TO <ls_rihqmel>.
CHECK <ls_rihqmel> IS ASSIGNED.
<ls_rihqmel>-zzauszt = lv_e_time_diff.
<ls_rihqmel>-zzmaueh = 'MIN'.
MOVE-CORRESPONDING <ls_rihqmel> TO cs_object.
3. Procedure to convert into Minutes:
a. Collect the details of Malfunction Start Date/Start Time/End Date and End Time.
b. If all above values are not initial, then use the FM: L_TO_TIME_DIFF
c. Then Round Off that Value, FM: ROUND
Find the final output picture below.
With Regards,
Sudhir.