Skip to Content
0

auto update date and time in IW21

Jun 08, 2017 at 10:03 AM

128

avatar image

I want to auto populate start date and start time in IW21 with notification type 'n1' after filling notification type in initial screen but i am not getting any BADI for enhancement. Please suggest .

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

2 Answers

Raymond Giuseppi
Jun 08, 2017 at 12:12 PM
0

Did you also look fof good old customer-exits of the (SMOD) enhancement IWO* ?

Show 2 Share
10 |10000 characters needed characters left characters exceeded

I had checked exits but not find any exit to update filed according to my requirement.

Start Date:VIQMMA-PSTER=>AUSVN
Start Time of Activity:VIQMMA-PSTUR=>AUZTV
End Date:VIQMMA-PETER=> VIQMEL-AUSBS=>AUSBS
End Time of Activity:VIQMMA-PETUR=>RIWO1-EQUNR=>AUZTB

0

Your initital post only provided notificaiton type as input?

Do you actually want to copy dates from activity (first one?) to the notification, if yes could you consider NOTIF_EVENT_SAVE (IF_EX_NOTIF_EVENT_SAVE->CHANGE_DATA_AT_SAVE)

NB: for this BAdI the notification type (e.g. 'N1' in your post) serves as the filter variable.

0
K Jogeswara Rao Jun 09, 2017 at 11:19 AM
0

You need user-exit QQMA0025.

Here in the include ZXWOCU21 you need to give code like this.

IF i_viqmel-qmart = 'N1'.
  e_viqmel-strmn = sy-datum.
  e_viqmel-strur = sy-uzeit.
ENDIF.
  • I am assuming that you are talking about fields Required Start Date/Time. System defaults these values with current date/time, there is no need of exit. If your default requirement values are different, you need to pass those values in place of sy-datum, sy-uzeit in the code above.
  • However, above example helps you for defaulting other fields of a Maintenance Notification while creating (IW21).


Just for info:

If it is the case of a Quality notification (QM01) the exit would be QQMA0007.

Share
10 |10000 characters needed characters left characters exceeded