on 12-30-2015 7:45 PM
Hi All,
I am trying to add additional attributes in a mail form. I have created the attribute context and the assignment of the structure to the same is already done. Now I need to populate the values for that custom attributes. For this I have implemented the BADI CRM_IM_ADD_DATA_BADI. Here, I could see only BP GUID I can get. But my case is, I am creating an email as a follow up of a complaint. And in the email I want the Complaint ID and some related data. So could anybody please let me know on how can I get the transaction related data in this BADI. Or can I achieve this using any other ways. This transaction number is already available in 'Reference' field in email page.
Thanks,
Faisal
Hi Faisal,
I am not sure but you can try with Global data context or Global custom contoller.
TRY.
* Create an instance of the data context.
lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( ).
IF lr_gdc IS BOUND.
* Get the Business Transaction entity
lr_current_bt = lr_gdc->get_entity( if_iccmp_global_data_cont_con=>gdc_currentservicerequest ).
* Get the Business Transaction GUID
ls_guid = lr_current_bt->get_property_as_string( 'CRM_GUID' ).
l_obj_guid = ls_guid.
ENDIF.
CATCH cx_root.
ENDTRY.
Regards,
Sumeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi faisal,
Did you try to set the entity using lr_gdc->Set_entity method? And then you can probably get the entity details using lr_gdc->get_entity at the desired place.
Currently entity is not available because it might not have been set by standard. but anyways you can set it using SET_ENTITY method of GDC.
Thanks
Saurabh kabra
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.