Monday, February 24, 2014

Maintain translations using OTR_EDIT and SE63

1. In SOTR_EDIT transaction - Maintain your English translation




2. Save and note the package and concept

3. Cross check: Check SOTR_HEAD table with your package to see if you successfully created your entry.

4. Now go to transaction SE63
In menu - Translation->ABAP Objects->Short texts
In the popup search for OTR

5. Select OTR. In the screen that appears, enter the below details
6. In the object name field press F4 and in the Collection give *.
7. In the result list, search for the concept that you have noted down.

8. Give your translation in the text box and save.


Also check this blog to know how to transport a translation.












Thursday, January 23, 2014

Radio Button in WEBUI

Adding a Radio Button -
Create a context node and add the below methods.
GET_P MethodCASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value
= cl_bsp_dlc_view_descriptor=>field_type_radio.

WHEN if_bsp_wd_model_setter_getter=>fp_radio_cols.
rv_value
= '2'.
WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
rv_value
= 'SELECT'.

WHEN if_bsp_wd_model_setter_getter=>fp_group.
rv_value
= 'R1'.      
ENDCASE.


GET_V Method
 IF gv_radio_ddlb IS NOT BOUND.
CREATE OBJECT gv_radio_ddlb
EXPORTING
iv_source_type
= 'T'. "Where gv_radio_ddlb type ref to CL_CRM_UIU_DDLB.

**Populate LT_DDLB with your radio button text values. 

gv_radio_ddlb
->set_selection_table( lt_ddlb ).
ENDIF.

rv_valuehelp_descriptor
= gv_radio_ddlb.