Hi, I am new here in CRM Application specially on the coding of customized fields. Now, I have a problem regarding this Z field (customized field). This specific line of codes:
* Get Topic lv_topic = ztyped_context->zbtactivityh->get_zztopic( attribute_path = ' ' ). * Get Subtopic lv_stopic = ztyped_context->zbtactivityh->get_zzsubtopic( attribute_path = ' ' ).
doesn't get the values inside the topic and subtopic fields. When we are on debugging mode, this
lv_topic = ztyped_context->zbtactivityh->get_zztopic( attribute_path = ' ' ).
only returns BTActivityH not bound. We know that this happen because inside this get_zztopic method:
DATA: current TYPE REF TO if_bol_bo_property_access.
DATA: dref TYPE REF TO data.
value = 'BTActivityH not bound'. "#EC NOTEXT
if iterator is bound.
current = iterator->get_current( ).
else.
current = collection_wrapper->get_current( ). " <----- This returns a value of {O:Initial} even if there is a value inside the
" zztopic field (On CRM WebUI)
endif.
TRY.
TRY.
dref = current->get_property( 'ZZTOPIC' ). "#EC NOTEXT
CATCH cx_crm_cic_parameter_error.
ENDTRY.
.
.
.
Inside the get_current() method:
method IF_BOL_BO_COL~GET_CURRENT .
check me->collection_ref->collection is bound. "<---- When checked, this is still on initial state thats why it returns a {O:Initial}
" on the code above.
RV_RESULT = me->collection_ref->collection->GET_CURRENT( ).
endmethod.
My question is:
1. Why does this happen? Is it because SAP does not recognize non-SAP standard field?
2. How can we "bypass" this code so that we could somewhat get the value on our customized field.
3. Or can you suggest a piece of code or related links that we can use to investigate this issue.
Thanks and Regards,
Marc Anthony