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: 

Making the Earmarked Funds mandatory(conditionally) during PO creation

former_member873340
Active Participant
0 Kudos
240

Hi,

The requirement is to make the Earmarked Funds mandatory conditionally i.e. for a particular Commitment Item. I am using the following BADI ME_PROCESS_PO_CUST. In that method PROCESS_ACCOUNT is used.

I am able to generate the error to make the user enter the Earmarked Funds.

It is also displayed as error in red in the CHECK functionality also.

But the issue is that, the user is able to save the document in spite of the error( not enforcing the HOLD functionality as in the normal error message).

Am I missing something?

Gowri

2 REPLIES 2

former_member873340
Active Participant
0 Kudos
190

Hi have tried the normal way of error display

>MESSAGE 'Enter Earmarked funds' TYPE 'E'.

and also with macros

>INCLUDE mm_messages_mac.

>mmpur_message_forced 'E' 'YMESSAGES' '201' space space space space.

still no luck

Gowri

0 Kudos
190

Still facing the same problem

Gowri