cancel
Showing results for 
Search instead for 
Did you mean: 

Make value and description of the value of a field visible

Former Member
0 Kudos

Hello All,

Our customer's requirement is to see in the view (BP, Contract, Opportunity etc.) the value and the description of the value for the fields which have a F4.

Do you know how to implement this?

Thank you in advance,

Roula

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Roula,

You can do the following to solve your problem -

1) Create a value attribute in the same context node of your F4 field

2) Add the field as a text-box or label field in the UI configuration next to the F4 field

3) Re-define your GETV method of your F4 field to populate the new value attribute as a 'outmap' so that as soon as the key of the f4 help is selected in the search help pop-up, the new field is filled with the description field.

Or, if there is no output parameter for the description in the search help id that is used in the f4 field, you might as well consider writing the logic to populate the description in the getter method of the new field based on the f4 field value.

Hope it helps!

Thanks,

Sudipta.

Former Member
0 Kudos

Hi,

is it possible to do this also for the fields of Picklist type? I tried it for Authorization Group but AUTHORIZATIONGROUP_TEXT and STRUCT.AUTHORIZATIONGROUP are both Descriptions.

Answers (2)

Answers (2)

suchita_phulkar
Active Contributor
0 Kudos

hi,

Directly go to your context node class (CN00 , CN01 etc ) , now copy method GET_S_XYZ , paste it and rename as GET_yourfieldnamefor description. Similarly copy SET_S_XYZ, GET_M_XYZ and GET_I_XYZ and paste and rename. Once activated. Quit the component browser completely. Open again using bsp_wd_cmpwb. open you view and then your node. You can find you new attribut present as struct.YourField. Now pull this attribute beside the value field on view in configuration tool.

You must handle setter getter by urself in this case.You can then copy code from available setter-getter methods for this attribute. In may std. nodes, this is done for description field. I have personally done this for product description field.

if you dont want the field to be part of structure ( i.e. as struct.Yourfield ) then you can also copy paste GET_XYZ, SET_XYZ methods. your filed then do not appear as Struct.YourField but it just appears as YourField name under context node.

You can check PRODUCTDESCRIPTION attribute of BTAdminI node of BT115QIT_SLSQ/Items view of BT115QIT_SLSQ component. They have added it the same way as i described above. You see the GET_ method to see how they are retrieving product description. In my object, i wrote direct query to Comm_prshtext table to retriev short_text by passing product guid and then assigen it to value variable of Get method.

Hope this helps you.

Thanks & Regards.

Suchita

Former Member
0 Kudos

Hi.

Yes, it's possible to make a dropdown list like the field authorization group. You can copy methods GET_V and GET_P fom any dropdown field in the Component, for example STRUCT.PARTNERTYPE. You

have to create a new atribute type CL_CRM_UIU_DDL in the enhancing class for the dropdown and Replace the method"cl_crm_uiu_bp_cust_get=>get_values_for_field" by your selection. Filling the table DDLB (type bsp_wd_dropdown_table) is similar to the VRM type vrm_list in SAP GUI.

I hope this helps.

Kind regards.

Edited by: Fernando Adán on Sep 22, 2008 11:16 AM