cancel
Showing results for 
Search instead for 
Did you mean: 

Icons in BP_HEAD_SEARCH result view

Former Member
0 Kudos

Hi,

i want to add three columns in BP_HEAD_SEARCH result view and need to fill these three columns with icon image based on some data logic. could anyone please suggest me on how to achieve this functionality?

Regards,

Kamesh Bathla

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kamesh,

I method which I followed for this is,

1.) Create the attributes in respective context node of the view in the component.

2.) Generate the GETTER & SETTER, GET_P methods for these attributes.

3.) In the GET_P method of the attribute, define the field type as image.

CASE iv_property.

WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

rv_value = cl_bsp_dlc_view_descriptor=>field_type_image.

ENDCASE.

4.)In the GETTER method assign the image url to the 'value' attribute based on the conditions,

IF 'X'.

value = cl_thtmlb_util=>get_icon_url( 'image1.gif').

ELSEIF 'Y'.

value = cl_thtmlb_util=>get_icon_url( 'image2.gif').

ELSE.

value = cl_thtmlb_util=>get_icon_url( 'image3.gif').

ENDIF.

I hope this would help you out.

Regards

Veena

Former Member
0 Kudos

Hi Veena,

Thanks a lot, one more thing.. can we enable sorting for these columns? like user can sort the column which has image?

Also, do you know if there is any way to hide the field... i need to hide certain fields on the basis of user roles.. is it possible?

Regards,

Kamesh Bathla

Edited by: Kamesh Bathla on Sep 2, 2009 7:13 PM

Former Member
0 Kudos

Hi Kamesh,

Did that procedure worked for you? Where you able to display the icons now in those columns?

Sorting of the column, Iam not pretty sure.But, if we want to hide some fileds based on the business role, then i think this should be done from the configuration side. Create the different configurations you want for that view & you need to assign the respective configuration to the respective business role.

Regards

Veena.

Former Member
0 Kudos

Hi Veena,

Thanks and icon thing did work well. About hiding the fields, actually i need to hide certain field according to activity type. is it possible? and can we change the field labels at run time depends on activity type?

Also, I need to show activity notes in fact sheet. can you give me any direction on how to show activity notes in factsheet?

Regards,

Kamesh

Edited by: Kamesh Bathla on Sep 3, 2009 3:31 PM

Former Member
0 Kudos

Hi Kamesh,

For hiding some fields for one activity type & displaying them in other activity, this we can achieve by creating different configurations for each activity type.

1.) First we need to create the object types for the different activities under the path,

SPRO->Customer Relationship Management->UI Framework-> UI Framework Definition-> Define UI Object Types.

2.) After the creation of object types, create different configurations for the view where u want some fields to be displayed or hidden.While creating the configuration for specific activity type, enter the object key which u created specifically for this activity & here while configuring the view itself u can change the label names.

3.) Then go to view controller implementation class,(_IMPL) & redefine the method 'DO_CONFIG_DETERMINATION',

4.) Here in this method, get the activity type & based on the activity type value set the config keys,

me->set_config_keys ( iv_object_type = Object_type_name(which we created specifically for this activity)

iv_object_sub_type = 'DEFAULT'

iv_propagate_2_children = abap_true ).

I hope this helps you out.

Regarding the fact sheet i have no clue.

Regards,

Veena.

Former Member
0 Kudos

Thanks veena for all your help.

Former Member
0 Kudos

Hi Veena,

I am stuck in one other simple problem, I need to put F4 help for description field in BP_DATA/MarketingAttributesEOVP context node Attributes. I created the z search help with both exporting importing checkboxes and implemented the get v method.

method GET_V_DESCRIPTION.
  data:
    ls_map    type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING,
    lt_inmap  type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING_TAB,
    lt_outmap type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING_TAB.

  ls_map-context_attr = 'STRUCT.DESCRIPTION'.
  ls_map-f4_attr      = 'ATBEZ'.
  append ls_map to lt_outmap, lt_inmap.

  create object rv_valuehelp_descriptor type CL_BSP_WD_VALUEHELP_F4DESCR
    exporting
      iv_help_id        = 'ZMKT_ATTR_DESC'
      iv_help_id_kind   = IF_BSP_WD_VALUEHELP_F4DESCR=>HELP_ID_KIND_NAME
      iv_input_mapping  = lt_inmap
      iv_output_mapping = lt_outmap.



endmethod.

I am able to see the search help in web ui but when i select any value from search help, it is not passing any value back to view.

can you give me any clue on how to solve it?

Regards,

Kamesh Bathla

Former Member
0 Kudos

Hi Kamlesh,

Did u checked the Import export parameter in the search help. ?

Regards

Jignesh

robert_kunstelj
Active Contributor
0 Kudos

GET method is just to get values on the screen. For writing values back to the database you have to modify SET method.

Regards.

Former Member
0 Kudos

Hi Veena,

I enhanced bp_head component and working on accountdetail view. in the view configuration i want to add Classific and Clasicfic_Text fields which belong to Marketing context node but when i go to view configuration and click on available fields, its not showing up in available fields.

what can be the cause for this and what shall i do to make these two fields visible.

Regards,

Kamesh Bathla

Former Member
0 Kudos

Hi Kamesh,

Iam sorry...I dint cheked ur posts.Actually Iam not pretty sure why they are not displayed in the Configuration tab.

If i get any details I will let you know.

Regards

Veena.

Former Member
0 Kudos

Hi Kamesh,

We need to assign the custom field to design layer to make them available in the view configuration.

I hope you have copied the std design object while assigning to design layer in SPRO.

Go to SPRO ->Customer Relationship Management -> UI Framework ->UI Framework Definition -> Design Layer -> Copy SAP Design Objects .

Use 'Copy from SAP' button to do so.

Maintain new entry for each custom field to be added.

Hope this helps!

Regards

Veena.

Former Member
0 Kudos

Hi,

Thanks, actually classific and classific_text is reffering to some other fields in the view thats why i got confused.

Thanks for the reply :-).

Regards,

Kamesh Bathla

Former Member
0 Kudos

Hi,

Hope you are doing great. I am stuck with sales area stuff.

i enabled the delete action button on certain condition on sales area assignment block on business partner for salespro role.

but i am not able to delete the sales org for existing partners.

in eh_onone_click_action of BP_SALES/CorpAccountSalesAreasOV , I am also deleting the entities which are related the builsalesarrangement i.e. BuilResponsibleOrgRel , BuilSalesTermsRel , BuilShippingTermsRel and BuilPricingTermsRel .

but when i try to delete , after executing the below code, entity is still alive. i really don't know if we can delete the sales org for existing partners, though i am able to delete it while creating new partners.

lr_entity->delete( ).

lr_core = cl_crm_bol_core=>get_instance( ).

lr_core->modify( ).

Any Suggestions?

Regards,

Kamesh Bathla

Answers (0)