Skip to Content
avatar image
Former Member

How to configure SAPUI5 project Web IDE to Eclipse?

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/"
			}
		}
Add comment
10|10000 characters needed characters exceeded

  • Former Member

    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"
    					},
    }}
  • Get RSS Feed

3 Answers

  • Jan 12, 2017 at 05:09 PM

    what url you are using? any error?

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2017 at 01:22 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2017 at 01:48 PM

    Hi!

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

    This blog is helpful.

    br, Ossi M

    Add comment
    10|10000 characters needed characters exceeded