Application type should be ME. Create a condition table with relevant fields (Tran/Type/Plant/StorageLoc), access sequence and Output type.
Your output type will trigger based on your condition records maintained. You need to include the logic in Change Output Program, in Output type to attain your desired functionality.
Consult with your ABAP consultant in changing the output program.
Reward if helpful
Thanks,
Satya