I have created two tables ZTR_DEPT (master table) and ZTR_EMP (child table).
deptno(pk) | deptname
-------------------------
empno(pk) | name | city | deptno(fk)
------------------------------------
When I insert a record into the child table not having matching record in the parent table through ABAP program it simply inserts into database without reporting any error. When I insert the record manually into the child table it is does show an error.
What is the reason of such a discrepancy?