Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit for Save IW31 (Service Notification)

Former Member
0 Kudos

Hello,

exist an user exit after saving the service notification (IW51). I did not mention the user exit ZXQQMU20 (Check Notification before save).

Kai

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Please check these.

Enhancement

IWOC0004 Change single-level list editing PM/QM/SM ALV settings

IWOC0003 PM/SM authorization check of ref. object and planner group

IWOC0002 PM/SM notification: Check whether status change is allowed

IWOC0001 Create PM/SM notification: Determine reference object

IWO10027 User exit: Generate user-defined settlement rule

IWO10026 User check on setting status 'Do not perform'

Business Add-in

NOTIF_AUTHORITY_01 Additional Authorization Checks for the Notification

IQS0_STATUS_MAINTAIN Control of Changeability of User Status

IWO1_SUBSCREEN_0170 Display Additional Data on Object Screen 0170 PhysicalSample

IWOC_LIST_TUNING Performance Tuning for Lists in PM/CS

IWOC_OBJECTINFO_CHNG Changes to Data of Object Info Screen

WOC_FL_DETERMINE Determine Date for Determining Installation Loc. Equi.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Please check these.

Enhancement

IWOC0004 Change single-level list editing PM/QM/SM ALV settings

IWOC0003 PM/SM authorization check of ref. object and planner group

IWOC0002 PM/SM notification: Check whether status change is allowed

IWOC0001 Create PM/SM notification: Determine reference object

IWO10027 User exit: Generate user-defined settlement rule

IWO10026 User check on setting status 'Do not perform'

Business Add-in

NOTIF_AUTHORITY_01 Additional Authorization Checks for the Notification

IQS0_STATUS_MAINTAIN Control of Changeability of User Status

IWO1_SUBSCREEN_0170 Display Additional Data on Object Screen 0170 PhysicalSample

IWOC_LIST_TUNING Performance Tuning for Lists in PM/CS

IWOC_OBJECTINFO_CHNG Changes to Data of Object Info Screen

WOC_FL_DETERMINE Determine Date for Determining Installation Loc. Equi.

0 Kudos

Thanks Vinraaj,

another question. Following problem. I create with IW51 a service notification, insert the necessary information, release the service order and then put the button technical completion. With technical completion the service notification will be saved. Then the system-user (sy-subrc) should be insert automatically into the partner (table ihpa) as partner role "Responsible user = VU".

Here is the coding (Include: ZXQQMU20)

if i_viqmel-qmart = 'K1' and sy-ucomm <> 'RW00'.

lf_text = '(SAPLIPAR)xihpa[]'.

assign (lf_text) to <ls_gt_xihpa>.

check sy-subrc = 0.

lt_xihpa[] = <ls_gt_xihpa>.

    • Prüfen, ob bereits ein Partner manuell eingetragen wurde.*

read table lt_xihpa with key objnr = i_viqmel-objnr

parvw = 'VU'

kzloesch = ' '

updkz = 'I'.

*Partner nur nachtragen, wenn er nicht manuell eingetragen wurde und der

*Systemstatus MMAB ist

if sy-subrc ne 0 and status-stat = 'I0072' and status-inact <> 'X'.

clear: wa_ihpa.

data: subrc_1 type c,

subrc_2 type c.

"Gibt es einen Partner der gelöscht wurde aber noch nicht in der

"Datenbank zurück geschrieben wurde?

read table lt_xihpa with key objnr = i_viqmel-objnr

parvw = 'VU'

kzloesch = ' '

updkz = 'D'.

subrc_1 = sy-subrc.

" Ist bereits ein partner eingetragen?

read table lt_xihpa with key objnr = i_viqmel-objnr

parvw = 'VU'

kzloesch = ' '.

subrc_2 = sy-subrc.

if subrc_2 ne 0 or subrc_1 eq 0.

"Wird kein Datensatz gefunden, wird die Objektnummer (Verbindung zu

" Servicemeldung) mit dem höchsten Zähler als Basis genommen.

" Ein neuer Datensatz mit VU = Sy-uname wird angehängt.

sort lt_xihpa by counter descending.

read table lt_xihpa index 1.

move-corresponding lt_xihpa to wa_ihpa.

wa_ihpa-mandt = '200'.

wa_ihpa-objnr = lt_xihpa-objnr.

wa_ihpa-counter = wa_ihpa-counter + 1.

wa_ihpa-parvw = 'VU'.

wa_ihpa-obtyp = 'QMI'.

wa_ihpa-parnr = sy-uname.

wa_ihpa-ernam = sy-uname.

wa_ihpa-aezeit = sy-uzeit.

wa_ihpa-aedat = sy-datum.

wa_ihpa-aenam = sy-uname.

wa_ihpa-kzloesch = ' '.

insert into ihpa values wa_ihpa.

sy-subrc = 0.

endif.

endif.

endif.

The dataset is found but with "Insert into ihpa value wa_ihpa" the table ihpa will not be updated. Why is this the case? If I create a service notification, save it and then put it onto release and technical completion it works. But during the process creating the service notification it does not work! Am I in the right user exit? Which of the user exits you told me fit best?

0 Kudos

Hi,

To find the correct exit, put a break point inside your code and execute the t-code. If the control stops at the break point, then it is the correct exit.

Also try using APPEND statement instead of INSERT in your code shown.

0 Kudos

Hi again,

instead of the following statement insert into ihpa values wa_ihpa

I try this: APPEND wa_ihpa TO lt_xihpa.

Won't work! Any other ideas? The data set is found, but the internal table lt_xihpa will not be updated. It is really weird for me.

0 Kudos

Hi,

I hope ur talking of service notification , If u want to put system user as default partner then try user exit QQMA0019 QM/PM/SM: Default Partner when Creating a Notification

regrds

pushpa