Hi Experts,
We have implemented SAP CRM Sales 2.1 in our landscape.
I am trying to add a custom field (Standard CRM Field NATIONALITY and FUNCTION)for contact business partner. I have done the following:
1. I have modified field Configuration XML by adding nationality Field (NATIO) and FUNCTION (PAFKT).
<field fieldName="PAFKT" customerLabelKey="Function1" hidden="false" readOnly="false" required="false" dataType="1510" maxLength="4" ceCreate="true"/>
<field fieldName="NATIO" customerLabelKey="Nationality2" hidden="false" readOnly="false" required="false" dataType="1510" maxLength="3" ceCreate="true"/>
2. I have implemented getdetail method in BADI(/MSA/BADI_CUST_MD) to populate List of values in the device.
method /MSA/IF_CE_CUST_MD~GETDETAIL.
data ls_extn like line of wsap_extension.
data : it_nat type standard table of T005T,
wa_nat like line of it_nat.
data : it_fun type standard table of TB913,
wa_fun like line of it_fun.
select * into corresponding fields of table it_nat from t005T where SPRAS = sy-langu.
select * into corresponding fields of table it_fun from TB913 where SPRAS = sy-langu.
LOOP AT it_nat into wa_nat.
ls_extn-object_guid = 'NATIO'.
ls_extn-ASSIGNMENT = ''.
ls_extn-ITEM_KEY = wa_nat-land1 .
ls_extn-COUNTER = sy-tabix .
ls_extn-VALUE = wa_nat-natio.
append ls_extn to wsap_extension.
clear ls_extn.
ENDLOOP.
LOOP AT it_fun into wa_fun.
ls_extn-object_guid = 'PAFKT'.
ls_extn-ASSIGNMENT = ''.
ls_extn-ITEM_KEY = wa_fun-PAFKT .
ls_extn-COUNTER = sy-tabix .
ls_extn-VALUE = wa_fun-BEZ30.
append ls_extn to wsap_extension.
clear ls_extn.
ENDLOOP.
endmethod.
3. The list values are populating in the IPAD Device but I am unable to select any value from list. Means its not accepting any values from the drop down.
.I am not sure whether its looks like a bug or any mistake in our code. Kindly help me in resolving this issue.
Thanks and Regards,
Suman