Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Create Related Entity Issue while creating Transaction ( BTOrderHeader)

$
0
0

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.




Viewing all articles
Browse latest Browse all 7775

Trending Articles