2024 Mar 22 7:40 AM - edited 2024 Mar 22 7:42 AM
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.
2024 Mar 22 8:15 AM
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.
2024 Mar 22 8:49 AM
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)
2024 Mar 22 9:56 AM