cancel
Showing results for 
Search instead for 
Did you mean: 

how to enhance the gateway to add additional fields to the OData service

Pavan_Golesar
Active Participant

Hi Gurus,

I am currently following this blog.I want to add two fields to standard OData service itself - is there some extension/enhancement points or some other functionality to get this work done.??.

how to enhance the gateway to add additional fields to the OData service for this particular app.

Also there is a similar thread but no reponse.

Thanking in advance.

Thanks

Pavan G

Accepted Solutions (0)

Answers (1)

Answers (1)

kammaje_cis
Active Contributor
0 Kudos

Pavan,

You want to enhance the OData service, but use the original URL to call the enhanced service?

If yes, do as following.

In the document you referred, goto page 28. Select the checkbox "Overwrite Extended Service".

Regards

Krishna

Pavan_Golesar
Active Participant
0 Kudos

Thanks for response,

Yes Indeed, thats my purpose  to enhance the standard service.


Taking example:

In case I want to enhance the sales order tracking service (SRA018....)

Do you mean to say, same URL would work after Selecting the checkbox "Overwrite Extended Service".?

Note:I haven't overwritten the service in below image.

Standard Sales order tracking service URL:

Custom Sales order tracking service URL:

Regards,

Pavan

Message was edited by: Pavan Golesar

kammaje_cis
Active Contributor
0 Kudos

Yes the original URL would show the enhancement.

EkanshCapgemini
Active Contributor
0 Kudos

Hi Krishna,

Once I 'overwrite the extended service', the base service will show the artifacts of extended service. But can you provide your inputs on how to rollback these changes? I doubt that only deleting the project and service/model would help.

Regards,

Ekansh

former_member184867
Active Contributor
0 Kudos

check transaction /n/iwbep/reg_service under section "Extension for Service"

EkanshCapgemini
Active Contributor
0 Kudos

Thanks Atanu. Will check and let you know.

Regards,

Ekansh

vivek_gaurav
Participant
0 Kudos

Hi Pavan,

Are you looking for adding field to Track Sales Order service . If yes ..

you can use BADI which are given for adding fields..


Further Extensibility Entities

Business Add-Ins (BAdIs)

The following BAdIs are available for extensibility purposes in Customizing for Sales and Distribution (call the transaction SIMGH to open the Start of the navigation path “Track Sales Orders” End of the navigation path node):

  • BAdI: Extending the Sales Order Header (BADI_SALESORDER)You can use this BAdI to populate custom fields for the sales order header.
  • BAdI: Extending the Sales Order Item (BADI_ORDERITEM)You can use this BAdI to populate custom fields for the sales order item.
  • BAdI: Extending the Sales Order Scheduled Item (BADI_SCHEDULEDITEM)You can use this BAdI to populate custom fields for the scheduled sales order item.



You need to Add property in MPC and write logic in DPC.

Extension Includes

In addition to the extension entities described above, the following extension includes are available:

DDIC

Extension Include

Use

SRA018_S_SO_HEADER

SRA018_S_SO_HEADER_INCL

Allows you to add new fields for the sales order header

SRA018_S_SO_ATTACH

SRA018_S_SO_ATTACH_INCL

Allows you to add new fields for sales order attachments

SRA018_S_CONTACT_ODATA

SRA018_S_CONTACT_CI_INCL

Allows you to add new fields for contacts

SRA018_S_SO_COUNTRY

SRA018_S_SO_COUNTRY_INCL

Allows you to add new fields for countries

SRA018_S_SO_CUSTOMER

SRA018_S_SO_CUSTOMER_INCL

Allows you to add new fields for customers

SRA018_S_SO_ITEM

SRA018_S_SO_ITEM_INCL

Allows you to add new fields for sales order items

SRA018_S_SO_SCHEDITEM

SRA018_S_SO_SCHEDITEM_INCL

Allows you to add new fields for scheduled sales order items

Regards

Vivek