Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert information message to error or warning message in standard

former_member477101
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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 REPLIES 12

nabheetscn
Active Contributor
0 Kudos

Hi Prakash

Can you please tell us the message number with message id detail

Nabheet

0 Kudos

hi nabheet,

   

                Thanks for the reply..please check message no .

0 Kudos


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

Former Member
0 Kudos

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,.

kethanuppalapati
Explorer
0 Kudos

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.

atul_mohanty
Active Contributor
0 Kudos

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

0 Kudos

hi Atul Mohanty ,

                         this is the message no triggred for that perticular activity.

0 Kudos

Did you check as suggested in previous post about the place where this message is thrown

0 Kudos

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.

0 Kudos

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

0 Kudos

You can not do it without acess key...

Former Member
0 Kudos

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.