on 11-25-2015 5:49 PM
Is there a way to define the data that gets copied when creating a new notification with reference to an existing notification?
Specifically, I do not want to copy the tasks from the existing notification.
Thanks.
Hello again Peter,
The following code in place of the previous code,
IF sy-tcode = 'IW21' AND i_viqmel-qmart = 'M2'.
DATA: BEGIN OF i_qmsm OCCURS 0.
INCLUDE STRUCTURE viqmsm.
DATA:END OF i_qmsm.
DATA: it_stat TYPE TABLE OF jstat,
wa_stat TYPE jstat.
SELECT * FROM viqmsm INTO TABLE i_qmsm WHERE qmnum = i_viqmel-qwrnum.
LOOP AT i_qmsm.
e_viqmsm-qmnum = ''.
e_viqmsm-manum = ''.
e_viqmsm-mngrp = ''.
e_viqmsm-mncod = ''.
e_viqmsm-matxt = ''.
ENDLOOP.
wa_stat-stat = 'I0158'.
wa_stat-inact = 'X'.
APPEND wa_stat TO it_stat.
CALL FUNCTION 'STATUS_CHANGE_INTERN'
EXPORTING
objnr = i_viqmel-objnr
TABLES
status = it_stat.
e_viqmsm-qsmnum = '1' .
e_viqmsm-kzloesch = 'X' .
ENDIF.
So if you want to have Tasks in the newly created Notification, first Save the Notification and Add your tasks through IW22. The bottom line is you have to make use of this exit for your requirement. Take help of your ABAPer, who will be able to do this very easily.
Good luck
KJogeswaraRao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Peter,
The following code in include ZXQQMU37 of user-exit QQMA0027, clears the entries in Tasks tab, but system has to retain the last task line (with blank CodeGrp and code) for technical reasons (Notification OSTS status). This means, suppose your reference Notification has got 10 tasks, now in the new Notification you'd see only one line with blank CodeGrp and Code values This arrangement must be useful to you.
IF sy-tcode = 'IW21' AND i_viqmel-qmart = 'M2'.
DATA: BEGIN OF i_qmsm OCCURS 0.
INCLUDE STRUCTURE viqmsm.
DATA:END OF i_qmsm.
SELECT * FROM viqmsm INTO TABLE i_qmsm WHERE qmnum = i_viqmel-qwrnum.
LOOP AT i_qmsm.
e_viqmsm-qmnum = ''.
e_viqmsm-manum = ''.
e_viqmsm-mngrp = ''.
e_viqmsm-mncod = ''.
e_viqmsm-matxt = ''.
ENDLOOP.
e_viqmsm-qsmnum = '1'.
ENDIF.
Please note the Notification type mentioned in the code above. (You may change this if yours is different).
Good luck
KJogeswaraRao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
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.