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

Re: unable to lock btorder entity with quote opened in display mode

$
0
0

Thank You,

 

 

Excellent for clarification now if it works !!

 

 

 

I explain briefly what I did ...

 

 

*************************************

Method DO_PREPARE_OUTPUT

.

.

.

.

lr_ent         TYPE REF TO cl_crm_bol_entity.



lr_ent ?= me->typed_Context->detail->collection_wrapper->get_current( ).

 

DATA: lr_tx type ref to IF_BOL_TRANSACTION_CONTEXT,

         lr_bol_core type ref to cl_crm_bol_core.

 

 

 

   lr_bol_core = cl_crm_bol_core => get_instance ().

 

 

   lr_ent-> switch_to_change_mode (). "Switch to edit mode.

       lr_ent-> SET_PROPERTY (iv_attr_name = 'ZZFLD000011'

                                  iv_value = 'H19').

 

 

lr_bol_core-> modify ().

lr_tx? = lr_ent-> get_transaction ().

lr_tx-> commit ().

lr_tx-> save ().

lr_tx-> commit ().

lr_tx-> ROLLBACK ().

 

 

Endmethod.

 

 

*************************************

 

 

As you can see, I made a "Commit", I  "save" to do "Commit" then did a ROLLBACK statement to leave the locked context but already with the saved data,

 

 

Makes take the changes I wanted to display the data.

 

 

Thank you very much for the help,

 

 

 

Best regards,

 

JMP


Viewing all articles
Browse latest Browse all 8526

Trending Articles



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