With this business add-in all changes (creation, change, set deletion flag) to PM/CS/PP/PS/PI orders can be processed further and if necessary prohibited.
Business add-ins are not active in the Standard System. The business add-in can be used several times.
If you use different order types and want to handle these in different ways, note that this BADI is used by all of the above-mentioned order types. To differentiate between the order types, evaluate the "AUTYP" field for the corresponding order header.
These are the possible entries in the "AUTYP"
field:
To activate the business add-in, you must create an active implementation. Note that business add-ins can be used several times and therefore all active implementations are called and run through.
Note that no system messages may be sent in the methods. The only exception is the AT_SAVE method. Within this method, a system message may be issued, but only if you trigger the exception ERROR_WITH_MESSAGE at the same time.
Also, note that within the methods, the "commit work" instruction may not be executed because this would inevitably lead to incorrect data in the database.