on 2010 Feb 18 11:04 PM
I have created 2 z fields and it get settled in BTCustomerI.
i need to access these fields from BTAdminI via relation BTItemCustExt but while debugging i am not getting this relation.
DATA: current TYPE REF TO if_bol_bo_property_access.
mention below is my code:-
get method:-
DATA: dref TYPE REF TO data.
**
**
value ='BTAdminI not bound'."#EC NOTEXT
**
**
if iterator is bound.
current = iterator->get_current( ).
else.
current = collection_wrapper->get_current( ).
endif.
**
**
TRY.
**
DATA: coll TYPE REF TO if_bol_entity_col.
DATA: entity TYPE REF TO cl_crm_bol_entity.
**
entity ?= current.
coll = entity->get_related_entities(
iv_relation_name = 'BTItemCustExt' ). "#EC NOTEXT
current = coll->get_current( ).
IF current IS NOT BOUND.
RETURN.
ENDIF.
**
TRY.
dref = current->get_property( 'ZZCLAIM_UNIT_REB' ). "#EC NOTEXT
CATCH cx_crm_cic_parameter_error.
ENDTRY.
**
CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
cx_crm_genil_model_error.
RETURN.
ENDTRY.
Kindly suggest me how to proceed...
Regards,
Ankur
Request clarification before answering.
solved by adding node with relations!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
2 | |
1 | |
1 | |
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.