You can extend the Approve Purchase Contracts app for different aspects. For this purpose, the following extensibility options are available:
Add fields to the master list (S2.view.xml)
Add fields to the purchase contract item view (S3.view.xml)
Add fields to the purchase contract item details view (ItemDetails.view.xml)
Add fields to item service line overview (ItemServiceLine.view.xml)
To add customer fields to each work item in the master list, the following extensibility entities 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: Name of Entity Set |
Design Time: Extension Include (in DDIC Structure) |
Runtime: BAdI to Be Implemented |
S2.view.xml |
extListItemInfo |
WorkflowTaskCollection |
SRA001S_PC_WORKFLOW_TASK_INCL |
BAdI: SRA001_APC_RDP Method: IF_SRA001_EX_PC_RDP~CHANGE_WORKFLOW_TASK_API |
To add customer fields to the header area and to the Information area of the purchase contract item overview, the following extensibility entities 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: Name of Entity Set |
Design Time: Extension Include (in DDIC Structure) |
Runtime: BAdI to Be Implemented |
S3.view.xml |
extInformationS3 |
HeaderDetailCollection |
SRA001S_PC_HEADER_DETAILS_INCL |
BAdI: SRA001_APC_RDP Method: IF_SRA001_EX_PC_RDP~CHANGE_HEADER_DETAILS_INFO_API |
To add customer fields to the header area and to the Information area of the purchase contract item details view, the following extensibility entities 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: Name of Entity Set |
Design Time: Extension Include (in DDIC Structure) |
Runtime: BAdI to Be Implemented |
ItemDetails.view.xml |
extMaterialHeaderInfo |
ItemDetailCollection |
SRA001S_PC_ITEM_DETAILS_INCL |
BAdI: SRA001_APC_RDP Method: IF_SRA001_EX_PC_RDP~CHANGE_ITEM_DETAILS_INFO_API |
extServiceHeaderInfo |
||||
extInformation |
To add customer fields to the header area and to the Information area of the service line details view, the following extensibility entities 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: Name of Entity Set |
Design Time: Extension Include (in DDIC Structure) |
Runtime: BAdI to Be Implemented |
ItemServiceLine.view.xml |
extServiceLineHeaderInfo |
ServiceLineCollection |
SRA001S_PC_SERVICE_LINE_INCL |
BAdI: SRA001_APC_RDP Method: IF_SRA001_EX_PC_RDP~CHANGE_ITEM_DETAILS_INFO_API |
Business Add-Ins (BAdIs)
The following BAdIs are available for extensibility purposes:
SRA001_APC_MDP
You can use this BAdI to enhance the entities, that is, the OData model, of the sra001_pcapproval Gateway service. You can do this to add your own fields, for example.
SRA001_APC_RDP
You can use this BAdI to change the runtime data that is returned by the Gateway service and displayed on the user interface of the Approve Purchase Contract app. This includes the use of pictures, changing the list of attachments and notes displayed, and changing the workflow. For more information, see the BAdI documentation and the example implementation.
The above described BAdIs are available in Customizing for Materials Management under .
UI Controller Hooks
To plug in and execute custom code, the following hooks are available in the controller code:
Controller |
Hook |
Use |
---|---|---|
ItemDetails.controller.js |
|
|
ItemServiceLine.controller.js |
|
|
S2.controller.js |
|
|
S3.controller.js |
|
|
S4.controller.js |
|
|
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 .
For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation .