on 01-23-2017 7:28 AM
Dear All,
Can we make a Class specific to equipment category and can we make it mandatory while saving the equipment master?
Regards,
Atul Rajmane
Atul
Put the following code in the include ZXEQMU02, of user-exit IEQM0003.
IF main_class IS INITIAL.
MESSAGE: 'Equipment classification is mandatory.' TYPE 'I'.
RAISE posting_not_allowed.
ENDIF.
IF data_equi-eqtyp = 'M' and main_class <> 'PUMP'.
MESSAGE: 'Equipment Category ''M'' is necessarily to be classified as ''PUMP''.' TYPE 'I'.
RAISE posting_not_allowed.
ENDIF.
This code prevents Equipment Creation without classifying. And it prevents creation of Equipment of category 'M' having class other than 'PUMP'. Means it forces Category 'M' Equipments to be classified as 'PUMP'.
Accordingly you change the 'M' and 'PUMP' values in the above code. I have tested this code. If your requirement is more complex than you stated, then the above code can be easily developed with the help of your ABAPer.
Good luck
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JRK,
You'd need to extend the coding a little to account for:
PeteA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atul Rajmane
This is not possible in standard.
You will need to develop a solution possible via user-exit IEQM0003 (See SMOD)
PeteA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.