on 10-01-2009 2:59 PM
Hello,
I need the status "STRUCT.ACT_STATUS" from context-node "BTSTATUS" to fill the value help of a new field "STRUCT.ZZORDERADM_H0121" in context-node "BTADMINH" in method "GET_V_ZZORDERADM_H0121". I don't know how to do this.
Component: BT111H_OPPT
View: BT111H_OPPT/Details
Any ideas?
Thank you,
Ole.
Hi,
see the example code here:
data: lr_adminh type ref to cl_crm_bol_entity,
lr_currentstatus type ref to cl_crm_bol_entity,
lr_btstatush type ref to cl_crm_bol_entity,
lv_status type string.
try.
lr_adminh ?= collection_wrapper->get_current( ).
lr_btstatush ?= lr_adminh->get_related_entity( 'BTHeaderStatusSet' ).
lr_currentstatus ?= lr_btstatush->get_related_entity( 'BTStatusHCurrent' ).
if lr_currentstatus is bound.
lv_status = lr_currentstatus->get_property_as_string( 'ACT_STATUS' ).
endif.
catch cx_sy_ref_is_initial cx_sy_move_cast_error cx_crm_genil_model_error.
endtry.
regards
Ismail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ismail,
thank you very much for your help! It works!
Ole.
Edited by: Ole Müßigbrodt on Oct 5, 2009 9:34 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.