Application Development and Automation 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: 
Read only

Error Message

Former Member
0 Likes
2,670

e Hi,

I have updated code into the USER EXIT for the QA Usage decision.

I have maintained message and assignment of the type 'E' into the OMCQ transaction ,

My code in USER EXIT is

  

IF i_rqeva-vmenge04 <> i_rqeva-anz_fehler.

     MESSAGE e100(m7) .
ENDIF.

But system is showing Only Information message.

It requires to be error message.

With Regards,

Deven

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,304

Is it coming as a Information message ( Type 'I' ) or Abort message ( Type 'A' ).

A very similar issue I had a couple of years ago ,

Please refer , it might be the case

If so then you need to look for other alternatives for getting this task done .

11 REPLIES 11
Read only

paulocampos
Explorer
0 Likes
2,303

Hi, Try to use:

MESSAGE S100(M7) DISPLAY LIKE 'E'.

Paulo Campos

Read only

former_member692
Explorer
0 Likes
2,304

Hi ,

Use OMT4 for material master message sttings


or  check this    

Read only

Former Member
0 Likes
2,304

Hi,

please have a look at this thread (it is no solution, only for information):

http://scn.sap.com/thread/265301

Regards,

Klaus

Read only

0 Likes
2,304

Hi.

I have updated like following,

But system shows display message only.

How to set continue and cancel button as system is showing syntex error.

  

IF i_rqeva-vmenge04 <> i_rqeva-anz_fehler.

*    MESSAGE e100(m7) with  ' Blocked Quantity Not Equal To Defects quantity.'.

CALL FUNCTION 'POPUP_DISPLAY_MESSAGE'
  EXPORTING
    TITEL   = 'Error Message'
    MSGID   = 'M7'
    MSGTY   = 'E'
    MSGNO   = '100'
    MSGV1   = 'Data input error'.

IF SY-UCOMM = 'OKAY'.        "*Continue button   

...
ELSEIF SY-UCOMM = 'RW'.      "*Cancel function
  ...
ELSE.
  ...
ENDIF.

ENDIF.

Read only

0 Likes
2,304

Hi,

     Instead you may use POPUP_TO_CONFIRM and Perform your task according to user Choice.

Read only

Former Member
0 Likes
2,305

Is it coming as a Information message ( Type 'I' ) or Abort message ( Type 'A' ).

A very similar issue I had a couple of years ago ,

Please refer , it might be the case

If so then you need to look for other alternatives for getting this task done .

Read only

0 Likes
2,304

Hi,

It is working now ,But i have doubt whether it is Best practice,

I have select following coding,

System first choosen Error Dialogue and then exit screen with Dump.

Pl. suggest.

  

IF i_rqeva-vmenge04 <> i_rqeva-anz_fehler.

CALL FUNCTION 'POPUP_DISPLAY_MESSAGE'
  EXPORTING
    TITEL   = 'Error Message'
    MSGID   = 'M7'
    MSGTY   = 'E'
    MSGNO   = '900'
    MSGV1   = 'Data input error'.

  MESSAGE ID 'M7' TYPE 'X' Number '900'.

Write : 'Error'.

ENDIF.

Read only

0 Likes
2,304

If its giving Dump then definitely its not a Good Practice.

The point where you are coding might be executed in Update Task , so for that reasons try with some other alternatives.

Try with BADI alternatives or any other EXITs if available ,

And in the end if everything fails a good debug job with the transaction may end you up with a suitable point where you can Implicitly Enhance and fit in your code.

Read only

0 Likes
2,304

Hi,

Issue is resolved by coding to the std Program,

Thanks for your valuable inputs,

With Regards,

Devendra

Read only

0 Likes
2,304

You Implicitly Enhanced the Standard Code , right ?

Read only

thangam_perumal
Contributor
0 Likes
2,304

Hi Devendra,

                         Please refer below

message id 'XXX' type 'E' number 'YYY'
                    with  ABC .


Regards,

Thangam.P