用SAP搜索帮助功能创建一个ODATA数据源,SAP F4功能的ODATA数据源,应该在FIORI中的UI5中可以使用,
Hello everyone, In this Netweaver Gateway tutorial we will learn how to expose search helps as OData service in SAP Netweaver Gateway.Search helps are very well used in SAP ECC system to provide input help(F4 help) to screen fields. So lets get started.
1.Supported System Version
SAP NetWeaver Gateway Release-采购向厂商下P/O之后,必须透过一定权限经由主管对此张P/O做 release后才能收料 2.0 Support Package 09 and Netweaver Version 7.40
2.Business Example
You have a Search Help exists in your ABAP system and you want use this search helps as data source to create OData service in SAP Netweaver Gateway system.
3.How to use Search helps as Data Source in SAP Netweaver Gateway ?
In this section, we will see a step-by-step guided procedure to import Search Helps as a Data Source in SAP Netweaver Gateway system.
1. Go to SAP Netweaver Gateway Service Builder – SEGW transaction.
2. Create a project in the service builder by hitting Create button in the application toolbar, name it as ZDEMO_SEARCH_HELP.
3. Once project is created in the builder expand the project. Right Click on Data Model → Import → Search Help.
4.Enter the Entity Name, Data Dictionary Search Help you want to use as Data Source.Select Create Default Entity Set check box to create entity set.Select Query and Read to create a automatic mapping for both these operations. Hit Next to go to next step.
5. Select the Data Source parameter that need to be imported and hit Next button.
6. Choose the key the field from the list of properties of entity name and hit Finish button.
7. Search Help parameters are imported and mapped successfully.
8. Save and generate the service.After generating the service register the service in /IWFND/MAINT_SERVICE transaction to make the service ready for testing.
9. Test the service in SAP Netweaver Gateway Client /IWFND/GW_CLIENT by providing the below URI /sap/opu/odata/sap/ZDEMO_SEARCH_HELP_SRV/HEpmPrSet.
You have successfully used Data Dictionary Search Help as data source and built the OData service in SAP Netweaver Gateway. There are some constraints on using the search helps in SAP Netweaver Gateway.
4.Know Constraints
Collective search helps are not supported. Only Elementary search helps are supported.
If the search helps a Search Help Exit, then this will be not executed.
Search Help data source can retrieve maximum of 9999 entries only.
Stay tuned to us for more SAP Netweaver Gateway tutorials.Please feel free to comment and let us know your feedback.
Thank you.