Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3132

Re: Enhancement to change Breakdown Duration from Hours to Minutes in TCode IW28 and IW29 (PM Notification)

$
0
0

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:

 

sdn1.JPG

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.

 

bd min.JPG

 

With Regards,

Sudhir.


Viewing all articles
Browse latest Browse all 3132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>