1 Reply Latest reply: Oct 5, 2011 9:38 AM by raman khurana RSS

Fields not bound

Muralidhar Chatna
Currently Being Moderated

Hi Experts,

 

I have a Z table and I was asked to create Zcomponent and views for it. how to proceed with it.

 

Can I create Custom bol for it, If I have created a custombol, what would be the nodes, Model or Value ??

 

In this case can I use Value or not??

 

When to go for Simple Custom BOL object?

 

IMGCRMCAGENILcomponent specific settings--define simple objects.

 

 

When to go for building bol comprising of object table and Model table?

IMG-CRMCA-GENILBasic settings

 

 

I have created a simple custom bol object for Ztable, when I display the fields in the UI for the Zcomponent its appearing as FIELD  NOT BOUND, how can fix this issue.

 

 

regards,

Muralidhar

  • Re: Fields not bound
    raman khurana
    Currently Being Moderated

    Hi,

     

    I faced similar issue. This issue comes because there is no entity for your BOL object, not even a blank entity. What you can do to fix this issue is create a custom method in the impl class, in that custom method create a blank entity corresponding to your BOL object.

    And then call your custom method in the do_init_context method of the impl class. Check the following code custom method.

     

    method CREATE_ENTITY.

     

         DATA: lo_core          TYPE REF TO cl_crm_bol_core,

          lo_order           TYPE REF TO cl_crm_bol_entity,

          lo_temp           type ref to IF_BOL_BO_PROPERTY_ACCESS,

          lt_params          TYPE crmt_name_value_pair_tab,

          ls_params          TYPE crmt_name_value_pair,

          lo_coco            TYPE REF TO ZL_ZRK_UI_BSPWDCOMPONENT_IMPL,

          lo_factory         TYPE REF TO cl_crm_bol_entity_factory.

    • add entity

       CLEAR : ls_params, lt_params, lo_order.

       CLEAR : lo_core, lo_factory.

     

        lo_core = cl_crm_bol_core=>get_instance( ).

      lo_factory = lo_core->get_entity_factory( 'ZRootobject' ). " BOL object name

     

      ls_params-name  = 'PLAYER_NAME'.        "similarly add rest of the fields for your BOL object structure

      ls_params-value = ' '.

      APPEND ls_params TO lt_params.

     

      lo_order = lo_factory->create( lt_params ).

    • lo_data_collection->add( lo_order ).

      lo_temp ?= lo_order.

     

     

    me->typed_context->znew->collection_wrapper->add(

        iv_entity    = lo_temp

        iv_set_focus = abap_true ).

     

    endmethod.

     

     

    I hope it will solve your issue.

     

    Thanks

    Raman.