Skip to Content
avatar image
Former Member

SAP MDG-MM : Validation through BADI (USMD_RULE_SERVICE)

Hi Guys,

I am creating simple validation for MDG-MM through BADI. (USMD_RULE_SERVICE)

in method IF_EX_USMD_RULE_SERVICE~CHECK_ENTITY

condition is simple .

Error message i m populating as below:

WA_MESSAGES-MSGID = 'YMDG'.
WA_MESSAGES-MSGTY = 'E'.
WA_MESSAGES-MSGNO = '026'. " Material: &1 already exist with MF-ID: &2
WA_MESSAGES-MSGV1 = LV_MATNR.
WA_MESSAGES-MSGV2 = <FS_MFRPN>.
APPEND WA_MESSAGES TO ET_MESSAGE.

Now issue what i am facing is .. even after declaring Message as "E" error its comming as 'W' warning.

I want to stop the process if condition fails.

Regards,

saurabh

error.png (6.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 30, 2016 at 12:17 PM

    Go to Process Modelling->Create Change request type->click on entity types -> set message output as standard.

    Add comment
    10|10000 characters needed characters exceeded