(GLUE-1812) ABAP Based Extractor

ABAP Based extractor allows you to use ABAP code as a data source.

Use the following procedure:

  1. In Extractor Workbench, right-click on ABAP to Storage and choose Create Extractor

2. Fill in following entries:

  • Result Structure - SAP table/structure that represents source structure of data
  • Target Table HIVE - target GLUE table
  • Input Structure - SAP table/structure, that will serve as a filter for class, that is providing data - similar to select-options
  • Class Name - SAP class, that implements interface /DVD/GL_EXT_IF_ABAP

Please note: that Target Structure section is automatically generated and its content depends on the defined Input Structure.

3. Save & Activate

4. The next step is to create a (GLUE-1812) Variant.

Technical details

To use a Class as a Data provider, the class must implement interface /DVD/GL_EXT_IF_ABAP.

The interface contains 3 methods:

  • INIT - serves for initialization of required information for extraction process; input parameter is select-options from variant
  • HAS_DATA - signalizes extraction process, if there are still some data to extract
  • GET_NEXT_PACKAGE - provides data that will be replicated to HADOOP