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: 

PO IDOC ORDERS05: How to filter the PO Items while triggering an IDOC based on a Plant

yarnagula_sudhir
Active Participant
0 Kudos

Hi all,

My requirement is to filter the PO Items to be triggered in an IDOC (ORDERS05) based on a Plant.

So, I've gone for a Routine (VOFM->Requirements->Output control->Application EF). Kindly find the piece of routine code as an attachment. cuserssyarn1desktop945.png

But the routine is triggering only once for the entire PO with has multiple line items. So I can stop the entire IDOC to be trigger based on unsatisfied Plant. Where as the requirement is to be stop only the items w.r.t Plant.

Kindly let me know the solution whether it is possible through ABAP Code or any Customization. If yes, then how?

Thank You.

With Regards,

Sudhir.

1 REPLY 1

Jelena
Active Contributor
0 Kudos

So you want to get an IDoc but only with the items that have a specific plant? Why?

You probably still need the requirement routine in case there are no eligible items at all. But to get a "reduced" IDoc data you'd have to use either an IDoc user exit or a custom output program.