/AWS1/IF_RSH=>DISASSOCDATASHARECONSUMER()¶
About DisassociateDataShareConsumer¶
From a datashare consumer account, remove association for the specified datashare.
Method Signature¶
METHODS /AWS1/IF_RSH~DISASSOCDATASHARECONSUMER
  IMPORTING
    !IV_DATASHAREARN TYPE /AWS1/RSHSTRING OPTIONAL
    !IV_DISASSOCIATEENTIREACCOUNT TYPE /AWS1/RSHBOOLEANOPTIONAL OPTIONAL
    !IV_CONSUMERARN TYPE /AWS1/RSHSTRING OPTIONAL
    !IV_CONSUMERREGION TYPE /AWS1/RSHSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_rshdatashare
  RAISING
    /AWS1/CX_RSHINVDATASHAREFAULT
    /AWS1/CX_RSHINVNAMESPACEFAULT
    /AWS1/CX_RSHCLIENTEXC
    /AWS1/CX_RSHSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_datasharearn TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
The Amazon Resource Name (ARN) of the datashare to remove association for.
Optional arguments:¶
iv_disassociateentireaccount TYPE /AWS1/RSHBOOLEANOPTIONAL /AWS1/RSHBOOLEANOPTIONAL¶
A value that specifies whether association for the datashare is removed from the entire account.
iv_consumerarn TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
The Amazon Resource Name (ARN) of the consumer namespace that association for the datashare is removed from.
iv_consumerregion TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING¶
From a datashare consumer account, removes association of a datashare from all the existing and future namespaces in the specified Amazon Web Services Region.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_rshdatashare /AWS1/CL_RSHDATASHARE¶
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->disassocdatashareconsumer(
  iv_consumerarn = |string|
  iv_consumerregion = |string|
  iv_datasharearn = |string|
  iv_disassociateentireaccount = ABAP_TRUE
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_string = lo_result->get_datasharearn( ).
  lv_string = lo_result->get_producerarn( ).
  lv_boolean = lo_result->get_allowpubliclyacciblecons( ).
  LOOP AT lo_result->get_datashareassociations( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_consumeridentifier( ).
      lv_datasharestatus = lo_row_1->get_status( ).
      lv_string = lo_row_1->get_consumerregion( ).
      lv_tstamp = lo_row_1->get_createddate( ).
      lv_tstamp = lo_row_1->get_statuschangedate( ).
      lv_booleanoptional = lo_row_1->get_producerallowedwrites( ).
      lv_booleanoptional = lo_row_1->get_consumeracceptedwrites( ).
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_managedby( ).
  lv_datasharetype = lo_result->get_datasharetype( ).
ENDIF.