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

Block PO creation when error

former_member239066
Participant
0 Likes
658

Hi Experts,

We have implemented the BADI ME_PROCESS_PO_CUST to perform some checks and block the PO creation when there is any error in the method CHECK.

The error messages are being triggered as expected.  The issue is that we get the pop-up with the options 'Hold' and 'Edit'.  If we click on 'Hold', even if there errors, the PO gets created.  We would like to avoid that pop-up and block the PO creation completely.

Could you please suggest how to proceed?

Thanks,

Vitish.

3 REPLIES 3
Read only

Former Member
0 Likes
575

Hi,  try to use badi ME_HOLD_PO to avoid hold po

Read only

0 Likes
575

Hi Maxim,

Thanks for your reply.

Instead of using ME_HOLD_PO, do you know if there is any configuration to avoid the pop-up?

Thanks,

Vitish.

Read only

0 Likes
575

look at table T161PH

and check abap class CL_PARKHOLD_ACTIVE method PARKHOLD_IS_ACTIVE, put breakpoint