cancel
Showing results for 
Search instead for 
Did you mean: 

Limit Notification Types / Order Types in dropdown lists

0 Kudos
523

Hi

My client has a business rule that says that only certain Order Types can be created for certain Notification types. There is not a 1:1 relationship for all Notification Types to Order Types, for example:

  • Z1 Notification can have PM02, PM05 and PM06 Order Types

  • Z2 Notification can have PM03 Order Type

Is there a way of limiting the values in the dropdown lists based on the Notification or Order Type that you are currently busy with? So for example if you're busy in IW21 and you have created a Z1 Notification... if you then click on the create Order button, it would then only show you PM02, PM05 and PM06 Order Types, as opposed to all available Maintenance Order Types.

The "Assign Notification Types to Order Types" config is set up with the default Order Types for Notifications. I can however not set the Order Type field (RIWO00-AUART) to display only, as this would prevent the user from selecting the Order Type where there is a 1:N relationship.

The same question applies for the scenario where you are in the Maintenance Order and click the Create Notification button.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I guess, there is no standard way to do this. You need to maintain Z-table & whenever document is created, it should pick from that Z-table.

0 Kudos

There does not seem to be any appropriate User Exit or BAdI to do this... but maybe I missed something.

peter_atkin
Active Contributor
0 Kudos

You won't be able to effect the drop-down, but you can stop invalid order/notif combinations via BADI IWO1_ORDER_BADI->AUTHORITY_CHAECK_AUART_ACTIVIT (see TCode SE18)

PeteA

0 Kudos

Hi Pete

Thanks for the reply... and sorry for only answering now.

We're going to use IWO1_ORDER_BADI to prevent the users from creating PM01 Orders manually, as apposed to from a Maintenance Plan.

The developer looked at the BAdI to limit the Notification / Order combinations, but it did not look feasable. We've opted for using enhancement spots within the Maintenance Order program to do this. We've also built a Z table to store the allowed combinations, which would make future changes to the combinations easier.

The limitation of the values in the dropdown lists does not seem possible.

Cheers

Former Member
0 Kudos

Hi Werner

You can make use of 'Personal List' option, listed when type of orders appear in F4 list. Using this functionality you can limit the number of options which is displayed for a user under F4.

However, as per your requirement, options are not availble to display the options based on order type / notification type.

You may consider modifying this functionality with ABAP team.

Thanks.