Quantcast
Viewing all articles
Browse latest Browse all 7775

Deletion of payment method records dynamically within Quote

I need to delete payment method records dynamically based upon an even being fired (pulldown list related) within component BT115QH_SLSQ. How do I delete these records that are contained within another component BTPAYCARDS? Do I fire a plug from component BT115QH_SLSQ? I tried the code below with no luck, which I do understand why.

 

BT115QH_DETAILS_IMPL

     lr_btadminh ?= me->typed_context->btadminh->collection_wrapper->get_current( ).

     CHECK lr_btadminh IS BOUND.

 

     lr_btheaderpayplanset ?= lr_btadminh->get_related_entity( iv_relation_name = 'BTHeaderPayplanSet' ).

     lr_btheaderpayplanset->delete( ).

     lr_bol_core = cl_crm_bol_core=>get_instance( ).

     lr_bol_core->modify( ).

     IF lr_btheaderpayplanset->alive( ) = abap_false.

       me->typed_context->btadminh->collection_wrapper->remove( lr_btheaderpayplanset ).

     ENDIF.


Viewing all articles
Browse latest Browse all 7775

Trending Articles



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