Showing posts with label sap web ide. Show all posts
SAP Web IDE Setup for MTA

SAP Web IDE Setup for MTA

Sanjo Thomas•00:26:00

 To setup MTA, we will initially need access of SAP Web IDE. Once you have access of the SAP Web IDE, follow the given steps to configure an MTA application:

Step 01: Open your web IDE and right click on your workspace and click Project from Template under New as shown below:


Step 02: Choose category as All categories, environment as Cloud Foundry and search Multi-Target Application as shown below:


Step 03: Select Multi-Target Application and click Next. Give a project name and its description in upcoming screens and also check mark “Use HTML5 Application Repository” as shown below and click Finish:

This project will be empty as of now with only one .yaml file.

Step 04: For our UI5 App, we will need an HTML5 Module. Right click on your project and select HTML5 Module under New, as shown below:

Select Category as SAP Fiori Application and search UI5. Select SAPUI5 Application as shown below:


Later, give a Module Name and Namespace for UI5 application. Then proceed to further screens and finish. It will add a HTML module under your MTA application. In our case, we have kept both names same as shown below:

Step 05: For our Node.js App, we will need a Node.js Module. Right click on your project and select Node.js Module under New, as shown below:

Give a module name (xs.js, in our case), a description, and check mark “Enable XSJS support” as shown below, and click finish:

Step 06: Now, we are ready to push our App to Cloud Foundry so that the API that we are going to make is always up and accessible worldwide. For this, we will change the Project Settings so that our project points to the correct cloud foundry settings.

Right click on your project and click Project Settings under Project as shown below:

Here, you need to click on Cloud Foundry under Project section and just select the available API Endpoint. It will bring all other data as shown below [This will be prefilled unlike the image shown below]:

Now, we are ready to deploy/build our project. For that just click Build as shown below, it will take care of everything by itself.

That’s it. Now, we are ready to work on our coding part of the API.

 

Read more
How to import Web IDE SAPUI5 projects into Eclipse.

How to import Web IDE SAPUI5 projects into Eclipse.

Sanjo Thomas•07:45:00
Hi Developers!!  In this blog I will simplify the steps to import a sapui5 project into eclipse, originally created in SAP Web IDE. So let’s see how it’s done stepwise.
Steps
1) Right click on the project’s webapp folder  in SAP web IDE, and click on Export.

2) Now, in your Eclipse create a new project.

3) Right click on WebContent folder, and select import.

4) Choose “General>Archieve File”

5) Browse the exported webapp.zip file and click the select all button, and click on Finish button.

6) That’s it, you are ready to run the application in Eclipse. You may face one issue here, while running the application “sap not defined”.
To remove this error, you just need to correct the path of sapui5 resource provide in index.html file.
<script id="sap-ui-bootstrap"
src="../../resources/sap-ui-core.js"
……
> 
</script>
Replace the highlighted code with:
<script id="sap-ui-bootstrap"
src="resources/sap-ui-core.js"
……
> 
</script>

That’s it. Stay tuned for more tutorials on SAPUI5. ;)

Read more