Skip to Content
0

How to configure SAPUI5 project Web IDE to Eclipse?

Jan 12, 2017 at 03:38 PM

153

avatar image

Hello All,

I have configured the SAPUI5 appliication on eclipse from SAP Web IDE as mentioned in the below link

SAP Web IDE to Eclipse

But i am unable to run the application on Abap Server as i am facing some issues. I think there is some problem with my folder structure. Please have a look and guide me on this.

I have 2 index.html file now. I think this is the issue. Please help.

Again where and how can i give my odata service url. As of now i am using manifest.json file

and in models section providing the following values:

"models": {
			"i18n": {
				"type": "sap.ui.model.resource.ResourceModel",
				"settings": {
					"bundleName": "hello.i18n.i18n"
				}
			},
			"invoice": {
				
				"uri":"http://domainName:portNumber/sap/opu/odata/SAP/ZEMPLOYEE_INFORMATION_SRV_01/"
			}
		}
10 |10000 characters needed characters left characters exceeded

Hi, there is no problem with my service url...I think my eclipse folder structure is not proper and the files location pointed in those files like.

sap.ui.define([
	"sap/ui/core/UIComponent",
	"sap/ui/Device",
	"hello/model/models",
   "sap/ui/model/json/JSONModel",
   "sap/ui/model/resource/ResourceModel",
	"hello/controller/HelloDialog"
   
], function(UIComponent, Device, models, JSONModel, ResourceModel, HelloDialog) {
	"use strict";
	return UIComponent.extend("hello.Component", {
             metadata: {
			//rootView: "hello.view.App",
			manifest:{
				"_version": "1.1.0",
				"sap.app": {
					"_version": "1.1.0",
					"id": "hello",
					"type": "application",
					"i18n": "i18n/i18n.properties",
					"applicationVersion": {
						"version": "1.0.0"
					},
					"title": "{{appTitle}}",
					"description": "{{appDescription}}",
					"sourceTemplate": {
						"id": "servicecatalog.connectivityComponent",
						"version": "0.0.0"
					},
}}
0
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Jun Wu Jan 12, 2017 at 05:09 PM
0

what url you are using? any error?

Share
10 |10000 characters needed characters left characters exceeded
Jamie Cawley
Jan 13, 2017 at 01:22 PM
0

The service url should be relative. What error do you get when trying to run it? What does the folder structure in abap look like?

Regards,

Jamie

SAP - Technology RIG

Share
10 |10000 characters needed characters left characters exceeded
Ossi Makinen Jan 13, 2017 at 01:48 PM
0

Hi!

Move the stuff under "webapp" folder to "WebContent" folder. Then fix your relative paths.

This blog is helpful.

br, Ossi M

Share
10 |10000 characters needed characters left characters exceeded