Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Mal function data and Breakdown duration

Hi gurus,

I have this requirement to let the system indicates the malfunction data automatically (At the order level). Is it possible ? what i can define as a date for the malfunction data if is it possible (BP).

This what i have :


Waiting for your answers,
Kind regards,

Karim Es.

Former Member
replied

Here is the sample code to be written in the include ZXWOCU21 of user-exit QQMA0025, I saw it working.


IF I_VIQMEL-QMART = 'M2'.

   E_VIQMEL-AUSVN = SY-DATUM - 3.
   E_VIQMEL-AUZTV = '090000'.
   E_VIQMEL-AUSBS = E_VIQMEL-AUSVN + 1.
   E_VIQMEL-AUZTB = '093000'.
   E_VIQMEL-MSAUS = 'X'.  


ENDIF.


Notes

1. This works as per your requirement.

2. The first and last lines limit this code to M2 notification type.

3. The right side value-logics of the code lines 03, 04, 05, 06 are to be given by you as per your default requirement. I have just given the Malfn Start date as 3 days earlier to present day and Malfn End date as One day after Malfn start date.  Similar logics to be incorporated for these 4 fields. (Dates and Times).

4. All fields i.e., 4 Date,Time fields, and Breakdown tick  field (MSAUS) will be defaulted as you enter the Order create screen (IW31), but for the value in duration field, you need to remove the value in the Duration Unit field once and re-enter the same. As soon as you do this, the Breakdown duration field will be populated as per the re-entered unit (H or MIN etc).


Hope this helps.



KJogeswaraRao

Message was edited by: Jogeswara Rao Kavala after Code was simplified

2 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question