Show TOC

App Extensibility: Request Cost CenterLocate this document in the navigation structure

Use

You can extend Request Cost Center according to your business needs for different aspects. For this purpose, the following extensibility options are available:

Add Customer Specific Fields

To add a customer field to the create form, the extensibility entities listed below are available on the different software layers. You have to extend each of these entities according to your specific business needs:

UI

Back End/ABAP

View

Extension Point

Design Time: Gateway Entity

Design Time: Extension Include (in DDIC Structure)

Runtime: Superclass/ Method to Be Redefined

S1.view.xml

extCreateForm

MDG_COSTCENTER

CI_MDG_S_E0G_CCTR

Superclass: CL_MDG_GW_CC_DPC_EXT

Method: CREATE_DEEP_ENTITY

Further Extensibility Entities

Business Add-Ins (BAdIs)

No BAdIs are available for extensibility purposes.

Extension Includes

DDIC

Extension Include

Use

MDG_GW_S_ATTACHMENT

CI_MDG_GW_S_ATTACHMENT

Attachment

MDG_GW_S_CREQUEST

CI_MDG_GW_S_CREQUEST

Change Request

/MDG/_S_0G_ES_CCTR

CI_MDG_S_E0G_CCTR

Cost Center

If there are additional fields available in the OData service, you can display these fields on the UI. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step Extension Points End of the navigation path.

Extension Points

View

Extension Point

Use

S1.view.xml

extHeader

Extends the overview tile

S1.view.xml

extCreateForm

Extends the fields in the form

S1.view.xml

extTable

Extends the duplicate search table

S1.view.xml

extAttachments

Extends the attachment

S1.view.xml

extIconFilter

Extends the icon tab

If there are additional fields available in the OData service, you can display these fields on the UI. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step Extension Points End of the navigation path.

UI Controller Hooks

To plug in and execute custom code, the following hooks are available in the controller code:

Controller

Hook

Use

S1.view.xml

extHookSearchQuery

Allows you to modify the search query based on customer needs

S1.view.xml

extHookOnSearch

Allows you to modify the search result table

S1.view.xml

extHookClearFieldValues

Allows you to clear the fields after submit

S1.view.xml

extHookPrepare

Allows you to modify the cost center data saved to MDG

S1.view.xml

extHookonSubmit

Allows you to handle submit

S1.view.xml

extHookonCancel

Allows you to handle cancel

S1.view.xml

extHookOnAttach

Allows you to modify the person related data saved to MDG

S1.view.xml

extHookOnCreate

Allows you to modify the person related data saved to MDG

S1.view.xml

extHookOnSelect

Allows you to modify the person related data saved to MDG

If there are additional UI controller hooks available in the controller code, you can add own code. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step UI Controller Hooks End of the navigation path.

Display of UI Controls

The following UI controls can be hidden on the app UI:

View

Control ID

Use

Main.view.xml

fioriContent

Allows you to hide the main view content

S1.view.xml

create

Allows you to hide the view S1 content

S1.view.xml

costPage

Allows you to hide the Page

S1.view.xml

Header

Allows you to hide the object header

S1.view.xml

IconTab

Allows you to hide the Icon Tab Bar

S1.view.xml

create

Allows you to hide the Icon Tab Filter

S1.view.xml

SimpleForm

Allows you to hide the Simple Form

S1.view.xml

reason

Allows you to hide the Label Reason

S1.view.xml

RequestReason

Allows you to hide the Input Request Reason

S1.view.xml

validfrom

Allows you to hide the Label Valid From

S1.view.xml

ValidFromDate

Allows you to hide the Date Picker Valid From Date

S1.view.xml

ca

Allows you to hide the Label Controlling Area

S1.view.xml

ControllingArea

Allows you to hide the Input Controlling Area

S1.view.xml

ControllingAreaText

Allows you to hide the Input Controlling Area Text

S1.view.xml

ccid

Allows you to hide the Label Cost Center Id

S1.view.xml

CostCenterId

Allows you to hide the Input Cost Center Id

S1.view.xml

Description

Allows you to hide the Input Description

S1.view.xml

comcode

Allows you to hide the Label Company Code

S1.view.xml

CompanyCode

Allows you to hide the Input Company Code

S1.view.xml

CompanyCodeText

Allows you to hide the Input Company Code Text

S1.view.xml

curr

Allows you to hide the Input Currency

S1.view.xml

CurrencyKey

Allows you to hide the Input Currency Key

S1.view.xml

CurrencyKeyText

Allows you to hide the Input Currency Key Text

S1.view.xml

pr

Allows you to hide the Label Person Responsible

S1.view.xml

PersonResponsible

Allows you to hide the Input Person Responsible

S1.view.xml

ai

Allows you to hide the Label Additional Information

S1.view.xml

AdditionalInformation

Allows you to hide the Text Area Additional Information

S1.view.xml

search

Allows you to hide the Icon Tab Duplicates

S1.view.xml

description

Allows you to hide the Text

S1.view.xml

results

Allows you to hide the results

S1.view.xml

searchText

Allows you to hide the Search Field

S1.view.xml

REFRESH

Allows you to hide the button Refresh

S1.view.xml

persIcon

Allows you to hide the Personalization Icon

S1.view.xml

colgn

Allows you to hide the Column Cost Center

S1.view.xml

colca

Allows you to hide the Column Controlling Area

S1.view.xml

colpr

Allows you to hide the Column Person Responsible

S1.view.xml

colvalid

Allows you to hide the Column valid date

S1.view.xml

colrank

Allows you to hide the Column Rank

S1.view.xml

attachments

Allows you to hide the Icon Tab Attachments

S1.view.xml

fileupload

Allows you to hide the Column File Upload

For more information about hiding UI controls, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step Hiding UI Controls End of the navigation path.

More Information

For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori End of the navigation path.