Skip to Content
0
Jun 01 at 11:41 PM

Extending SADL->CDS mapped standard Gateway Service for "create" operation

124 Views

I've been tasked with a slightly tweaked standard Fiori App "Request Maintenance".

Technical details:

Fiori App F1511

UI5 app EAM_NTF_CRES1

Odata Service EAM_NTF_CREATE

Problem to solve:

To focus on the problem at hand, I'd like the user to be able to select a "Main Work Centre" in the app for adding to the notification. Technically, this means adding that field to the NotificationHeader for creation. The underlying CDS view that is mapped via SADL in the original service has this value but it is not mapped and an extended gateway service does not allow further mapping via segw.

Question:

Without recreating the gateway service from scratch, and to preferably not have to code this update after creation (post modify notification); is there a way to map this additional field in the dpc_ext class so it is considered.

Note - I understand the CDS may not handle the work centre being provided, but I'm assuming it does at this point.

How I will solve for now:

Fallback will be to write code in the post event, hoping that the mapping occurs before this point (giving me the notification #), and that I can use a BAPI to update the notification manually without lock issues.

Thanks,

Matt

Attachments