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: 

Error Message

Former Member
0 Kudos

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

Former Member
0 Kudos

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

paulocampos
Explorer
0 Kudos

Hi, Try to use:

MESSAGE S100(M7) DISPLAY LIKE 'E'.

Paulo Campos

former_member692
Explorer
0 Kudos

Hi ,

Use OMT4 for material master message sttings


or  check this    

former_member195402
Active Contributor
0 Kudos

Hi,

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

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

Regards,

Klaus

0 Kudos

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.

0 Kudos

Hi,

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

Former Member
0 Kudos

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 .

0 Kudos

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.

0 Kudos

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.

0 Kudos

Hi,

Issue is resolved by coding to the std Program,

Thanks for your valuable inputs,

With Regards,

Devendra

0 Kudos

You Implicitly Enhanced the Standard Code , right ?

thangam_perumal
Contributor
0 Kudos

Hi Devendra,

                         Please refer below

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


Regards,

Thangam.P