
The File Import function is developed to allow importing of the data model files defined by external model editors like Visual Studio (edmx files) and the metadata files types (xml) into the Service Builder to create a data model. This feature can be used in the following scenarios:
To import a metadata/edmx file for a new project. In instances where you create a project and import a file.
To import a metadata/edmx file for an existing project, which already has a data model created (re-import). In this case, the existing data model will be overwritten.
Ensure that the virus scan profile /SCET/GUI_UPLOAD is Active and selected as Default Profile in the SAP system.
For more information on Virus Scan Profile, see http://help.sap.com/saphelp_nw70/helpdata/en/ae/ad1640033ae569e10000000a155106/frameset.htm.
To Import a model file proceed as follows:
Logon to the SAP NetWeaver Gateway system.
Open transaction SEGW.
The SAP NetWeaver Gateway Service Builder appears.
Create a new project by following the instructions in the Creating a Service Builder Project section.
The Service Builder creates the new project together with an empty folder structure. You can see the newly-created project structure in the tree view in the left-hand screen area.
For existing projects, these folders are already available and you have to just proceed with importing the data model file.
Switch to edit mode.
Right click on the to import a metadata/edmx type file.
For an existing project, an overwrite confirmation window appears. Choose Yes to proceed.
The file browser to Select a model file for import appears.
Select a xml or an edmx file and click Open.
When a file other than the xml or edmx type is selected, an error message displays.
On successful import of the xml or edmx file an message displays confirming the import.
The OData artifacts available in the imported model file will be populated under the respective folders under the project.
Double-click the artifacts to view the details in the mass edit area.
Save the Project.
If you do not save your newly-created project, your data will be lost when the Service Builder is closed.
To import a model file for existing project proceed as follows:
Logon to the SAP NetWeaver Gateway system.
Open transaction SEGW.
The SAP NetWeaver Gateway Service Builder opens.
Click
to open an existing project.
The Open Project window appears.
Either click the view cluster button or press F4 to view the available projects.
Select the project and click
to execute the project.
The project displays in the Service Builder.
Click the change
button on the tool bar.
OR
Right click on Data Model and choose Change.
The project is now open for editing.
Right click on Data Model and in the resulting submenu, select to import a metadata/edmx type file.
An overwrite confirmation message displays.
Click Yes to proceed.
The Select a model file for import window appears.
Select a xml or an edmx file and click Open.
On successful import of the xml or edmx file an message displays confirming the import.
The OData artifacts available in the imported model file will be populated under the respective folders under the project.
Double-click the artifacts to view the details in the mass edit view.
Save the Project.
You can also perform the following activities in the Service Builder after importing the data model:
Make the required changes to the artifacts in the Service Builder.
For more information, see Defining a Data Model.
Include a different OData service (GW) and create an Association.
For information, see Including an OData Service (Gateway).
Import entities from a data source to enhance the model.
For more information, see Importing a Data Source (RFC/BOR Interface).
Generate the runtime objects.
For more information, see Generating Runtime Objects.
Register and maintain the service in the configured Gateway hub systems.
For more information, see Service Maintenance