Skip to content

/AWS1/IF_APF=>UNREGISTERCONNECTOR()

About UnregisterConnector

Unregisters the custom connector registered in your account that matches the connector label provided in the request.

Method Signature

METHODS /AWS1/IF_APF~UNREGISTERCONNECTOR
  IMPORTING
    !IV_CONNECTORLABEL TYPE /AWS1/APFCONNECTORLABEL OPTIONAL
    !IV_FORCEDELETE TYPE /AWS1/APFBOOLEAN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_apfunregconnectorrsp
  RAISING
    /AWS1/CX_APFCONFLICTEXCEPTION
    /AWS1/CX_APFINTERNALSERVEREX
    /AWS1/CX_APFRESOURCENOTFOUNDEX
    /AWS1/CX_APFCLIENTEXC
    /AWS1/CX_APFSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_connectorlabel TYPE /AWS1/APFCONNECTORLABEL /AWS1/APFCONNECTORLABEL

The label of the connector. The label is unique for each ConnectorRegistration in your Amazon Web Services account.

Optional arguments:

iv_forcedelete TYPE /AWS1/APFBOOLEAN /AWS1/APFBOOLEAN

Indicates whether Amazon AppFlow should unregister the connector, even if it is currently in use in one or more connector profiles. The default value is false.

RETURNING

oo_output TYPE REF TO /aws1/cl_apfunregconnectorrsp /AWS1/CL_APFUNREGCONNECTORRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->unregisterconnector(
  iv_connectorlabel = |string|
  iv_forcedelete = ABAP_TRUE
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.