Implementing CHIPs Dynamically

Use

If you want to implement a CHIP in an embedded Web Dynpro component (for example, as in the Floorplan Manager (FPM) in a Custom UIBB Component) or in an ABAP class (for example, as in the personal object worklist (POWL) in a feeder class or in FPM in a Generic UIBB), you can access ABAP interface IF_CHIP_API, in order to receive inport events and fire outport events, for instance.

Procedure

Using CHIPs in an Embedded Web Dynpro Component

  1. In an embedded component you use the following source code to access ABAP interface IF_CHIP_API.

      data l_chip_api type ref to if_chip_api.
    l_chip_api = cl_chip_api_util=>get_chip_api( wd_this->wd_get_api( )->get_component( ) ).
    if l_chip_api is bound.
    " WD component is embedded in a CHIP and CHIP is already started
    endif.
                      

Using CHIPs in an ABAP Class

  1. In an ABAP feeder class you use the following source code to access ABAP interface IF_CHIP_API.

         data l_chip_api type ref to if_chip_api.
      l_chip_api = cl_chip_api_util=>get_chip_api_for_static_chip( ).
      if l_chip_api is bound.
        " ABAP class is used in the context of a static CHIP and CHIP is already started
      endif.
                      

This gives you access to the methods of the ABAP interface IF_CHIP_API, for example, to register inport events or fire outport events.