Posted on

5 Steps to Bind Service to Application in SAP® BTP

SAP® BTP Blogs Series Covers:

  1. 5 Simple Steps to Setup and Get Started with SAP® BTP
  2. 5 Steps to Deploy Application in SAP® BTP
  3. 5 Steps to Bind Service to Application in SAP® BTP

This blog is a part of the End-to-End SAP® BTP and Cloud Bundle


  1. Choose a Service:

    Choose a service from the SAP® BTP marketplace that you want to bind to your application.For example a Database(DB) service like PostgreSQL.

  2. Create a Service Instance:

    Create a service instance of the chosen service in your SAP® BTP space. With CF CLI we can use the command

    cf create-service [service-name] trial [name-given-to-instance]

  3. Bind the Service:

    Bind the service Instance to your Application, by using the Cloud Foundry CLI or the SAP® BTP cockpit to bind the service instance manually. Also, service-binding can be done by passing service information with the Manifest.YML file.

  4. VCAP Variable:

    VCAP is an environment variable in a JSON data format that is provided to an Application when it is hosted in Cloud Foundry (SAP® BTP), this variable act as a way to share the information that the application needs to connect to the service instance.

  5. Use the Service

    Once the Service is Bound you will get the required credentials to connect to the service via VCAP environment variable. After the connection to the service, you can use the service instance. Based on the service if it is a Database, server, messaging queue, etc. the operation related to connecting and usage will be different, which needs to be handled accordingly in the application.

Posted on

5 Steps to Deploy Application in SAP® BTP

SAP® BTP Blogs Series Covers:

  1. 5 Simple Steps to Setup and Get Started with SAP® BTP
  2. 5 Steps to Deploy Application in SAP® BTP
  3. 5 Steps to Bind Service to Application in SAP® BTP

This blog is a part of the End-to-End SAP® BTP and Cloud Bundle


  1. Prepare your Application:

    Make sure your application is ready to be deployed and meets the requirements for deployment to SAP® BTP.

  2. Connect to SAP® BTP:

    Connect to the SAP® BTP environment using a Cloud Foundry CLI or a Web-based interface.


    Login to CF CLI Using:

    cf login -a [API-END] -o [ORG] -s [Space]

    After that, one needs to enter the prompt password in CLI.

  3. Choose a Deployment Method:

    Decide on a deployment method using the Cloud Foundry CLI or a web-based interface such as the SAP® BTP cockpit. Application Buildpack needs to be also checked if the runtime environment which the Application need is present.


    To check available buildpacks use command

    cf buildpack

  4. Create a Deployment Descriptor:

    Create a deployment descriptor, such as a manifest(YAML or YML) file, that specifies the configuration for your application.

  5. Deploy and Monitor App:

    Use below CLI command to Push Application to SAP® BTP
    cf push [App-Name]

Posted on

5 Simple Steps to Setup and Get Started with SAP® BTP

SAP® BTP Blogs Series Covers:

  1. 5 Simple Steps to Setup and Get Started with SAP® BTP
  2. 5 Steps to Deploy Application in SAP® BTP
  3. 5 Steps to Bind Service to Application in SAP® BTP

This blog is a part of the End-to-End SAP® BTP and Cloud Bundle


  1. Create an Account and Login:

    Start by creating SAP® BTP Account if you don’t have one already. Log in to your SAP® Cloud Account, go to the SAP® BTP Console, and choose the SAP® BTP service.

  2. Create Subaccount:

    Subaccount is 1-to-1 associated with Org and Org acts like a Container for Space.

  3. Assign Quota:

    A quota is a set of limits that define the maximum amount of resources (e.g. memory, CPU, storage) consumed by an organization (Org) or a space within an Org.

  4. Create a Space:

    One Subaccount can have many spaces, it is the place where the Applications are deployed.

  5. Create Services or Deploy Apps

    Inside spaces, you have capabilities to Create Services and Deploy Apps.