cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to extend PDI fields in Service request Data Workbench in SAP C4C through SDK

former_member690694
Participant
0 Likes
2,733

Dear Team,

For one of my requirement i need to extend 2 PDI fields to Dataworkbench.

For exp. - In Data workbench-> go to export- >Standard object-> Service Request-> Export any service request record-> in monitor -> open the file- > now i want to see 2 PDI fields which is available currently on Service ticket general facet.

Could you please confirm where should i write the code in PDI and what?

Thanks and Regards,

Madhuri Dubey.

Accepted Solutions (1)

Accepted Solutions (1)

former_member226
Employee
Employee

Hi,

You can very well extend existing PDI fields to Data Workbench using odata Extention. To do so, you need to perform the following steps:

1. Create a new PDI/SDK field which you want to add to Data Workbench(DWB).

sdk-field.png

2. In PDI, Create a new object type "Odata Extention"

odata-extention.png

3. Choose Service Name as "ticket" and clicl OK.

4. A new window will open for odata editor. Here log in with PDI/SDK User. if you login with business user then it will not work.

5. Add the newly created SDK field from left-hand side panel. Once done then save and activate your changes.

field-in-odata.png

6. Finally check the DWB and here you should be able to find the SDK field as shown:

dwb.png

former_member590177
Participant

Useful thank you Saurabh. I will check with our developers if we can use this approach. Up to now we have been creating copy Custom OData services for Standard business objects, that allows you to add the SDK created fields to the custom service in OData Service Explorer.

The SDK solution you have posted to add the SDK fields to the Standard Service looks like a better solution.

Answers (2)

Answers (2)

yun_07
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Madhuri Dubey,

Please kindly check the blog-

New Feature : OData service extension with extension fields in SDK and KBA-

2414455 - How to Enable Custom Business Objects and Extension Fields in OData and Data Workbench

https://blogs.sap.com/2017/05/07/new-feature-odata-service-extension-with-extension-fields-in-sdk/

https://launchpad.support.sap.com/#/notes/2414455

yun_07
Product and Topic Expert
Product and Topic Expert
0 Likes

One more KBA-

2414455 - How to Enable Custom Business Objects and Extension Fields in OData and Data Workbench

https://launchpad.support.sap.com/#/notes/2414455

  1. Go to the Administrator work center.
  2. Select the ODATA Service Explorer view.
  3. Change the Show filter to Custom Odata Services.
  4. Click on New, to create a new custom OData service.
  5. Check the option: Data Workbench enabled (if you want to use this service with Data Workbench).
  6. Edit the Custom OData service.
  7. Select the required Custom BO under the Select Business Object button.
  8. Expand and select the required Entities (fields).
  9. Now all the Extension fields related to the selected entities will be available in the right hand side window of the OData Service.
  10. Save your custom OData service.
  11. Click on Activate.
former_member590177
Participant
0 Likes

You cannot do that as far as I know. You need to create a Custom OData service. We have raised with SAP - it renders the standard OData services pretty much useless if you use custom fields. However, that's the current limitation.