Hi,
In relationship has cardilatily minimum 1 then clild will already gets created.
so, in above coding instead of
lr_order->create_related_entity(
EXPORTING
iv_relation_name = 'BTOrderHeader' " Relation Name
iv_set_defaults = abap_false " Do Not Set Default Values and Properties
RECEIVING
rv_result = lr_result " Entity
).
use
lr_order->get_related_entity(
EXPORTING
iv_relation_name = 'BTOrderHeader' " Relation Name
RECEIVING
rv_result = lr_result " Entity
).
Regards,
Karthik.