OutSystems Platform allows you to integrate your application with an SAP system and call its remote functions. Learn more on how to import a SAP remote function.

Actions corresponding to imported SAP remote functions are created under the SAP connection. To understand the data types and structures created for input and output parameters, read SAP Data Types to OutSystems Data Types.

Properties

Property

Description

Optionality

Default value

Obs.

Name

Name of the remote function in the OutSystems module.

Mandatory

Parsed name from the remote function in SAP.

 

Description

Description of the SAP remote function.

Optional

Description of the remote function in SAP.

 

Original Name

The name of the remote function invoked in SAP.

 

 

Read-only

Dynamic Logic (this section only appears when you add Dynamic Login to the SAP Connection)

Username

The username for authenticating the call to the SAP remote function.

Mandatory

 

 

Password

The password for authenticating the call to the SAP remote function.

Mandatory

 

 

Flow

When an SAP remote function is called from your application in OutSystems, this flow is executed:

  1. OnBeforeConnection() Callback: This is the first step when calling an SAP remote function. Here, you can implement other SAP authentication methods (using the extensibility API), like Logon Tickets or certificates. Learn more about the OnBeforeConnection callback;
  2. Connect to SAP & Begin Context: In this step, the connection is established to SAP - by default, the credentials used for authentication are the ones provided when you set up the SAP connection (see other SAP authentication methods).  After the connection is established, a context in SAP is started for calling the SAP remote function;
  3. OnBeforeCall() Callback: This step occurs right before calling the SAP remote function. You can use it to customize values to be sent to SAP. Learn more about the OnBeforeCall callback;
  4. Call SAP Remote Function: The remote function is executed in the SAP system;
  5. OnAfterCall Callback: This step occurs right after receiving the result from a SAP remote function call. You can use it to customize values returned by SAP. Learn more about the OnAfterCall callback;
  6. Commit/Rollback & End Context: In this last step, changes made in SAP are commited. In case of error, changes are rolled back, instead. The context in SAP is ended.

To can call multiple SAP remote functions and have all changes committed only at end, read more about executing stateful calls.

See Also

SAP Connection | SAP Extensibility API