cancel
Showing results for 
Search instead for 
Did you mean: 

Check Notification Fields at technically completion of the Order

Former Member
0 Kudos

Hi All,

i want to check at the technically completion of the PM-Order, if a field in the notification is filled out (for example the cause). If this field empty, the user should not be able to finish the order. Now i tried to use the exit QQMA0014, but he dont run at the completion. In the Exit "Customer Check for order completion" i cant get the notification-fields. I also cant set the field in the notification as a required field.

Any idea?

Thanks a lot for any help!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member1107731
Contributor
0 Kudos

Hi Andreas,

You can use the User Exit: IWO10004 (Maintenance order: Customer check for order completion)

and within this user exit you can call the BAPI: (BAPI_ALM_NOTIF_GET_DETAIL) to get the details of the notification but in this BAPI you have to pass on the notification number which can be passed via field CAUFVD-QMNUM and it would provide you with the details for the notification. Whatever field you want to check, you can perform the required check and raise an exception in case the check is not successful.

Regards,

Muhammad Usman Kahoot

Former Member
0 Kudos

Thank you for your support, but its not very user-friendly.

In normal case the user jump into the order and will complete it. After push the button "complete" a small window comes up.

In best case the user should insert the cause in this window, but i couldnt find a way to check this field in this window. If i use your idea, the user have to insert the cause before using the complete-button. After this he have to save the order at first and he must jump into the order a second time to complete it.

I hope i explain it clearly. Any possibility to check the cause in the second small window and not before?

peter_atkin
Active Contributor
0 Kudos

Andreas,

Am I missing something... If you want to perform the check at TECO, then the user must be in the order. Therefore you can use IWO10004 to make your checks.

PeteA

Former Member
0 Kudos

Hi Pete,

sorry, what is TECO?

Yes, of course. I use already IWO10004 to make my checks in the order when the user want to complete it. But i havent access to the notification-fields. And i want to be sure, that the user insert the field cause at the completion.

peter_atkin
Active Contributor
0 Kudos

i want to check at the technically completion of the PM-Order

You can get the notification data from ABAP memory. Talk to your ABAPers, they should know what to do...

PeteA

Former Member
0 Kudos

To get the notification data from the memory i must modify the standard? Or what do you mean?

peter_atkin
Active Contributor
0 Kudos

No need to modify the system...

You ABAPers should be able to retrieve the data from ABAP memory using standard function modules or field-symbols.

They should understand this...

PeteA

Former Member
0 Kudos

I´m also the programmer...

I modified the standard. Now i put the notification data, specially the cause-data, in the memory and when the user try to complete the order, i check this field, if its filled.

So my problem is solved, but i still not understand why the user-exit QQMA0014 is not called at the order completion. Maybe a bug?