on 12-07-2015 8:55 PM
Dear Sir,
I have requirement to check authorization when someone trying to replace counter reading in measurement document transaction (IK11).
I've tried to put the authority check on exit IMRC0001 but it was short dump because IMRC0001 is in the middle of commit work.
So, any idea how I can put some custom authorization check on counter reading replacement?
Any help would be appreciated.
Regards,
Raden Vicky
Hello Raden,
The user-exit we need for your requirement is IMRC0004. Put the code below in the include ZXMRCU04.
IF sy-tcode = 'IK11' AND impt_data-indct = 'X' AND imrg_ins-idiff IS INITIAL.
MESSAGE: 'Reading in ''Counter reading'' field is not allowed. Please enter your reading in the ''Difference'' field.' TYPE 'E'.
ENDIF.
This code first checks whether the tcode is IK11, then checks whether the Measuring document is for a Counter and then checks whether the field Counter reading entered as difference (IDIFF) is empty. If this field is empty, then it understands that the Reading is entered in the Counter reading field and throws the following error in the status bar of IK11 screen.
And when you clear the Counter reading field and enter the reading in the Difference field the reading is accepted and ready to be Saved.
Regards
KJogeswaraRao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please close the thread.
Here is how you close a discussion.
Hello Raden,
I understood the requirement. It does not look possible to grey-out this field throguh spro transaction OIMRC. I know using IMRC0001 would give a short-dump, because it interrupts the COMMIT WORK of the exit. I'll look into other enhancement options and get back to you.
Regards
KJogeswaraRao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
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.