cancel
Showing results for 
Search instead for 
Did you mean: 

CRM Desktop Connection PickList

0 Kudos

I have enhanced my SAP OData to send my custom fields to Desktop Connection and all data are now displayed in outlook form.


I have alse enhanced the class /CRMGWS/CL_BUPA_PICKLIST by adding a new private method (GET_FTC) to send picklist value to Desktop connection.


I customize also this configuration files:


metainfo.xml

    

<ODataField>

      <Type>String</Type>

      <Name> AccountMainZZFTCID </Name>

      <Label> AccountMainZZFTCID </Label>

      <Nullable>true</Nullable>

      <Filterable>true</Filterable>

      <Polymorphic>false</Polymorphic>

      <IsBackUpdate>true</IsBackUpdate>

      <PickList>

           <TypeName>AccountMainZZFTCIDs</TypeName>

      <CustomNames/>

      </PickList>

</ODataField>


customization.XML

            <combobox id="AccountMain.Field.AccountMainZZFTCID">

               <label>#lbl_FTC</label>

               <item_value_field>Value</item_value_field>

              <items_format>:[:(Label):]</items_format>

              <source_type>auto</source_type>

              <source_name>AccountMainZZFTCIDs</source_name>

              <field>AccountMainZZFTCID</field>

              <order_by>SortOrder</order_by>

              <order_ascend>true</order_ascend>

              <has_null_item>true</has_null_item>

             </combobox>


basic_mapping.xml


But, Also if in HTML_DUMP (se attachment) is possible see the picklist value for field "AccountMainZZFTCID", the picklist isn't availble for my custom field and in SyncDump file the picklist isn't traced.


Is possible send from SAP a picklist for a custom field?


I attach customization and log files

Thank you

Alessandro

Accepted Solutions (1)

Accepted Solutions (1)

michael_sackmann
Participant
0 Kudos

Hello Alessandro,

yes, sending picklist for a custom field is possible via some enhancements on server side.

Did you check whether your picklist values are already send from server to client?

When picklist values are read from server is your new method (GET_FCT) called?

Note that you have not only to add the new method you also have to call the method

in /CRMGWS/CL_BUPA_PICKLIST->GET_PICKLISTS_ACCOUNTMAIN

I would recommend to check the XML which is returned in this method via debugger.

You can simulate the methode call in SE24 using test run (F8). I added some Z-Field + picklist by myself and did enhance picklist service. The XML returned should look like the following

The Z-Field is named CustomerField2, so picklist is named CustomerField2s, AccountMain comes from the higher level node so it is named AccountMainCustomerField2s

In the customization package you have to enhance the metainfo.xml file accordingly i.e.

Then you have to add the field in the customization.xml file i.e.

</

And you have to add it to a proper place on the form for the UI. I put it in my sample below the search term field:

Finally you have to add the new picklist for the account object itself at the end of the customization.xml file i.e.

Hope this helps.

Regards

Michael


Answers (1)

Answers (1)

0 Kudos

Hello Allessandro,

Name of the pick list should consist of name of the type concatenated with name of the field.

So, in your case field definition should look like

Regards,

Alex

0 Kudos

Hi,

Both replay help me to solve this mistake.

Thanks

Alex