Application Development and Automation 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: 
Read only

BADI ERR MESSAGE Process - MIRO for field SECCO - Section Code

Former Member
0 Likes
511

Hi friends:

I want to display error message in a badi,

for tcode - MIRO, Entering Incoming Invoice.

The badi definition is: MRM_HEADER_CHECK

The code is:

METHOD if_ex_mrm_header_check~headerdata_check .

IF I_RBKPV-SECCO EQ SPACE.

I_RBKPV-SECCO = '9999'.

Message e888(sabapdocu) with 'Check Section Code !!!'.

endif.

endmethod.

The problem is the user can not modify the invoice after got the error message.

Does anyone know how to solve this problem?

Thanks and regards.

Minaxi shah

2 REPLIES 2
Read only

Former Member
0 Likes
440

Hi Minaxi,

Can u make the situation little more clear?

here after the error message u the user will be exited from the transaction itself.

Rgds,

Prajith

Read only

0 Likes
440

Hi Prajith,

Actually I want to make SECCO field Mandatory using MIRO using method

if_ex_mrm_header_check~headerdata_check .

Is there any other mothod or procedure ?

Thanks

Minaxi