on 09-19-2011 10:42 PM
Hi Experts,
Is there a way to make this message as "warning" only?
Thanks.
Hi Diane
Unfortunately no..because you cannot create a travel expense without valid IT0017 record so this error is hard coded.
Kind regards
Sally
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Haha, of course you "can" change this, if you modify the following part of code in MP56TF01 (DON'T DO IT ).
IF subrc_inftyp <> 0 OR sy-subrc <> 0.
SET PARAMETER ID 'PER' FIELD space. "KCNK068536
MESSAGE s701 WITH '0017' sy-datum.
* If sy-uname is connected to pernr without IT0017, "WKUK037928
* we have to exit the transaction. "WKUK037928
* If not -> endless loop possible "WKUK037928
CALL FUNCTION 'BAPI_USR01DOHR_GETEMPLOYEE' "WKUK037928
EXPORTING "WKUK037928
id = sy-uname "WKUK037928
IMPORTING "WKUK037928
employeenumber = ptp00-pernr. "WKUK037928
IF sy-subrc = 0. "WKUK037928
CLEAR ptp00-pernr. "WKUK037928
ELSE. "WKUK037928
* LEAVE TO SCREEN 0. "KCNK068536
LEAVE TO TRANSACTION sy-tcode. "KCNK068536
ENDIF. "WKUK037928
ENDIF.
All jesting aside, unless you want to make your system unstable, you shouldn't alter standard error messages at all :-/. And as Sally already stated, this one's hard coded ( plus the developer's note "endless loop possible" should repel anyone who dares think of alteration :-P)
Cheers, Lukas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
.
Edited by: Sally Redmond on Sep 20, 2011 1:04 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
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.