

# Application integration
<a name="application-integration"></a>

Deploy [Amazon API Gateway](https://docs.amazonaws.cn/apigateway/latest/developerguide/welcome.html) to extract data out of SAP S/4HANA via `HTTP` API. API Gateway can consume data from IDOC, BAPI, and RFC. These need to be translated to a web service call. For more information, see [Amazon blogs](https://www.amazonaws.cn/blogs/awsforsap/category/application-services/amazon-api-gateway-application-services/). The following image shows this scenario.

![Data flow with Amazon API Gateway](http://docs.amazonaws.cn/en_us/sap/latest/general/images/data-integration.png)


Data flow

1. RISE with SAP VPC is connected to your Amazon account not managed by SAP, via Amazon Transit Gateway.

1. Amazon API Gateway is configured to route the authentication to Amazon Lambda and Amazon Cognito

1. Amazon Cognito authenticates the session.

1. Once authenticated, Amazon API Gateway routes the package to Amazon Lambda.

1.  Amazon Lambda stores the data in an Amazon S3 bucket.