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 show message with 'E' type and dont block screen?

shiz0frenik
Participant
0 Kudos

Hi, experts. I've got a message at migo t-code class 'IF_EX_MB_MIGO_BADI~LINE_MODIFY'.
here i'm printing an error messages, deppending on inputed values.

I need to print  an message with 'E' type which willn't block the screen, and would block the post.
how to do it?

('W' type of message doesn't block the post)

 

 

 

 

  IF  SY-TCODE = 'MIGO' AND ( CS_GOITEM-BWART = 'Y15' or CS_GOITEM-BWART = '919') and CS_GOITEM-BWTAR = '2100'.
    clear zbesk.
    SELECT SINGLE ZBESK INTO ZBESK FROM MARA WHERE MATNR = CS_GOITEM-MATNR
    if zbesk eq 'E' or zbesk eq 'T'.
      MESSAGE ' Материал является покупным.  Вид оценки 2100 недопустим ' TYPE 'E' DISPLAY LIKE 'A'.
    endif.
  ENDIF.

 

 

 

 

 

3 REPLIES 3

NTeunckens
Active Contributor
0 Kudos

Please check using the "INCLUDE MM_MESSAGES_MAC" for error-handling in this BAdI ...
The Blog in the link might be a good starting-point on how to use this Message-Macro : Link

Hope this helps

Nic T.

 

raymond_giuseppi
Active Contributor

Did you consider moving the check and error to the correct method CHECK_ITEM ?

(You could save some informations from MODIFY_ITEM to an instance attributes of your implementing class so CHECK_ITEM could read those back)

0 Kudos

Thanks, it helped