Hi - Can you please advise if I want to allow a developer to build just a oData service on Netweaver Gateway System based on a existing BAPI in the backend system (say ECC system), do I have to give the developer a core ABAP developer level access on the gateway system? or is there anything like just oData developer level access that only limits the developer to only build oData services but not real ABAP developments like building FMs, DDic etc.?
Developer auth on Gateway system
How to erase cache/session SAP Gateway (iOS)?
Are there any methods that can be called from our SAP Gateway application to not generate a session when user does the login, or logout when the user exit of the application?
We have created an application for iOS and Android devices using SAP Gateway. The connections code has been generated with the tools provided by SAP for Eclipse and Xcode.
Both Android and iOS have a screen on which the user does the login before accessing the data provided by the application.
When user introduce user and password we validate login with the SAP Gateway and if the login is correct we allow it access to the data of the application. The problem comes when once user have successfully logged and return back to the login screen and enter a another user with any password, the SAP Gateway system responds that user exists without validating username and password and shows their data. This error only occurs in the iOS app in Android works fine.
We have found that the SAP Gateway generates a session associated with the user and terminal of the first time that user does login. Thus when user login again with another user the SAP Gateway system really doesn't check user and password and we found with an SAP Gateway open session. The application doesn't call any method to save the connection cache on the phone and we ignore the connection cache.
Thank you very much!
Problems during Fiori installation on NW 7.4 system
Hi guys!
I have problems during Installation of Fiori App "My Leave Request" on NW 7.4 System.
Installation of UI component: UIHCM002 100 worked fine but during Installation of OData Component GBHCM002 600 I got the message
that the Add-on IW_BEP Release 200 is missing and I cannot proceed with the installation.
So far as I know is the Add-on IW_BEP part of the component SAP_GWFND in NW 7.4 and its not possible to install them?
Thx for your help!
BR, René.
SAP NW RFC SDK throws RFC_INVALID_PARAMETER when running sample programs?
Hi there,
I have just downloaded the latest version of the SAP NW RFC SDK (NWRFC_7-20004565.SAR) for Linux 64 bit from the Service Marketplace and am trying to run the demo programs.
NOTE: I removed the "sapnwrfc.ini" from the current directory so that it would not be used at all..
Also note that I can use the OLD RFC SDK and connect happily to the same SAP system I am trying to connect to below using the SAP NW RFC SDK....so I definetly have the cirrect settings.....
So I compiled a CLIENT test program like:
gcc -m64 -Wall -g ./sflightClient.c -I/home/lynton/Desktop/nwrfcsdk/include -L/home/lynton/Desktop/nwrfcsdk/lib -lsapnwrfc -lsapucum -o ./sflightClient
And then passed in VALID paramters to an SAP system I have access to and I keep getting RFC_INVALID_PARAMETER even though I have not touched the code below in the sflightClient.c program
loginParams[0].name = cU("ashost"); loginParams[0].value = argc > 1 ? argv[1] : cU("hostname"); loginParams[1].name = cU("sysnr"); loginParams[1].value = argc > 2 ? argv[2] : cU("50"); loginParams[2].name = cU("user"); loginParams[2].value = argc > 3 ? argv[3] : cU("user"); loginParams[3].name = cU("passwd"); loginParams[3].value = argc > 4 ? argv[4] : cU("******"); loginParams[4].name = cU("client"); loginParams[4].value = argc > 5 ? argv[5] : cU("800"); loginParams[5].name = cU("lang"); loginParams[5].value = cU("EN");
I have also tried the stfcDeepTableServer.c program....and there I put in VALID settings....(and made the parameters UPPERCASE just like the settings in the "sapnwrfc.ini" file....
serverCon[0].name = cU("PROGRAM_ID"); serverCon[0].value = cU("TEST_SERVER"); serverCon[1].name = cU("GWHOST"); serverCon[1].value = cU("test.server"); serverCon[2].name = cU("GWSERV"); serverCon[2].value = cU("sapgw00"); repoCon[0].name = cU("CLIENT"); repoCon[0].value = cU("000"); repoCon[1].name = cU("USER"); repoCon[1].value = cU("BCUSER"); repoCon[2].name = cU("PASSWD"); repoCon[2].value = cU("minisap"); repoCon[3].name = cU("LANG"); repoCon[3].value = cU("EN"); repoCon[4].name = cU("ASHOST"); repoCon[4].value = cU("test.server"); repoCon[5].name = cU("SYSNR"); repoCon[5].value = cU("00"); repoCon[6].name = cU("TRACE"); repoCon[6].value = cU("3");
I have the UUIDD daemon running perfectly on my box, but yet I keep getting this RFC_INVALID_PARAMETER regardless if I just test the SERVER REGISTRATION or a simple client connection.
I am connecting to a NON unicode system but that would not make a difference.....
Any idea what would cause this? Any help would be greatly appreciated ....
Thanks
Lynton
Gateway Basic Authorisation
I am using Gateway to communicate between a web UI front end and a non-SAP back end system.
Please see my earlier question in the ABAP Connectivity space:
I am wondering, is there a way in which I can extract the HTTP header for Authorization, from the Gateway call? and from this extract the Basic Auth base64 encoded string?
I need to use the same authentication for Gateway and an HTTP external connection. I want to pass through the Basic Auth credentials used to access Gateway, all the way through to the external connection.
There is no way to set this up in SM59 for a type G destination. What I want is the same options available in the type H destinations, where you can select "Use current User's credentials".
Please, any advice on how to make this kind of link, from Gateway to an RFC HTTP External connection using the same authorisation credentials.
Alternatively if there is an entirely different solution to the problem, I'm all ears!
Getting data from SAP backend into Gateway Hub
Dear all,
I am new to Netweaver Gateway. In my landscape the IWBEP component has been installed in the Gateway Hub system. In my custom OData service i want to get the data from my backend SAP ERP system using a BAPI.
I have created my custom OData service with the relevant components and have implemented the service using the BAPI method. While implementing the service i referred to the BAPI method from the SAP ERP backend system using the RFC destination (ABAP connection i.e. connection type 3) to the SAP ERP system created in my Gateway hub.
Now when i test the service, the service document and metadata XML are generated correctly. However when i test the entity set, i find that the data is NOT being extracted from the SAP ERP backend system.
What configuration/settings need to be maintained in the custom OData service so that the service refers to the correct SAP backend system? How does the gateway service determine from which system it should extract the data?
regards
Nitesh
Help to implement accept and reject functionalities of PO Approval .
HI all,
I am trying to redefine the inherited methods of ZCL_Z_PORDER_02_DPC_EXT Data Provider Class. And i have redefined the
GetEntityset methods.
PURCHASEORDERHEA_GET_ENTITYSET of PurchaseOrderHeaderCollection EntitySet and
PURCHASEORDERITE_GET_ENTITYSET of PurchaseOrderItemCollection EntitySet .
Following are the URL's to access purchase order and purchase item information.
http://<hostname>:<port>/sap/opu/odata/sap/Z_PORDER_SRV_02/PurchaseOrderHeaderCollection
http://<hostname>:<port>/sap/opu/odata/sap/Z_PORDER_SRV_02/PurchaseOrderItemCollection?$filter=(PONumber eq '4500000003')
But i am finding difficulty to implement accept and reject functionalities of PO Approval . Please help me to
redefine the methods to achieve the accept and reject functionalities of PO Approval .
Connecting to Multiple ECC systems via one Gateway system(Dynamic System Selection)
Hi Experts,
We have multiple ECC systems and one Gateway server. We want to connect to these different ECC systems using one GW system.
I have created System Aliases for these ECC system in GW system. For a service, i added 2 system aliases.
Now we are looking for the solution where UI can provide the system alias (it wants to connect) as a parameter while calling oData Service.
Please help.
Regards,
Rohit
Facing an exception while executing a query operation
Hi Experts,
I have created an Odata service through SEGW tcode. I am able to execute the read operation(instance method).
When I try to execute the query operation I am getting the following exception:-
<code>F2/718</code>
<message>No customer was found with these selection criteria</message>
<code>/IWBEP/CX_SD_GEN_DPC_BUSINS</code>
I have mapped the following BAPIs,
BAPI_CUSTOMER_GETLIST( for Query Operation),
BAPI_CUSTOMER_GETDETAIL2( for Read Operation).
I have also checked that appropriate backend configurations are made and the data is present in backend database tables.
Please help me resolve this issue.
Thanks and regards,
Kawish
How to deploy HTML5 application into Netweaver GateWay system?
Hi All,
We have built a HTML5 based application with java script code to access OData services hosted in NWG.
It is running fine in our local server(tomcat).
Now my question is how to deploy it to Netweaver gateway server.
Please advice asap.
NOTE: It is not a SAP UI5 application.
Thanks & Regards
Basavaraja Kakarla
91-8095624007
Find exact RFC Destination for Multiple backend Systems In SAP Gateway
Hi Gateway developers,
I have requirement,if gateway hub system has multiple backend systems( for example two backend systems: ECC and SRM ) then how hub system can get the suitable backend alias for exact entity collection..
Here i have developed two entities one entity regards: ECC and second one regards SRM system..within this when I run the service it is always taking any of the same alias for both the collections..
Can you please suggest me..
Thanks
Sreenivas Pachva
Error in Update method in NW Gateway
Hi All,
I have used "Create Service (Method => FILE_UPLOAD_CREATE_ENTITY) from Service Implementation" for update data to backend system and i have written logic for update back end system.
When i test in SAP NW Gateway Client i am getting below error
Browser showing below output/error
I have refered http://scn.sap.com/community/netweaver-gateway/blog/2014/03/06/let-s-code-crudq-and-function-import-operations-in-odata-service blog but i couldnt get any idea.
Kindly help me on this
Thanks,
Akshath
Error in Quality system : Unable to execute the Service
Hi All , Am getting error in Quality system while executing the service .
Below is the Error :
<?xml version="1.0" encoding="utf-8" ?> - <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <code>SY/530</code> <message xml:lang="en">No service found for namespace /SAP/, name ZGW_MY_SERVICE, version 0001.</message> - <innererror> <transactionid>520347BC8C0172E9E1000000AC1EAA4D</transactionid> - <errordetails> - <errordetail> <code>/IWBEP/CX_MGW_TECH_EXCEPTION</code> <message>No service found for namespace /SAP/, name ZGW_MY_SERVICE, version 0001.</message> <propertyref /> <severity>error</severity> </errordetail> </errordetails> </innererror> </error>
Thanks ,
Aisurya
Error in using key predicates
Hi all,
When executing the service URL with key predicates i am getting an error raised by exception /IWBEP/CX_MGW_TECH_EXCEPTION (message Internal error occurred, contact your system.).
The Associations, Referential constraints and Navigation properties have been maintained correctly.
The key predicates being passed are:
Airlineid='AA',Connectid='0017',Flightdate=datetime'2013-09-04T00:00:00'
The complete URL looks like:
http://<host>:<port>/sap/opu/odata/SAP/FLIGHTLISTDCR/FlightLists(Airlineid='AA',Connectid='0017',Flightdate=datetime'2013-09-04T00:00:00')/FlightDetail where FlightLists is the name of the Entity set and FlightDetail is the name of the Navigation property. Without the key predicates the entity set returns the desired result.
Metadata
<?xml version="1.0" encoding="utf-8" ?>
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:sap="http://www.sap.com/Protocols/SAPData">
-<edmx:DataServices m:DataServiceVersion="2.0">
-<Schema Namespace="FLIGHTLISTDCR" xml:lang="en" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
-<EntityType Name="FlightDetail" sap:content-version="1">
-<Key>
<PropertyRefName="Airlineid" />
<PropertyRefName="Connectid" />
<PropertyRefName="Flightdate" />
</Key>
<PropertyName="Flighttime" Type="Edm.Int32" Nullable="false" sap:label="Flight time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Distance" Type="Edm.Decimal" Nullable="false" Precision="9" Scale="4" sap:label="Distance"sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="CurrIso" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="ISO code" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Econofree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Businfree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Firstfree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Curr" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Airline local currency" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airlineid" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Airline" sap:sortable="false"sap:filterable="false" />
<PropertyName="Airline" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Airline" sap:creatable="false"sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Connectid" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Connection Number" sap:sortable="false" sap:filterable="false" />
<PropertyName="Price" Type="Edm.Decimal" Nullable="false" Precision="23" Scale="4" sap:label="Airfare" sap:creatable="false"sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Flightdate" Type="Edm.DateTime" Nullable="false" sap:label="Flight Date" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airportfr" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Departure airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Cityfrom" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Depart. city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Arrdate" Type="Edm.DateTime" Nullable="false" sap:label="Arrival date" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airportto" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Destination airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Cityto" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Arrival city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Deptime" Type="Edm.Time" Nullable="false" sap:label="Departure time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Arrtime" Type="Edm.Time" Nullable="false" sap:label="Arrival Time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
</EntityType>
-<EntityType Name="FlightList" sap:content-version="1">
-<Key>
<PropertyRefName="Flightdate" />
<PropertyRefName="Connectid" />
<PropertyRefName="Airlineid" />
</Key>
<PropertyName="Airportto" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Destination airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Cityfrom" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Depart. city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airportfr" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Departure airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Flightdate" Type="Edm.DateTime" Nullable="false" sap:label="Flight Date" sap:sortable="false" sap:filterable="false" />
<PropertyName="Connectid" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Connection Number" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airline" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Airline" sap:creatable="false"sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airlineid" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Airline" sap:sortable="false"sap:filterable="false" />
<PropertyName="Cityto" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Arrival city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Deptime" Type="Edm.Time" Nullable="false" sap:label="Departure time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Arrtime" Type="Edm.Time" Nullable="false" sap:label="Arrival Time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Arrdate" Type="Edm.DateTime" Nullable="false" sap:label="Arrival date" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Price" Type="Edm.Decimal" Nullable="false" Precision="23" Scale="4" sap:label="Airfare"sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Curr" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Airline local currency" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="CurrIso" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="ISO code" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<NavigationPropertyName="FlightDetail" Relationship="FLIGHTLISTDCR.FlightListFlightDetail"FromRole="FromRole_FlightListFlightDetail" ToRole="ToRole_FlightListFlightDetail" />
</EntityType>
-<Association Name="FlightListFlightDetail" sap:content-version="1">
<EndType="FLIGHTLISTDCR.FlightList" Multiplicity="1" Role="FromRole_FlightListFlightDetail" />
<EndType="FLIGHTLISTDCR.FlightDetail" Multiplicity="1" Role="ToRole_FlightListFlightDetail" />
-<ReferentialConstraint>
-<Principal Role="FromRole_FlightListFlightDetail">
<PropertyRefName="Flightdate" />
<PropertyRefName="Connectid" />
<PropertyRefName="Airlineid" />
</Principal>
-<Dependent Role="ToRole_FlightListFlightDetail">
<PropertyRefName="Flightdate" />
<PropertyRefName="Connectid" />
<PropertyRefName="Airline" />
</Dependent>
</ReferentialConstraint>
</Association>
-<EntityContainer Name="FLIGHTLISTDCR" m:IsDefaultEntityContainer="true">
<EntitySetName="FlightDetails" EntityType="FLIGHTLISTDCR.FlightDetail" sap:pageable="false" sap:addressable="false"sap:content-version="1" />
<EntitySetName="FlightLists" EntityType="FLIGHTLISTDCR.FlightList" sap:requires-filter="true" sap:content-version="1" />
-<AssociationSet Name="AssocSet_FlightListFlightDetail" Association="FLIGHTLISTDCR.FlightListFlightDetail"sap:creatable="false" sap:updatable="false" sap:deletable="false" sap:content-version="1">
<EndEntitySet="FlightLists" Role="FromRole_FlightListFlightDetail" />
<EndEntitySet="FlightDetails" Role="ToRole_FlightListFlightDetail" />
</AssociationSet>
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
The Error log message is vague and is as follows:
Internal error occurred, contact your system administrator.
Shall be grateful for any hints which could help me resolve this issue.
regards
Nitesh
Confusion about requirements (NW740)
Hi
We use NW740 with GWFND SPS4 for development (hub).
Our developer wants to access some data in the backend system which is NW731 (ERP6 EHP6 SPS7) and currently without any Gateway components and gets the following error:
Function module "/IWBEP/FM_MGW_MED_LOAD" not found.
As IW_BEP is not installed in the backend this sounds logical.
On the other hand we found following statement (source:
http://help.sap.com/saphelp_gateway20sp06/helpdata/en/62/91ad98b19b4a91bca737fbe442273f/content.htm)
The SAP NetWeaver Gateway core components can be deployed in a standalone system, either behind or in front of the firewall. In addition, you can install the optional components for central hub deployment in your standalone system. For SAP NetWeaver 7.02, 7.03, and 7.31 you can install the componentIW_BEP either in this hub system and/or in the backend system. For SAP NetWeaver 7.40 and higher, the core component SAP_GWFND is installed as standard and includes the functional scope of IW_BEP.
The question now is if we need to add (optional gets required) IW_BEP to the ERP instance or if there is some kind of workaround/change in development for our Gateway application on NW740 (I'm the basis guy and don't know much about the development itself).
Michael
Netweaver Gateway : Multiple Output Tables : Odata
Hi,
I have created a RFC in ECC system. The RFC reads certain values and returns data in three output tables. The corresponding data model has been created in netweaver gateway.
When the portal application is trying to consume this service, it has to specify a particular table in the odata. Thus, to get the data of the three tables, the portal application is hitting the SAP database 3 times.
Could anyone please advise, how can we get the data for all the 3 tables in one go.
Regards,
Jiten
Getting data from SAP backend into Gateway Hub
Dear all,
I am new to Netweaver Gateway. In my landscape the IWBEP component has been installed in the Gateway Hub system. In my custom OData service i want to get the data from my backend SAP ERP system using a BAPI.
I have created my custom OData service with the relevant components and have implemented the service using the BAPI method. While implementing the service i referred to the BAPI method from the SAP ERP backend system using the RFC destination (ABAP connection i.e. connection type 3) to the SAP ERP system created in my Gateway hub.
Now when i test the service, the service document and metadata XML are generated correctly. However when i test the entity set, i find that the data is NOT being extracted from the SAP ERP backend system.
What configuration/settings need to be maintained in the custom OData service so that the service refers to the correct SAP backend system? How does the gateway service determine from which system it should extract the data?
regards
Nitesh
Gateway Basic Authorisation
I am using Gateway to communicate between a web UI front end and a non-SAP back end system.
Please see my earlier question in the ABAP Connectivity space:
I am wondering, is there a way in which I can extract the HTTP header for Authorization, from the Gateway call? and from this extract the Basic Auth base64 encoded string?
I need to use the same authentication for Gateway and an HTTP external connection. I want to pass through the Basic Auth credentials used to access Gateway, all the way through to the external connection.
There is no way to set this up in SM59 for a type G destination. What I want is the same options available in the type H destinations, where you can select "Use current User's credentials".
Please, any advice on how to make this kind of link, from Gateway to an RFC HTTP External connection using the same authorisation credentials.
Alternatively if there is an entirely different solution to the problem, I'm all ears!
Error in using key predicates
Hi all,
When executing the service URL with key predicates i am getting an error raised by exception /IWBEP/CX_MGW_TECH_EXCEPTION (message Internal error occurred, contact your system.).
The Associations, Referential constraints and Navigation properties have been maintained correctly.
The key predicates being passed are:
Airlineid='AA',Connectid='0017',Flightdate=datetime'2013-09-04T00:00:00'
The complete URL looks like:
http://<host>:<port>/sap/opu/odata/SAP/FLIGHTLISTDCR/FlightLists(Airlineid='AA',Connectid='0017',Flightdate=datetime'2013-09-04T00:00:00')/FlightDetail where FlightLists is the name of the Entity set and FlightDetail is the name of the Navigation property. Without the key predicates the entity set returns the desired result.
Metadata
<?xml version="1.0" encoding="utf-8" ?>
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:sap="http://www.sap.com/Protocols/SAPData">
-<edmx:DataServices m:DataServiceVersion="2.0">
-<Schema Namespace="FLIGHTLISTDCR" xml:lang="en" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
-<EntityType Name="FlightDetail" sap:content-version="1">
-<Key>
<PropertyRefName="Airlineid" />
<PropertyRefName="Connectid" />
<PropertyRefName="Flightdate" />
</Key>
<PropertyName="Flighttime" Type="Edm.Int32" Nullable="false" sap:label="Flight time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Distance" Type="Edm.Decimal" Nullable="false" Precision="9" Scale="4" sap:label="Distance"sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="CurrIso" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="ISO code" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Econofree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Businfree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Firstfree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Curr" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Airline local currency" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airlineid" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Airline" sap:sortable="false"sap:filterable="false" />
<PropertyName="Airline" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Airline" sap:creatable="false"sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Connectid" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Connection Number" sap:sortable="false" sap:filterable="false" />
<PropertyName="Price" Type="Edm.Decimal" Nullable="false" Precision="23" Scale="4" sap:label="Airfare" sap:creatable="false"sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Flightdate" Type="Edm.DateTime" Nullable="false" sap:label="Flight Date" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airportfr" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Departure airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Cityfrom" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Depart. city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Arrdate" Type="Edm.DateTime" Nullable="false" sap:label="Arrival date" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airportto" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Destination airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Cityto" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Arrival city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Deptime" Type="Edm.Time" Nullable="false" sap:label="Departure time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Arrtime" Type="Edm.Time" Nullable="false" sap:label="Arrival Time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
</EntityType>
-<EntityType Name="FlightList" sap:content-version="1">
-<Key>
<PropertyRefName="Flightdate" />
<PropertyRefName="Connectid" />
<PropertyRefName="Airlineid" />
</Key>
<PropertyName="Airportto" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Destination airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Cityfrom" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Depart. city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airportfr" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Departure airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Flightdate" Type="Edm.DateTime" Nullable="false" sap:label="Flight Date" sap:sortable="false" sap:filterable="false" />
<PropertyName="Connectid" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Connection Number" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airline" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Airline" sap:creatable="false"sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Airlineid" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Airline" sap:sortable="false"sap:filterable="false" />
<PropertyName="Cityto" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Arrival city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Deptime" Type="Edm.Time" Nullable="false" sap:label="Departure time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Arrtime" Type="Edm.Time" Nullable="false" sap:label="Arrival Time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Arrdate" Type="Edm.DateTime" Nullable="false" sap:label="Arrival date" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Price" Type="Edm.Decimal" Nullable="false" Precision="23" Scale="4" sap:label="Airfare"sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="Curr" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Airline local currency" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<PropertyName="CurrIso" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="ISO code" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
<NavigationPropertyName="FlightDetail" Relationship="FLIGHTLISTDCR.FlightListFlightDetail"FromRole="FromRole_FlightListFlightDetail" ToRole="ToRole_FlightListFlightDetail" />
</EntityType>
-<Association Name="FlightListFlightDetail" sap:content-version="1">
<EndType="FLIGHTLISTDCR.FlightList" Multiplicity="1" Role="FromRole_FlightListFlightDetail" />
<EndType="FLIGHTLISTDCR.FlightDetail" Multiplicity="1" Role="ToRole_FlightListFlightDetail" />
-<ReferentialConstraint>
-<Principal Role="FromRole_FlightListFlightDetail">
<PropertyRefName="Flightdate" />
<PropertyRefName="Connectid" />
<PropertyRefName="Airlineid" />
</Principal>
-<Dependent Role="ToRole_FlightListFlightDetail">
<PropertyRefName="Flightdate" />
<PropertyRefName="Connectid" />
<PropertyRefName="Airline" />
</Dependent>
</ReferentialConstraint>
</Association>
-<EntityContainer Name="FLIGHTLISTDCR" m:IsDefaultEntityContainer="true">
<EntitySetName="FlightDetails" EntityType="FLIGHTLISTDCR.FlightDetail" sap:pageable="false" sap:addressable="false"sap:content-version="1" />
<EntitySetName="FlightLists" EntityType="FLIGHTLISTDCR.FlightList" sap:requires-filter="true" sap:content-version="1" />
-<AssociationSet Name="AssocSet_FlightListFlightDetail" Association="FLIGHTLISTDCR.FlightListFlightDetail"sap:creatable="false" sap:updatable="false" sap:deletable="false" sap:content-version="1">
<EndEntitySet="FlightLists" Role="FromRole_FlightListFlightDetail" />
<EndEntitySet="FlightDetails" Role="ToRole_FlightListFlightDetail" />
</AssociationSet>
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
The Error log message is vague and is as follows:
Internal error occurred, contact your system administrator.
Shall be grateful for any hints which could help me resolve this issue.
regards
Nitesh
Association/Navigation without key properties
Hi Experts,
I'm trying to make an association/navigation to another Entity, but this for a property without being marked as a key.
Example the EPM test service from http://scn.sap.com/docs/DOC-31221
The model: http://scn.sap.com/servlet/JiveServlet/showImage/102-44073-2-246387/Relationen.png
I already builded the SalesOrder association/navigation to the SalesOrderItem.
But I cannot seem to create the association/navigation from SalesOrderItem to the Product, in SEGW I always have to define the referential constraint with the key of the Entity. In SalesOrderItem, the productId property is not a key, and I can't imagine that I have to set it as a key.
Thanks in advance
Regards,
Wouter