BADI vs Script logic
When do we prefer to use BADI from Script logic.
We got to know that every calculation can be done by script logic. Then why BADI/Store procedures being used.
i have read that script logic gets compiled and queries back to DB server and hence time taking and resource utilization making more time.
While BADI/Stored procedures stay in DB itself and hence round time gets reduced with less utilization.
is that the above justification correct? if so, is there any technical preferences to BADI from using SCript logic?
Also I belive that stored procedures, BADI would stay in DB server itself.
While Script logic file stays in Application server on in DB.. [correct me if it the above statement is wrong]
Please let me know.