Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: While clicking on custom cancel button how can we retain previous page in its previous state i.e. editable or display?

$
0
0

Hi Tushar,

 

Have  a look at this code to reset or cancel changes....

 

method EH_ONCANCEL.
DATA lr_entity   TYPE REF TO cl_crm_bol_entity.
data lr_tx        TYPE REF TO if_bol_transaction_context.
lr_entity ?= me->typed_context->node->collection_wrapper->get_current( ).
lr_tx = lr_entity->get_transaction( ).
lr_tx->revert( iv_suppress_buffer_sync = abap_true ).
me->view_group_context->reset( ).
endmethod.

 

Let me know if you required any help....

 

Regards,

Sumeet


Viewing all articles
Browse latest Browse all 9159

Trending Articles



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