Calling SAP RFC Function Modules from RedwoodScript

You can call SAP RFC function modules directly from within RedwoodScript Process Definitions. This can be useful for automating transactions that are not implemented as ABAP programs. However, some setup and custom development work is necessary. To enable this functionality:

  1. Run the SAP_ExportFunctionModuleInterface Process Definition. In the Function Module Name Parameter, enter the name of the RFC function module you want to access. The Process Definition creates a ZIP Process file named fm_interface.zip, containing XML files for each RFC function module.

  2. Send the ZIP file to Redwood Support. Redwood Engineering creates Java code for each RFC function module, then Redwood Support returns it as a Java file or a ZIP file containing Java files.

  3. Create a Library and click the Sources tab.

  4. For each Java file:

    1. Click Add, then paste the contents of the Java file into the Source field.

    2. Locate the line that begins with package.

    3. Change the name of the package from com.redwood.scheduler.custom.package to something that uniquely identifies your organization (for example, com.redwood.scheduler.custom.MyCompanyName.project). Do not change the part of the package name shown in red.

  5. Create a RedwoodScript Process Definition to call the SAP API.

  6. Select the library from step 3 from the Library dropdown list.

  7. In the Source field, import the package identified in step 3, and use it to make calls to the RFC function module.