cancel
Showing results for 
Search instead for 
Did you mean: 

Attribute is not shown in UI

Former Member
0 Kudos

Hello everyone!

I've been trying to configure CRM 7.0 to show product manufacturer in sales order items list.

I've made an extension of a BT115IT_SLSO component, enhanced view BT115IT_SLSO/Items and added new attribute Manufacturer into context node BTAdminI. ([screenshot 1|http://www.picdrop.net/images/manufacturer1.png])

After some struggle I've selected "No hiding of fields by design layer" and my attribute appeared in a list of available fields.

I've added it do displayed fields ([screenshot 2|http://www.picdrop.net/images/manufacturer2.png]), but it does not showing in UI and is not in a displayed or available fields if I try to personalize view ([screenshot 3|http://www.picdrop.net/images/manufacturer3.png]). When I'm entering configuration mode with AET though, I can see that field in the displayed fields list ([screenshot 4|http://www.picdrop.net/images/manufacturer4.png]). Why it isn't showing in the UI?

Please, help.

Regards,

Alex.

Accepted Solutions (1)

Accepted Solutions (1)

former_member191572
Contributor

Hi,

Just go to the UI screen select personalize buttong in the respective view there select the reset to default button. The reason is in the ui level u save same value that will be saved in different table. u just try this option.

Regards,

Gobi

Former Member
0 Kudos

Reset to default in assignment block personalization helped and the new attribute is now visible in the UI. It's still empty though, but it's another story. Thanks.

Former Member
0 Kudos

Hi Gobi krishnan,

Reset to Default is worked and everything wokring fine. Thnaks for your help.

Edited by: raja123xxxxx on Jun 7, 2011 1:17 PM

Former Member
0 Kudos

Hi Alexander,

This what i did to make it work.

First i executed transaction SHMM and invalidated the all the instances then i went to UI personnel where i Reset to default.

Now all the new fields are showing with proper values.

just give it a try.

Answers (3)

Answers (3)

Former Member
0 Kudos

Still can't manage to make it work.

What should I maintain in BSPWDV_EHSET_ASG? I've checked, there is one record there: client=<destination_client_number> and the name of my enhancement set where I do the enhancements.

Any useful advise will be appreciated.

Regards, Alex

Former Member
0 Kudos

Hi ALexander,

I am also facing the same Problem when i transport to another client the new changes not reflecting.

did you reslove the issue ? If Yes can you let me know how did you reslove it.

This is what i have found out so for.

When i googled up The old instances belong to old settings still sitting in the cache or shared memory objects

in order to make new changes work we have invalidate those old instances through transaction SHMM.

I did that but still it didn't work.

Let me know

Regards

Babu

Former Member
0 Kudos

Hi,

Did you maintain an entry for your enhancment set in SM30 BSPWDV_EHSET_ASG for that client?

Regards,

Akash

jordi_escodaruiz
Active Participant
0 Kudos

Dear raja123xxxxx

Please, install SAP note 1468646.

This will fix your problem.

Best regards.

Jordi

ajaya_kumar
Active Participant
0 Kudos

Hi Alex,

Just see if it is loading the same configuration in the UI, for which you've added Manfact field.

Regards

Ajay

Former Member
0 Kudos

Hi Ajay, thanks for your response.

Can you explain more clearly please what do you mean?

I've just came across another thing. I did a configuration in one client and transported all to another.

And in the client where I configured everything I see the column with the column name #Error in Metadata# with the value MANUFACTURERNotBound ([screenshot|http://www.picdrop.net/images/manufacturer5.png])

Why is that happening and why I can see that in one client and can't see that in the other even though I did transport all cusomizations?

Regards, Alex.

ajaya_kumar
Active Participant
0 Kudos

Hi Alex,

I was saying, just see the configuration at web UI by doing F2...and check it is the same for which you made the changes...but anyway..it is the same as you can see the attribute with label #Error in Metadata and value is MANUFACTURERNotBound.

Here, the issue is, it is not able to pick the field lebal and displaying #error in metadata, Just check you GET_M_XXX method and you can also check configuration for proper leabling of the field name.

also, in the getter method

replace

 value = 'MANUFACTURERNotBound' "#EC NOTEXT 

with replace

 value = ' ' 

Regards

Ajay

Former Member
0 Kudos

I've checked the configuration, and it picks up the default configuration, it is the configuration which I'm working with.

Also I've checked the getter methods and there is no value='MANUFACTURERNotBound' there.

method GET_MANUFACTURER.

    DATA: current TYPE REF TO if_bol_bo_property_access.
    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 = 'BTItemProductExt' ). "#EC NOTEXT
      current = coll->get_current( ).
      IF current IS NOT BOUND.
        RETURN.
      ENDIF.

    TRY.
        dref = current->get_property( 'MANUFACTURER_ID' ). "#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.

    IF dref IS NOT BOUND.

      value = 'BTAdminI/BTItemProductExt/MANUFACTURER_ID not bound'."#EC NOTEXT

      RETURN.
    ENDIF.
    TRY.
        value = if_bsp_model_util~convert_to_string( data_ref = dref
                                    attribute_path = attribute_path ).
      CATCH cx_bsp_conv_illegal_ref.
        FIELD-SYMBOLS: <l_data> type DATA.
        assign dref->* to <l_data>.
*       please implement here some BO specific handler coding
*       conversion of currency/quantity field failed caused by missing
*       unit relation
*       Coding sample:
*       provide currency, decimals, and reference type
*       value = cl_bsp_utility=>make_string(
*                          value = <l_data>
*                          reference_value = c_currency
*                          num_decimals = decimals
*                          reference_type = reference_type
*                          ).
          value = '-CURR/QUANT REF DATA MISSING-'.
      CATCH cx_root.
        value = '-CONVERSION FAILED-'.                  "#EC NOTEXT
    ENDTRY.


endmethod.

method GET_M_MANUFACTURER.

  DATA: attr    TYPE MANUFACTURER_ID_UI.

  DATA: dref    TYPE REF TO data.

  GET REFERENCE OF attr INTO dref.

  metadata ?= if_bsp_model_binding~get_attribute_metadata(
       attribute_ref  = dref
       attribute_path = attribute_path
       name           = 'Manufacturer'  "#EC NOTEXT
*      COMPONENT      =
       no_getter      = 1 ).


endmethod.