Retrieving an SAP function - 6.3

Talend Data Fabric Studio User Guide

English (United States)
Talend Data Fabric
Talend Studio
Data Quality and Preparation
Design and Development

In this step, we will retrieve an SAP function and the schema describing the input and output data of the function.

  1. In the Repository tree view, right-click the newly created SAP connection and select Retrieve Bapi from the contextual menu. The SAP function wizard opens up.

    In the Name Filter field, enter the filter condition for the function name if needed. To use the custom function Z_TALEND_READ_TABLE, you need to install an SAP module provided under the directory <Talend_Studio>\plugins\org.talend.libraries.sap_<version>\resources. For how to install the SAP module, see the file readme.txt under the directory.

    Click Search. All SAP functions that meet the filter condition will be listed in the Functions area.

  2. Double-click the name of the function of interest in the Functions area. The input and output parameters will be displayed in the Parameter tab.

  3. Click the Test-it view to test the recuperation of the SAP data.

  4. Click the Value cell for the corresponding input parameter that needs an input value, and then click the [...] button in the cell and enter the value in the pop-up [Setup input parameter] dialog box.

    Click OK to validate and save the settings.

  5. Click Run to get the values of the output parameters returned by the function in the Output Parameters(Preview) table.

    Click Next to proceed to the next step.

  6. Select the input and output schemas of interest.

  7. Click Finish. The function and its schemas of interest will be saved under the SAP Bapi folder under your SAP connection in the Repository tree view.

    If you need to further edit them, right-click the function and select Edit Bapi from the contextual menu to open this wizard again and make your modifications.

  8. You can also retrieve the input and output schemas as XML metadata in either of the following ways:

    • Select the Import schema as xml metadata check box and the input and output schemas of interest in the sixth step.

    • Right-click the name of the function that you have just retrieved under the SAP Bapi folder and select Retrieve As Xml Metadata from the contextual menu.

    The selected schema will be saved under the File xml node in the Repository tree view. For the usage of the XML metadata, see the scenario of tSAPBapi in Talend Components Reference Guide.