Skip to Content

CRM Desktop Connection PickList

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on May 19, 2015 at 03:04 PM

    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



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 20, 2015 at 12:43 PM

    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


    picklist.jpg (52.1 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.