Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Invalidate Item when error message - BADI ME_PROCESS_REQ_CUST

Hello,

I'm trying to raise message when a validation fails at item level on a Purchase Requisition.

Using badi ME_PROCESS_REQ_CUST with method PROCESS_ITEM.

After validation how can i invalidate the item and raise messages on container log???

I'm trying like this:

DATA: ls_data_item TYPE mereq_item.

ls_data_item = im_item->get_data( ).

IF ( ls_data_item-ekgrp EQ '012' ) AND ( ls_data_item-werks EQ '0008' ).

IF ls_data_item-bsart <> 'ZDNB'.

mmpur_message_forced 'E' '00' '208'

ERROR :)'

''

''

''.

ENDIF.

ENDIF.

Problem is i don't get the message anywhere

And yes, it is getting to the mmpur_message_forced definition.

Any help would be great.

Thanks

Mário

Tags:
Not what you were looking for? View more on this topic or Ask a question