We have two systems one is LGC from where all the Purchase orders are created and goes to another system CGP through IDOCs.
Now we have one line item in PO which is for returnable materials and the net price maintained for this 0,00. and the account assignment for this is Y - Deposits.
Now the user wants that any line item with returnable material and account assignment- Y (Deposits) should not go out from LGC system in the form of Idocs.
and it should not trigger any messages of PO change.
I have one example in which everything working fine. but in some POs, we are facing this problem and IDOCS going out in CGP system which should not..
I think for this requirement, you should have a control at the IDOC processing level and not at message creation level in PO. Allow the IDOC messages to be created and then in the IDOC processing program have a solution to put IDOCs that satisfy your criteria into archival status 68. This is a foolproof method.