(Glue-2211) ABAP Fetcher

The ABAP Fetcher provides a way of acquiring the data via custom ABAP code.

Creation of an ABAP Fetcher

Perform the steps outlined in the chapter How to Create a Fetcher Object with ABAP Fetcher as the option selected under the Component implementation the dropdown of step 4.

Activation of an ABAP Fetcher

After creation, the object is in the saved state.

Mandatory inputs to be filled before the activation:

  • Data structure
    • name of SAP table/view/structure which will define the structure of acquired data
    • provided with F4 help

Optional inputs before the activation:

  • Data declaration (Operation)
    • ABAP editor for 'PARAMETERS' and 'SELECT-OPTIONS' definitions which can be used at runtime
    • defined parameters are global so can be accessed from other functions
    • Restrictions:
      • SELECT-OPTIONS has to be declared through data type,
      • TABLES declaration for SELECT-OPTIONS field is not supported
      • SELECT-OPTIONS declaration through 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 flag 'CB_HAS_DATA' in Has data will be changed
    • Object cref_data should be changed or filled with data in this section.
    • EXAMPLE:

                

  • Has data (Operation)
    • ABAP editor for checking if 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' or 'CLEANUP'
    • it is called after execution of the main logic