Sample transaction-based connection and Direct Transfer activity

This section illustrates a transaction-based connection and the Direct Transfer activity that uses it.

Connection document

A sample transaction-based SAP connection document is shown below:

The SAP connection document has a field called Screen Input Field Definition that serves as a multi-value field containing all information required for a given transaction.

A Transaction-based activity (update in R3) must always have this Screen Input Field Definition filled out. This field holds the metadata related to the transaction that you want to execute. The metadata for a given transaction derives from your analysis of the given transaction. It contains information about:
  • The programs and screens to be used
  • The OK codes to be executed
Note: Do not fill in the Screen Input Definition unless you are calling a transaction. If you are calling a transaction, you must fill in this field.

Specifying a screen

When you want to use a new screen, add the following entry:

$<Program>=<Screen> for example $SAPMF02D=0101

The ‘=’ operator indicates that no data is passed to <Program> when the activity is executed. Whenever you assign a value to a field with the ‘=’ operator, this assignment is considered to be constant during the execution of the activity.

Specifying OK codes and constant values

You can use the ‘=’ operator for constant assignments. If your source data contains OK codes on a per- record-basis, you may want to use constant assignments for all the OK codes.


An example is shown below.


You can also use these constant assignments for other fields in your transactions that always have the same value (for example Organizational Unit, Factory ID, and so on.).

Fields to be mapped with your source

All remaining fields that receive values from the Source do not have any assignment. You just need to enter all fields used by the transaction.


An example is shown below.


Loop fields

Some transactions do contain so-called loop fields. You may think of loop fields in much the same way as arrays. Assume you want to create an order in ECC. That order has multiple line items. Each line item is referred to by the index of its row position.

For example, Transaction ME21 contains these loop fields with two line items each:

Entry order

The order of your field list is somewhat significant. The first entry must be a $Program=Screen statement. After that, you must list all fields that belong to that screen. Before you can enter fields that belong to another screen, you must add another $Program=Screen statement, as shown below.
<Field1 for Screen 1>
<Field2 for Screen 1>
<Fieldn for Screen 1>
<Field1 for Screen 2>
<Field2 for Screen 2>
<Fieldn for Screen 2>

Activity document

A Direct Transfer activity document is used as an example in this section, however, the comments also pertain to a Virtual Fields activity document.

When calling a transaction, you must enable the "Target Metadata is a Stored Procedure" option.

To access output parameter support, select "Accept Return Values into Source". In the resultant field mapping section, map fields to take data from the EXPORTS of your TRANSACTION and send them back to the Source.

Note: In a Transaction-based activity, the SAP connection must be the Target. Transactions cannot be used to read data because batch mode transaction processing in ECC does not return a result set.

Specifying Metadata

When you create metadata you must map the Source fields with the transaction previously defined in the "Connection Options" field of the connection document.

Although you need to specify at least one field in the Key(s) section of the activity, that entry will not be treated as a key field. Internally a list of all fields derived from the Key List and the Field list are delivered to the transaction.
Note: In Virtual Fields Delete Activities, you must supply fields in the Field(s) List. No mapping will occur for this field. Only the Key(s) will be mapped and the corresponding value passed from the Domino document to the SAP Connector.
Note: The "Table Name" field must contain the ECC transaction code.

Specifying a select statement

You can add a field to your data Source that indicates whether source data has been changed and, if so, that you want to pass the change to ECC. For example, with Notes as the Source, you could check for field "IsModified" in the Form "Customer". The corresponding Select Statement is shown below.

SELECT Form = "Customer" & IsModified = "1"

Using the stored procedure option

Transaction-based activities must be processed through a stored procedure call. Enable the "Target Metadata is Stored Procedure" option on each transaction-based activity document.