Skip Headers
Oracle® Fusion Middleware Getting Started with SAP ABAP ERP Adapter for Oracle Data Integrator
11g Release 1 (11.1.1)

Part Number E39326-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

5 Reverse-Engineering Data Models

This chapter describes how to reverse-engineer the Oracle target and SAP source data models.

It contains the following topics:

Reverse-Engineering the Oracle Target

To reverse-engineer the Oracle data model:

  1. Connect to Designer.

  2. In the Models tree view, click Insert Model.

  3. In the Definition tab, enter the model parameters as shown below:

    Description of image018.jpg follows
    Description of the illustration image018.jpg

  4. In the Reverse tab, select the Global context.

    Description of image020.jpg follows
    Description of the illustration image020.jpg

  5. Click Reverse, then OK to save your model.

  6. The WS_GEO_DS datastore appears in your Oracle model, as shown below.

    Description of image022.jpg follows
    Description of the illustration image022.jpg

Reverse-Engineering the SAP Source Datastores

To reverse-engineer the SAP Source datastores you need to perform the following tasks:

  1. Creating the Data Model

  2. Validating the SAP Connection

  3. Starting the Reverse-Engineering Process

This section also includes the following topics:

Creating the Data Model

  1. In the Models tree view, click Insert Model.

  2. In the Definition tab, enter the model parameters as shown below. You must select the SAP ABAP technology and the Logical Schema previously created (in our example it is the LOGICAL_SAP_ERP Logical Schema).

    Description of image024.jpg follows
    Description of the illustration image024.jpg

  3. In the Reverse tab:

    1. Select the Global context.

    2. Select Customized option.

    3. Select the RKM SAP ERP Connection Test you have imported in the SAP ERP Demo project.

Validating the SAP Connection

  1. In the Models tree view, open the SAP ERP Source Model.

  2. Click Reverse and confirm the start of the reverse-engineering process. This process runs two tests:

    • Establish a test connection to the SAP system and

    • Validate the proper setup of SAP JCo by displaying the About dialog.

  3. In a few seconds, you should see the SAP JCo-About dialog as shown here:

    Description of image026.jpg follows
    Description of the illustration image026.jpg

    Please verify the JCo version number (see "System Requirements and Certification" for more details) and verify that a path for the JCo Library is given (.dll for Windows). If this is not the case or you see any error message in this about dialog, please review the SAP JCo installation, as described in your SAP JCo package, and run this test again.

    Note:

    Closing the JCo-About-Dialog will also close ODI.

  4. Once you have validated SAP JCo installation, open ODI Operator.

  5. In the Operator, expand the Reverse-Engineering session down to the task level.

  6. Verify whether the task "Test SAP Connection" has been executed successfully. If not, view the task details to identify the connection problem. The output of this task must contain Successfully connected to SAP System. If not, the connection test has failed and the connection problem must be analyzed before you continue.

    Do not continue until you have successfully validated the SAP connection!

Note:

If you want to validate the SAP connectivity independent of ODI, please see Appendix C, "SAP Stand-Alone Connection Test."

Starting the Reverse-Engineering Process

To start the reverse-engineering process of the SAP ERP datastores:

  1. In the Models tree view, open the SAP ERP Source Model.

  2. In the Reverse tab:

    1. Select the Global context.

    2. Select the Customized option.

    3. Select the RKM SAP ERP you have imported in the SAP ERP Demo project.

    4. Set the USE_GUI KM option to Yes.

    5. For first time RKM use only: Set SAP_TRANSPORT_LAYER_NAME to the name of the transport layer your SAP basis admin has provided you with.

      Caution:

      Pay particular attention to provide the correct value for the SAP_TRANSPORT_LAYER_NAME option. If an invalid value is used during the first time installation, a significant delay in the connector installation may be caused.

    6. For first time RKM use only: If you are using a custom value for KM option SAP_FUNCTION_GROUP_NAME, this function group must not exist prior the first execution of the RKM (ABAP_UPLOAD=true).

    7. For first time RKM use only: Set UPLOAD_ABAP_CODE to Yes. After the first execution this value must be set back to No.

    8. Set other parameters according to your SAP configuration. See the Oracle Fusion Middleware Application Adapters Guide for Oracle Data Integrator for more information on the RKM options.

      Description of image028.jpg follows
      Description of the illustration image028.jpg

  3. Click Apply to save your changes.

  4. Click Reverse to start the reverse-engineering process.

  5. Click OK.

  6. The Sessions Started Dialog is displayed.

  7. Click OK.

  8. Set UPLOAD_ABAP_CODE back to No.

  9. For first time RKM use only: Validate in Operator that the session is now in status running. If session has failed, please validate settings. Do not move on until all installation steps have been completed successfully.

Using the SAP Metadata Browser

As you have set the USE_GUI option to Yes, the RKM displays in the SAP Metadata Browser the SAP objects organized in the tree view as shown below.

Note:

In case that the below dialog does not show up, see ODI Operator for details and read the log file <System Temp Dir>/sap_rkm_erp_<ODI Session Number>.log.

Refer to Section 8.7.4, "Log Files," in Oracle Fusion Middleware Application Adapters Guide for Oracle Data Integrator for more details.

Description of image030.jpg follows
Description of the illustration image030.jpg

The Tree View

The SAP Modules are organized into a tree view. Only the SAP Modules available to the current user are displayed. By expanding the tree view, you can see SAP tables, and select those that you want to reverse-engineer.

Note that only the tables selected in the tree view are reverse-engineered.

Description of image032.jpg follows
Description of the illustration image032.jpg

The Search Panel

The Search option group allows you search specific objects in the browser, based on:

  • Table Name

  • Short Description

  • Application Component

  • Package

For the example project, the T005T and T005U country tables are used:

  1. Enter T005T in the Table Name field and click Search to find the first table to reverse-engineer. Select this table.

  2. Enter T005U in the Table Name field and click Search to find the second table to reverse-engineer. Select this table.

  3. Click Reverse.

  4. Oracle Data Integrator starts the reverse-engineering process on the selected datastores. The reverse-engineered datastores appear under the Model.

Reverse-Engineering Without GUI

If you want to perform a reverse-engineering without using the SAP Metadata Browser, you can enter the following parameters in the SAP ERP KM options:

  • USE_GUI: No

  • SAP_TABLES_NAME : T005T, T005U

With this configuration, the tables will be reverse-engineered without displaying the SAP Metadata Browser.

By using the appropriate KM options, you can also select a filter for the reversed tables based on for example a SAP Module or a Package name. You can also specify a table name mask in the Mask field of the Reverse tab to filter table names.

Refer to the Oracle Fusion Middleware Application Adapters Guide for Oracle Data Integrator for more information on the RKM options.

Note:

It is not possible to view the data in the SAP ERP tables from Oracle Data Integrator.

What happens when you reverse-engineer SAP ERP tables?

First, Oracle Data Integrator uploads in the SAP system ABAP code allowing for retrieving the SAP metadata. This RFC is uploaded only if the UPLOAD_ABAP_CODE option is selected (this option is typically activated only once). The ABAP programs are generated in the SAP function group given in the SAP_FUNCTION_GROUP RKM option.

Once this code is set up on SAP, Oracle Data Integrator is able to retrieve the SAP metadata and to display it in the SAP Metadata Browser. Selected metadata is then reverse-engineered from SAP into the Oracle Data Integrator repository. The repository only contains the description of the SAP metadata, and no data at all.

In addition to the table definitions organized and enriched with user-friendly information, the keys and indexes definitions are also retrieved. The model appearing in Oracle Data Integrator shows all the information required for performing integration tasks on the SAP ERP Model.