I am implementing the BADI order_save. (the iv_guid present in this BADI is the header field in the table crmd_orderadm_i ).
I want to get the guid of the opportunity which i could pass to the fm CRM_ORDERADM_I_READ_OW and populate the structure ES_ORDERADM_I_WRK. i need the product details from this fm.
i tried to get the guid from the table using a select query by passing the iv_guid of the badi to the table.
But the values are not getting populated.
Are there any other methods using which i could get the guid of the opportunity.
Amol Tambe replied
while implementating BADI order SAve.its very easy to work.for getting data just use Function Module CRM ORDER READ and you will get all data related to ur service order or sales order.
you have to just pass the GUID to this function Module if you want any code related to this BADI please do reply.
SAP CRM technical Consultant.