Application Development 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: 

Want to update standard field in ME21N/ ME22N

Former Member
0 Kudos

Hi All,

I have a requirement to block all the line item of the standard PO if any of the line item does not satisfy specific condition (as per the requirement). But I am not able to do so.

I have tried to use the BADI ME_PROCESS_PO_CUST~PROCESS_ITEM. But, here it is not possible to block all the line item(s) if any of the specific line item fails the condition check. So, can any body help me to find the way out.

Thanks--

Debojit.

4 REPLIES 4

Former Member
0 Kudos

Debojit ,

Just put a error message to block the items in your referred badi. And check whether the BADI is activated properly or not.

Hope this will solve the problem.

Thanks.

0 Kudos

Hi,

Thanks for ur reply. But, I have a requirement to block all the line item(s) of the PO if any of the line item(s) does not satisfy the specific condition checking.

Also, I have to put the error message in the message log, but how can I block (set LOEKZ = 'S') every line items of a PO in this case?

Thanks -

Debojit.

kesavadas_thekkillath
Active Contributor
0 Kudos

can you check exit EXIT_SAPLEBND_002

Also refer this thread

0 Kudos

Thanks KSD for ur valuable answer. But, will it work for entire PO? If any of the line item fails then can we put the block indicator set to all of the line items?