You can set the namespace alias for an annotation target with method /IWBEP/IF_MGW_VOCAN_ANN_TARGET~SET_NAMESPACE_QUALIFIER.
For handling of the schema namespace by the application the following API method is available: /IWBEP/IF_MGW_ODATA_MODEL~SET_SCHEMA_NAMESPACE.
Syntax
Example: model->set_schema_namespace('Tea_test_application_NS').
The schema namespace appears in the metadata document as follows:
1. <Schema Namespace="Tea_test_application_NS" xml:lang="en".. 2. <Property Name="Location" Type="Tea_test_application_NS.CT_Location" Nullable="false" /> 3. <NavigationProperty Name="My_Team" Relationship="Tea_test_application_NS.Team_of_Employee" FromRole="FromRole_Team_of_Employee" ToRole="ToRole_Team_of_Employee" /> 4. <Association Name="Team_of_Employee" sap:content-version="1"> <End Type="Tea_test_application_NS.Worker" Multiplicity="*" Role="FromRole_Team_of_Employee" /> <End Type="Tea_test_application_NS.Team" Multiplicity="1" Role="ToRole_Team_of_Employee" /> 5. <EntityContainer Name="Tea_test_application_NS_Entities" m:IsDefaultEntityContainer="true"/> 6. <ComplexType Name="CT_Location"> <Property Name="Country" Type="Edm.String" MaxLength="255" sap:text="Country" /> <Property Name="City" Type="Tea_test_application_NS.CT_City" Nullable="false" /> <Property Name="Complex_type_City" Type="Tea_test_application_NS.CT_City" Nullable="false" /> </ComplexType>
For more information, see /IWBEP/IF_MGW_ODATA_MODEL.