Overview
The Recipe plugin loads recipes into SAP. It calls ZBAPI_RCP_MIGR, a custom function module in the customer namespace, once for every source record.
You can find the plugin in the SAP Targets group on the left panel of the Designer section. It is a target plugin: map fields from any source (Excel, database, SAP table, Python, and so on) to it.
ZBAPI_RCP_MIGR is a customer-namespace (Z*) custom function module, not a standard SAP function module or BAPI. It must be created in your SAP system before you use the plugin.
Connecting to SAP
Open the Connection section of the plugin and fill in Connection Parameters on one of three tabs.
Password Manager
- Select the SAP System. Entries come from the Password Manager.
- Select the Server Type: Application Server or Message Server.
The Password Manager entry should have the following keys in its Options: App Server Host, Client, Language, SAP Router, System Number, System ID. You can take all of them from the SAP System options template.
Application Server
Fill in Server Host, System Number, SAPRouter (optional), User, Password, Client, and Language.
Message Server
Fill in SID, Server Host, Logon Group, Server Service, SAPRouter (optional), User, Password, Client, and Language.
Connection settings
The Settings tab holds the connection pool settings: IDLE_TIMEOUT, POOL_SIZE, and MAX_POOL_SIZE. The Notes button opens notes you can keep with the plugin.
After you fill in the parameters, click Connect. The plugin reads the interface of ZBAPI_RCP_MIGR from SAP and builds its structure.
Fields
Open the Fields section to choose which parameters appear on the canvas. The parameters are grouped by type, and each tab appears only if the function module has parameters of that type:
| Tab | Content |
|---|---|
| Import | Single fields and structures sent to SAP. |
| Export | Values returned by SAP. Map them to a following plugin if needed. |
| Changing | Parameters that are both sent and returned. |
| Tables | Table parameters, including the returned messages table. |
Use Select Fields on a structure or table to choose its fields, or Select All to add all of them.
Each field shows small badges for its settings: M (mandatory), D (default value), U (upper case), Z (leading zeros), and T (truncate).
Field settings
Click a field on the canvas to open its settings:
| Setting | Description |
|---|---|
| Default Value | Value used for the field. Choose No Default Value., Ignore Source. (always use the default value), or Only If Source Empty. |
| Convert To Upper Case | Converts the value to upper case. |
| Add Leading Zeros | Pads the value with leading zeros to the field length. |
| Truncate | For decimal and floating-point fields only: cuts extra decimal places instead of rounding them. |
Run-time behavior
For each source record, the plugin fills the selected parameters, converts the values to the SAP internal format, and calls ZBAPI_RCP_MIGR. Import and export parameters are written to the log.
The function module name is fixed; you can't select another one. ZBAPI_RCP_MIGR is the only SAP call per record. The plugin doesn't call BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK, so the function module must save (commit) the recipe itself.
Table parameters get one row for every row the mapped source returns for the record, so you can send several rows in one call.
Simulation mode
In simulation mode, the plugin sets the IV_MODE parameter to X so that ZBAPI_RCP_MIGR runs as a test. Whether anything is written in test mode depends on how ZBAPI_RCP_MIGR is implemented in your system.
Log
For each successful record, the log shows the Recipe Key, Recipe Type, and Recipe Description columns. They are taken from the first row of the LT_RCP table returned by SAP (fields RCP_NAME, RCP_TYPE_ID and DESCR). If SAP returns an error, the log row is marked as an error with the SAP message.
- Messages are read from the
RETURN,ES_RETURN,ET_RETURNorET_RETURNSparameter, if present. A record is an error if any message has typeE,AorX; all messages are shown with the record. - For an ABAP exception, the error shows the exception text, the message class and the message number.
- If the function module tries to open an SAP GUI screen, the error refers to SAP Note 1258724 and the migration stops.
Prerequisites
ZBAPI_RCP_MIGRcreated and remote-enabled in your SAP system (see the warning above).- SAP .NET Connector installed on the VeloXm computer.
- An SAP user with RFC authorization for
ZBAPI_RCP_MIGRand the recipe authorizations the function module checks.
Our experienced team of experts has the capability to develop customized solutions to fit your individual needs.
Please contact us for more information on how we can help you.