on 03-13-2016 7:08 AM
Guys,
I want to have some solution configuration wise here.
Q. My system allows to create orders of all the types even if the notification is of let's say "Break Down Maintenance" only.
To make it more easy to understand.
If Notification Type is Break Down system allows to make Orders of all the types be it Preventive or Corrective.
I have checked the settings in IMG path as well. Following the road map given below.
PM & CS --- Maintenance and Service Processing --- Notifications and Service Orders ---- Notification Creation --- Notification Types ---- Assign Notification Types to Order Types. (See the screen shot attached)
Even the settings in the system shows that notification types are restricted to their respective order types.
E.g. Notification Type N1 to Order Type O1 only.If the user chooses any other type then the system should show error.
Please guide !! as I am unable to find any solution as far as configuration in SAP is concerned !!
I hope that my question is clear to all.
Hello Rubab,
The setting you have shown does not restrict the Order type, it just gives the default value of Order type in the Pop-up you get upon clicking on the Order create icon in the Notification. You can change the Order type.
Now, you want a solution in Configuration route. This is possible. No need of enhancement.
Do this way.in spro tcode OIAL
This hides the Order type field in the Order creating pop-up and user will have no option to change it. I have given setting for M2 notification above. Likewise you need to do for all Notification types you want this restriction, using Influencing button in OIAL.
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.
Dear JRK,
Thanks for this executable solution but I have two queries here.
1. In T-CODE IW34 Would these fields be hidden too?
Secondly, If I create a notification and then go to T-CODE IW34 in the initial screen it automatically displays the NOTIFICATION # that have been created last using IW21. Here it asks to enter the order type an then allows any order type irrelevant of notification type already mentioned.
Please see the snapshot shared here of T-CODE IW34. It has the "notification number" already present. Notification is M1 (B/D) , if I enter order type PM02 (Corrective) then it accepts and takes to next session (see second snapshot for reference) rather then showing an error.
Pl also see the second snapshot for the reference.
Second snapshot. pl note that the notification is M1 (b/d) and order type is PM02 (Corrective).
Please guide !!
Regards
Rubab Zehra
NO ,
Regards
KJogeswaraRao
Here is the solution code for IK34 issue. The following code needs to be put in the include ZXWOCU07 of the exit IWO10009.
IF sy-tcode = 'IW34'.
DATA: v_qmart TYPE qmart,
v_qmart1 TYPE qmart.
CLEAR: v_qmart, v_qmart1.
SELECT SINGLE qmart FROM tq80 INTO v_qmart WHERE auart = caufvd_imp-auart.
SELECT SINGLE qmart FROM viqmel INTO v_qmart1 WHERE qmnum = caufvd_imp-qmnum.
IF v_qmart <> v_qmart1.
MESSAGE: 'The Notification you have selected for this Order creation is of different type.'
TYPE 'E' DISPLAY LIKE 'I'.
ENDIF.
ENDIF.
This gives rise to the following error popup and prevents Order to save when the Order type and Notification types do not match the Configuration table.
Take help of your ABAPer to implement it.
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.
Zehra
ABAPer has to check himself before telling the exit is not right one. Pre-requisite for an exit to trigger is --> IT needs to be assigned to a project, (CMOD). When I gave you a tested code in the other post, how can you say the exit is not right one. Copy the code given and use. Check the pre-requisite mentioned.
When you say some thing is not working it is not all. You need to say what is your requirement, what code you are using and what is the result or error you are getting while testing.Things can not be understood by simply telling 'Not working'.
Also the way you marked 'Correct answer' to a different post of mine than expected (not to the one which has solution code) raises doubts whether you have really understood what was suggested.
When you mark 'Correct answer' to something without caring whether it helps you or not, you should not continue in that thread further. You should start a fresh thread.
BTW Read IK34 as IW34 in the first line of the post containing code.
Dear Sir,
Thanks a lot! Actually being a new user I was not completely aware of the rules that are supposed to be followed.
I am being very careful now while marking an answer as correct or helpful.
Will have a discussion on this with my ABAPer again and will revert.
Thanks & Regards
Rubab Zehra
Hi Rubab,
This is also a similar request for an enhancement.
You need to built a custom check to restrict Notification - Order.
Regards
Terence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Rubab,
Standard feature gives us Default order type against the notification. All the order type configure against planning plant are allowed wrt notification. If you want you can do enhancement using User exit.
Regards
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I believe you can not control this through configuration. You will have to develop custom solution by user exit IWO10009.
Thanks
Yogesh
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.