(Glue-2405) ABAP Fetchers

ABAP Fetchers allow you to acquire data via custom ABAP code.

Creating ABAP Fetchers

Perform the steps provided under Creating Fetcher Object and select ABAP Fetcher from the Component implementation drop-down menu in step 7.

Activating ABAP Fetchers

After creation, the object is in the saved state.

The following information is mandatory before the activation:

  • Data structure
    • Name of the SAP table, view or structure that will define the structure of the acquired data
    • F4 help is available

The following information is optional before the activation:

  • Data declaration (Operation)
    • ABAP editor for defining the PARAMETERS and SELECT-OPTIONS that can be used at runtime
    • Defined parameters are global so can be accessed from other functions
    • Restrictions:
      • The SELECT-OPTIONS field must be declared through the data type,
      • TABLES declaration for the SELECT-OPTIONS field is not supported
      • SELECT-OPTIONS declaration through the structure is not supported
      • Examples:

                               Not supported


                                Not supported


                                 Supported

  • Open (Operation)
    • ABAP editor for initialization operations such as OPEN CURSOR over the database
    • It is called before the execution of the main logic
  • Fetch data (Operation)
    • ABAP editor for data collection via functions such as FETCH NEXT PACKAGE
    • It is called within the loop for the mass data processing until the selection CB_HAS_DATA in the Has data field is changed
    • The object cref_data must be changed or filled with data in this section.
    • Example:

                

  • Has data (Operation)
    • ABAP editor for checking whether more data is available for further processing
    • By default the checking flag CB_HAS_DATA to false
  • Close (Operation)
    • ABAP editor for operations such as CLOSE and CLEANUP
    • It is called after the execution of the main logic