12-27-2013 5:39 AM
hi,
My requirment is to convert information message to error or warning message in standard program,
T-CODE is cj20n.
the scenerio is when an end user edits requirment qty less than withdrawl qty ,system is showing as information message,
but this has to been shown has warning mesage to control the system.
therer are no exits available for this current scenerio.
12-30-2013 6:59 PM
Goto transaction code 'OBA5'
Application area "CN"
Message No. "752"
and assign type of message 'E'
it should now change the message to "Error" message, system wide.
12-27-2013 5:47 AM
Hi Prakash
Can you please tell us the message number with message id detail
Nabheet
12-27-2013 7:23 AM
12-27-2013 7:43 AM
Can you please put a break point in include LCOMKF5H under
ENHANCEMENT-SECTION MENGE_TO_BDMNG_03 SPOTS ES_SAPLCOMK. at statement
IF resbd-einheit EQ msfcv-meins.
If message is getting thrown from this place we can create a custom implementation for this section copying the whole code under this enhancement. Since this is section so our enhancement will disbale standard code and process ours.
Can you please confirm if this is the case. Otherwise enable debugger put a break point at message to find the exact place. I found it by doing where used list for message
Nabheet
12-27-2013 6:17 AM
try to find any explicit enhancement area where you can replace the information message with error message. please refer the link https://scn.sap.com/thread/857819 if that can helps you,.
12-27-2013 6:28 AM
Hi Prakash,
Use Leave List Processing statement after displaying information message. It will work as error message. It will not process further steps and returns to the screen.
IF SY-SUBRC NE 0.
MESSAGE Ixxx(msgclass).
LEAVE LIST-PROCESSING.
ENDIF.
Regards,
Kethan.
12-27-2013 7:44 AM
Hi -
Either you provide us the Message ID and Message number .
OR check if any enhancement section is there where the message is getting triggered. If a enhancement section is there you can replace the standard code with custom code.
Regards,
Atul Mohanty
12-28-2013 4:12 AM
hi Atul Mohanty ,
this is the message no triggred for that perticular activity.
12-28-2013 4:42 AM
Did you check as suggested in previous post about the place where this message is thrown
12-28-2013 8:56 AM
the include triggered is LCOMDFM1 while debuging the scenerio,line no 1250,do we have badis or enhancement spots for this scenerio.
IF resbd-menge LT resbd-wemng_cmp.
MESSAGE i756(cn) WITH resbd-posnr
resbd-matnr
resbd-menge
resbd-wemng_cmp.
12-30-2013 1:14 PM
Hi Prakash,
As per your confirmation the message is coming from LCOMDFM1 (seems its from line no 1293). At this point there is no explicit / implicit enhancement OR BADI at this point.
I do not think you can just convert the message type here.
Regards,
Atul Mohanty
12-30-2013 5:43 PM
12-30-2013 6:59 PM
Goto transaction code 'OBA5'
Application area "CN"
Message No. "752"
and assign type of message 'E'
it should now change the message to "Error" message, system wide.