(Glue-2308) ABAP Fetcher

The ABAP Fetcher provides a way of acquiring the data via a 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 in 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 that can be used at runtime
    • Defined parameters are global so they can be accessed from other functions
    • Restrictions:
      • SELECT-OPTIONS has to be declared through data type,
      • TABLES declaration for the 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 the execution of the main logic