cancel
Showing results for 
Search instead for 
Did you mean: 

relation not found at runtime.. please help ASAP

Former Member
0 Kudos
300

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

View Entire Topic
Former Member
0 Kudos

solved by adding node with relations!!!

hrodarte
Explorer
0 Kudos

Hi! Could you tell me how did you do this please? I have the same error.