Skip to Content

auto update date and time in IW21

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 .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 08, 2017 at 12:12 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • Jun 09, 2017 at 11:19 AM

    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.
    • 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.

    Add comment
    10|10000 characters needed characters exceeded