on 03-26-2015 10:07 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks possible with user-exit QQMA0025, where you need to give your logic for these values to be filled. This is Notification level Enhancement, once achieved the data should flow to Order also. Explore the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.