Skip to content

/AWS1/IF_BDO=>SYNCHRONIZEGATEWAYTARGETS()

About SynchronizeGatewayTargets

The gateway targets.

Method Signature

METHODS /AWS1/IF_BDO~SYNCHRONIZEGATEWAYTARGETS
  IMPORTING
    !IV_GATEWAYIDENTIFIER TYPE /AWS1/BDOGATEWAYIDENTIFIER OPTIONAL
    !IT_TARGETIDLIST TYPE /AWS1/CL_BDOTARGETIDLIST_W=>TT_TARGETIDLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdosynchronizegwtgt01
  RAISING
    /AWS1/CX_BDOACCESSDENIEDEX
    /AWS1/CX_BDOCONFLICTEXCEPTION
    /AWS1/CX_BDOINTERNALSERVEREX
    /AWS1/CX_BDORESOURCENOTFOUNDEX
    /AWS1/CX_BDOSERVICEQUOTAEXCDEX
    /AWS1/CX_BDOTHROTTLINGEX
    /AWS1/CX_BDOVALIDATIONEX
    /AWS1/CX_BDOCLIENTEXC
    /AWS1/CX_BDOSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_gatewayidentifier TYPE /AWS1/BDOGATEWAYIDENTIFIER /AWS1/BDOGATEWAYIDENTIFIER

The gateway Identifier.

it_targetidlist TYPE /AWS1/CL_BDOTARGETIDLIST_W=>TT_TARGETIDLIST TT_TARGETIDLIST

