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

Re: Save button

$
0
0

Hi girish,

 

    Then in the Save Button event write the following code.

 

data : lr_entity type ref to cl_crm_bol_entity,

          lr_coco  type ref to ( your component controller ),  " if you bind your Zab context node to component controller you can make use of comp_controller variable to get the instance and access the current data, if you bind it to custom controller then use get_custom_controller method.

 

lr_coco ?= comp_controller.

 

lr_entity ?= lr_coco->typed_context->( cnode name )->collection_wrapper->get_current( ).

 

data : lr_txn type ref to if_bol_transaction_context.

 

lr_txn = lr_entity->get_transaction( ).

 

if lr_txn->check_save_needed( ) = abap_true.

 

  if lr_txn->save( ) = abap_true.

     lr_txn->commit( ).

    else.

     lr_txn->rollback( ).

  endif.

 

else.

lr_txn->revert( iv_suppress_buffer_sync = abap_true ).

endif.

 

view_group_context->reset( ).

 

 

Thanks & Regrads,

        DP.


Viewing all articles
Browse latest Browse all 7775

Latest Images

Trending Articles



Latest Images

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