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

CRMCMP_IC_FRAME & EH_ONFORWARD Call don't want to save all the transaction

$
0
0

Hi All,

 

I am trying below thing in IC agent role when user presses save and end interaction button it will save all the transactions associated with the IC agent interaction.

 

In my case i am doing some validation on complaint when user presses end interaction button. in this case if validation fails I am reverting the data without saving it.

 

This can be achieved using below code.

 

  lr_bol_core ?= cl_crm_bol_core=>get_instance( ).

  lr_transaction ?= lr_bol_core->get_transaction( ).

 

  IF lr_transaction->check_save_needed( ) = abap_true. "Check if any unsaved object

        lr_transaction->revert( ).  "Revert all if not saved

  ENDIF.

 

but my concern is it will save all the transactions associated with that interaction. But I would like revert only complaint transaction.

But I am not sure how to achieve this.

 

Could anybody help me how we can revert back only one transaction that we require in this case.

Component:CRMCMP_IC_FRAME and View:Hidden view and event: EH_ONFORWARDCALL.

 

I have found below link but couldn't have any solution in that thread.

 

Don't save all transaction in EH_ONFORWARDCALL

 

 

I really appreciate your help on this.

 

 

Thanks,

Sanjana.


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>