Skip to Content
author's profile photo Former Member
Former Member

relation not getting at runtime

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2010 at 09:50 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.