The target ID list.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdosynchronizegwtgt01 /AWS1/CL_BDOSYNCHRONIZEGWTGT01

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->synchronizegatewaytargets(
  it_targetidlist = VALUE /aws1/cl_bdotargetidlist_w=>tt_targetidlist(
    ( new /aws1/cl_bdotargetidlist_w( |string| ) )
  )
  iv_gatewayidentifier = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_targets( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_gatewayarn = lo_row_1->get_gatewayarn( ).
      lv_targetid = lo_row_1->get_targetid( ).
      lv_datetimestamp = lo_row_1->get_createdat( ).
      lv_datetimestamp = lo_row_1->get_updatedat( ).
      lv_targetstatus = lo_row_1->get_status( ).
      LOOP AT lo_row_1->get_statusreasons( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_statusreason = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      lv_targetname = lo_row_1->get_name( ).
      lv_targetdescription = lo_row_1->get_description( ).
      lo_targetconfiguration = lo_row_1->get_targetconfiguration( ).
      IF lo_targetconfiguration IS NOT INITIAL.
        lo_mcptargetconfiguration = lo_targetconfiguration->get_mcp( ).
        IF lo_mcptargetconfiguration IS NOT INITIAL.
          lo_apischemaconfiguration = lo_mcptargetconfiguration->get_openapischema( ).
          IF lo_apischemaconfiguration IS NOT INITIAL.
            lo_s3configuration = lo_apischemaconfiguration->get_s3( ).
            IF lo_s3configuration IS NOT INITIAL.
              lv_s3bucketuri = lo_s3configuration->get_uri( ).
              lv_awsaccountid = lo_s3configuration->get_bucketowneraccountid( ).
            ENDIF.
            lv_inlinepayload = lo_apischemaconfiguration->get_inlinepayload( ).
          ENDIF.
          lo_apischemaconfiguration = lo_mcptargetconfiguration->get_smithymodel( ).
          IF lo_apischemaconfiguration IS NOT INITIAL.
            lo_s3configuration = lo_apischemaconfiguration->get_s3( ).
            IF lo_s3configuration IS NOT INITIAL.
              lv_s3bucketuri = lo_s3configuration->get_uri( ).
              lv_awsaccountid = lo_s3configuration->get_bucketowneraccountid( ).
            ENDIF.
            lv_inlinepayload = lo_apischemaconfiguration->get_inlinepayload( ).
          ENDIF.
          lo_mcplambdatargetconfigur = lo_mcptargetconfiguration->get_lambda( ).
          IF lo_mcplambdatargetconfigur IS NOT INITIAL.
            lv_lambdafunctionarn = lo_mcplambdatargetconfigur->get_lambdaarn( ).
            lo_toolschema = lo_mcplambdatargetconfigur->get_toolschema( ).
            IF lo_toolschema IS NOT INITIAL.
              lo_s3configuration = lo_toolschema->get_s3( ).
              IF lo_s3configuration IS NOT INITIAL.
                lv_s3bucketuri = lo_s3configuration->get_uri( ).
                lv_awsaccountid = lo_s3configuration->get_bucketowneraccountid( ).
              ENDIF.
              LOOP AT lo_toolschema->get_inlinepayload( ) into lo_row_4.
                lo_row_5 = lo_row_4.
                IF lo_row_5 IS NOT INITIAL.
                  lv_string = lo_row_5->get_name( ).
                  lv_string = lo_row_5->get_description( ).
                  lo_schemadefinition = lo_row_5->get_inputschema( ).
                  IF lo_schemadefinition IS NOT INITIAL.
                    lv_schematype = lo_schemadefinition->get_type( ).
                    LOOP AT lo_schemadefinition->get_properties( ) into ls_row_6.
                      lv_key = ls_row_6-key.
                      lo_value = ls_row_6-value.
                      IF lo_value IS NOT INITIAL.
                        lv_schematype = lo_value->get_type( ).
                        " Skipping ls_row_6-value to avoid recursion
                        LOOP AT lo_value->get_required( ) into lo_row_7.
                          lo_row_8 = lo_row_7.
                          IF lo_row_8 IS NOT INITIAL.
                            lv_string = lo_row_8->get_value( ).
                          ENDIF.
                        ENDLOOP.
                        lo_schemadefinition_1 = lo_value->get_items( ).
                        IF lo_schemadefinition_1 IS NOT INITIAL.
                          lv_schematype = lo_schemadefinition_1->get_type( ).
                          " Skipping lo_value->get_items( ) to avoid recursion
                          LOOP AT lo_schemadefinition_1->get_required( ) into lo_row_7.
                            lo_row_8 = lo_row_7.
                            IF lo_row_8 IS NOT INITIAL.
                              lv_string = lo_row_8->get_value( ).
                            ENDIF.
                          ENDLOOP.
                          " Skipping lo_value->get_items( ) to avoid recursion
                          lv_string = lo_schemadefinition_1->get_description( ).
                        ENDIF.
                        lv_string = lo_value->get_description( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_schemadefinition->get_required( ) into lo_row_7.
                      lo_row_8 = lo_row_7.
                      IF lo_row_8 IS NOT INITIAL.
                        lv_string = lo_row_8->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    lo_schemadefinition_1 = lo_schemadefinition->get_items( ).
                    IF lo_schemadefinition_1 IS NOT INITIAL.
                      lv_schematype = lo_schemadefinition_1->get_type( ).
                      LOOP AT lo_schemadefinition_1->get_properties( ) into ls_row_6.
                        lv_key = ls_row_6-key.
                        lo_value = ls_row_6-value.
                        IF lo_value IS NOT INITIAL.
                          lv_schematype = lo_value->get_type( ).
                          " Skipping ls_row_6-value to avoid recursion
                          LOOP AT lo_value->get_required( ) into lo_row_7.
                            lo_row_8 = lo_row_7.
                            IF lo_row_8 IS NOT INITIAL.
                              lv_string = lo_row_8->get_value( ).
                            ENDIF.
                          ENDLOOP.
                          " Skipping ls_row_6-value to avoid recursion
                          lv_string = lo_value->get_description( ).
                        ENDIF.
                      ENDLOOP.
                      LOOP AT lo_schemadefinition_1->get_required( ) into lo_row_7.
                        lo_row_8 = lo_row_7.
                        IF lo_row_8 IS NOT INITIAL.
                          lv_string = lo_row_8->get_value( ).
                        ENDIF.
                      ENDLOOP.
                      " Skipping lo_schemadefinition->get_items( ) to avoid recursion
                      lv_string = lo_schemadefinition_1->get_description( ).
                    ENDIF.
                    lv_string = lo_schemadefinition->get_description( ).
                  ENDIF.
                  lo_schemadefinition = lo_row_5->get_outputschema( ).
                  IF lo_schemadefinition IS NOT INITIAL.
                    lv_schematype = lo_schemadefinition->get_type( ).
                    LOOP AT lo_schemadefinition->get_properties( ) into ls_row_6.
                      lv_key = ls_row_6-key.
                      lo_value = ls_row_6-value.
                      IF lo_value IS NOT INITIAL.
                        lv_schematype = lo_value->get_type( ).
                        " Skipping ls_row_6-value to avoid recursion
                        LOOP AT lo_value->get_required( ) into lo_row_7.
                          lo_row_8 = lo_row_7.
                          IF lo_row_8 IS NOT INITIAL.
                            lv_string = lo_row_8->get_value( ).
                          ENDIF.
                        ENDLOOP.
                        lo_schemadefinition_1 = lo_value->get_items( ).
                        IF lo_schemadefinition_1 IS NOT INITIAL.
                          lv_schematype = lo_schemadefinition_1->get_type( ).
                          " Skipping lo_value->get_items( ) to avoid recursion
                          LOOP AT lo_schemadefinition_1->get_required( ) into lo_row_7.
                            lo_row_8 = lo_row_7.
                            IF lo_row_8 IS NOT INITIAL.
                              lv_string = lo_row_8->get_value( ).
                            ENDIF.
                          ENDLOOP.
                          " Skipping lo_value->get_items( ) to avoid recursion
                          lv_string = lo_schemadefinition_1->get_description( ).
                        ENDIF.
                        lv_string = lo_value->get_description( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_schemadefinition->get_required( ) into lo_row_7.
                      lo_row_8 = lo_row_7.
                      IF lo_row_8 IS NOT INITIAL.
                        lv_string = lo_row_8->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    lo_schemadefinition_1 = lo_schemadefinition->get_items( ).
                    IF lo_schemadefinition_1 IS NOT INITIAL.
                      lv_schematype = lo_schemadefinition_1->get_type( ).
                      LOOP AT lo_schemadefinition_1->get_properties( ) into ls_row_6.
                        lv_key = ls_row_6-key.
                        lo_value = ls_row_6-value.
                        IF lo_value IS NOT INITIAL.
                          lv_schematype = lo_value->get_type( ).
                          " Skipping ls_row_6-value to avoid recursion
                          LOOP AT lo_value->get_required( ) into lo_row_7.
                            lo_row_8 = lo_row_7.
                            IF lo_row_8 IS NOT INITIAL.
                              lv_string = lo_row_8->get_value( ).
                            ENDIF.
                          ENDLOOP.
                          " Skipping ls_row_6-value to avoid recursion
                          lv_string = lo_value->get_description( ).
                        ENDIF.
                      ENDLOOP.
                      LOOP AT lo_schemadefinition_1->get_required( ) into lo_row_7.
                        lo_row_8 = lo_row_7.
                        IF lo_row_8 IS NOT INITIAL.
                          lv_string = lo_row_8->get_value( ).
                        ENDIF.
                      ENDLOOP.
                      " Skipping lo_schemadefinition->get_items( ) to avoid recursion
                      lv_string = lo_schemadefinition_1->get_description( ).
                    ENDIF.
                    lv_string = lo_schemadefinition->get_description( ).
                  ENDIF.
                ENDIF.
              ENDLOOP.
            ENDIF.
          ENDIF.
          lo_mcpservertargetconfigur = lo_mcptargetconfiguration->get_mcpserver( ).
          IF lo_mcpservertargetconfigur IS NOT INITIAL.
            lv_string = lo_mcpservertargetconfigur->get_endpoint( ).
          ENDIF.
          lo_apigatewaytargetconfigu = lo_mcptargetconfiguration->get_apigateway( ).
          IF lo_apigatewaytargetconfigu IS NOT INITIAL.
            lv_string = lo_apigatewaytargetconfigu->get_restapiid( ).
            lv_string = lo_apigatewaytargetconfigu->get_stage( ).
            lo_apigatewaytoolconfigura = lo_apigatewaytargetconfigu->get_apigatewaytoolconf( ).
            IF lo_apigatewaytoolconfigura IS NOT INITIAL.
              LOOP AT lo_apigatewaytoolconfigura->get_tooloverrides( ) into lo_row_9.
                lo_row_10 = lo_row_9.
                IF lo_row_10 IS NOT INITIAL.
                  lv_string = lo_row_10->get_name( ).
                  lv_string = lo_row_10->get_description( ).
                  lv_string = lo_row_10->get_path( ).
                  lv_restapimethod = lo_row_10->get_method( ).
                ENDIF.
              ENDLOOP.
              LOOP AT lo_apigatewaytoolconfigura->get_toolfilters( ) into lo_row_11.
                lo_row_12 = lo_row_11.
                IF lo_row_12 IS NOT INITIAL.
                  lv_string = lo_row_12->get_filterpath( ).
                  LOOP AT lo_row_12->get_methods( ) into lo_row_13.
                    lo_row_14 = lo_row_13.
                    IF lo_row_14 IS NOT INITIAL.
                      lv_restapimethod = lo_row_14->get_value( ).
                    ENDIF.
                  ENDLOOP.
                ENDIF.
              ENDLOOP.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
      LOOP AT lo_row_1->get_credentialproviderconfs( ) into lo_row_15.
        lo_row_16 = lo_row_15.
        IF lo_row_16 IS NOT INITIAL.
          lv_credentialprovidertype = lo_row_16->get_credentialprovidertype( ).
          lo_credentialprovider = lo_row_16->get_credentialprovider( ).
          IF lo_credentialprovider IS NOT INITIAL.
            lo_oauthcredentialprovider = lo_credentialprovider->get_oauthcredentialprovider( ).
            IF lo_oauthcredentialprovider IS NOT INITIAL.
              lv_oauthcredentialprovider_1 = lo_oauthcredentialprovider->get_providerarn( ).
              LOOP AT lo_oauthcredentialprovider->get_scopes( ) into lo_row_17.
                lo_row_18 = lo_row_17.
                IF lo_row_18 IS NOT INITIAL.
                  lv_oauthscope = lo_row_18->get_value( ).
                ENDIF.
              ENDLOOP.
              LOOP AT lo_oauthcredentialprovider->get_customparameters( ) into ls_row_19.
                lv_key_1 = ls_row_19-key.
                lo_value_1 = ls_row_19-value.
                IF lo_value_1 IS NOT INITIAL.
                  lv_oauthcustomparametersva = lo_value_1->get_value( ).
                ENDIF.
              ENDLOOP.
              lv_oauthgranttype = lo_oauthcredentialprovider->get_granttype( ).
              lv_oauthdefaultreturnurl = lo_oauthcredentialprovider->get_defaultreturnurl( ).
            ENDIF.
            lo_gatewayapikeycredential = lo_credentialprovider->get_apikeycredentialprovider( ).
            IF lo_gatewayapikeycredential IS NOT INITIAL.
              lv_apikeycredentialprovide = lo_gatewayapikeycredential->get_providerarn( ).
              lv_apikeycredentialparamet = lo_gatewayapikeycredential->get_credentialparametername( ).
              lv_apikeycredentialprefix = lo_gatewayapikeycredential->get_credentialprefix( ).
              lv_apikeycredentiallocatio = lo_gatewayapikeycredential->get_credentiallocation( ).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
      lv_datetimestamp = lo_row_1->get_lastsynchronizedat( ).
    ENDIF.
  ENDLOOP.
ENDIF.