Skip to content

/AWS1/IF_CEX=>GETCOSTCOMPARISONDRIVERS()

About GetCostComparisonDrivers

Retrieves key factors driving cost changes between two time periods within the last 13 months, such as usage changes, discount changes, and commitment-based savings. If you have enabled multi-year data at monthly granularity, you can go back up to 38 months.

Method Signature

METHODS /AWS1/IF_CEX~GETCOSTCOMPARISONDRIVERS
  IMPORTING
    !IV_BILLINGVIEWARN TYPE /AWS1/CEXBILLINGVIEWARN OPTIONAL
    !IO_BASELINETIMEPERIOD TYPE REF TO /AWS1/CL_CEXDATEINTERVAL OPTIONAL
    !IO_COMPARISONTIMEPERIOD TYPE REF TO /AWS1/CL_CEXDATEINTERVAL OPTIONAL
    !IV_METRICFORCOMPARISON TYPE /AWS1/CEXMETRICNAME OPTIONAL
    !IO_FILTER TYPE REF TO /AWS1/CL_CEXEXPRESSION OPTIONAL
    !IT_GROUPBY TYPE /AWS1/CL_CEXGROUPDEFINITION=>TT_GROUPDEFINITIONS OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/CEXCOSTCOMPARISONDRIVE00 OPTIONAL
    !IV_NEXTPAGETOKEN TYPE /AWS1/CEXNEXTPAGETOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cexgetcostcompariso01
  RAISING
    /AWS1/CX_CEXBLLVIEWHLTHSTATEX
    /AWS1/CX_CEXDATAUNAVAILEX
    /AWS1/CX_CEXINVALIDNEXTTOKENEX
    /AWS1/CX_CEXLIMITEXCEEDEDEX
    /AWS1/CX_CEXRESOURCENOTFOUNDEX
    /AWS1/CX_CEXCLIENTEXC
    /AWS1/CX_CEXSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

io_baselinetimeperiod TYPE REF TO /AWS1/CL_CEXDATEINTERVAL /AWS1/CL_CEXDATEINTERVAL

The reference time period for comparison. This time period serves as the baseline against which other cost and usage data will be compared. The interval must start and end on the first day of a month, with a duration of exactly one month.

io_comparisontimeperiod TYPE REF TO /AWS1/CL_CEXDATEINTERVAL /AWS1/CL_CEXDATEINTERVAL

The comparison time period for analysis. This time period's cost and usage data will be compared against the baseline time period. The interval must start and end on the first day of a month, with a duration of exactly one month.

iv_metricforcomparison TYPE /AWS1/CEXMETRICNAME /AWS1/CEXMETRICNAME

The cost and usage metric to compare. Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

Optional arguments:

iv_billingviewarn TYPE /AWS1/CEXBILLINGVIEWARN /AWS1/CEXBILLINGVIEWARN

The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is used to specify which particular billing view you want to interact with or retrieve information from when making API calls related to Amazon Web Services Billing and Cost Management features. The BillingViewArn can be retrieved by calling the ListBillingViews API.

io_filter TYPE REF TO /AWS1/CL_CEXEXPRESSION /AWS1/CL_CEXEXPRESSION

Use Expression to filter in various Cost Explorer APIs.

Not all Expression types are supported in each API. Refer to the documentation for each specific API to see what is supported.

There are two patterns:

  • Simple dimension values.

    • There are three types of simple dimension values: CostCategories, Tags, and Dimensions.

      • Specify the CostCategories field to define a filter that acts on Cost Categories.

      • Specify the Tags field to define a filter that acts on Cost Allocation Tags.

      • Specify the Dimensions field to define a filter that acts on the DimensionValues .

    • For each filter type, you can set the dimension name and values for the filters that you plan to use.

      • For example, you can filter for REGION==us-east-1 OR REGION==us-west-1. For GetRightsizingRecommendation, the Region is a full name (for example, REGION==US East (N. Virginia).

      • The corresponding Expression for this example is as follows: { "Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] } }

      • As shown in the previous example, lists of dimension values are combined with OR when applying the filter.

    • You can also set different match options to further control how the filter behaves. Not all APIs support match options. Refer to the documentation for each specific API to see what is supported.

      • For example, you can filter for linked account names that start with "a".

      • The corresponding Expression for this example is as follows: { "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }

  • Compound Expression types with logical operations.

    • You can use multiple Expression types and the logical operators AND/OR/NOT to create a list of one or more Expression objects. By doing this, you can filter by more advanced options.

    • For example, you can filter by ((REGION == us-east-1 OR REGION == us-west-1) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer).

    • The corresponding Expression for this example is as follows: { "And": [ {"Or": [ {"Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }

    Because each Expression can have only one operator, the service returns an error if more than one is specified. The following example shows an Expression object that creates an error: { "And": [ ... ], "Dimensions": { "Key": "USAGE_TYPE", "Values": [ "DataTransfer" ] } }

    The following is an example of the corresponding error message: "Expression has more than one roots. Only one root operator is allowed for each expression: And, Or, Not, Dimensions, Tags, CostCategories"

For the GetRightsizingRecommendation action, a combination of OR and NOT isn't supported. OR isn't supported between different dimensions, or dimensions and tags. NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT, REGION, or RIGHTSIZING_TYPE.

For the GetReservationPurchaseRecommendation action, only NOT is supported. AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.

it_groupby TYPE /AWS1/CL_CEXGROUPDEFINITION=>TT_GROUPDEFINITIONS TT_GROUPDEFINITIONS

You can group results using the attributes DIMENSION, TAG, and COST_CATEGORY. Note that SERVICE and USAGE_TYPE dimensions are automatically included in the cost comparison drivers analysis.

iv_maxresults TYPE /AWS1/CEXCOSTCOMPARISONDRIVE00 /AWS1/CEXCOSTCOMPARISONDRIVE00

The maximum number of results that are returned for the request.

iv_nextpagetoken TYPE /AWS1/CEXNEXTPAGETOKEN /AWS1/CEXNEXTPAGETOKEN

The token to retrieve the next set of paginated results.

RETURNING

oo_output TYPE REF TO /aws1/cl_cexgetcostcompariso01 /AWS1/CL_CEXGETCOSTCOMPARISO01

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->getcostcomparisondrivers(
  io_baselinetimeperiod = new /aws1/cl_cexdateinterval(
    iv_end = |string|
    iv_start = |string|
  )
  io_comparisontimeperiod = new /aws1/cl_cexdateinterval(
    iv_end = |string|
    iv_start = |string|
  )
  io_filter = new /aws1/cl_cexexpression(
    io_costcategories = new /aws1/cl_cexcostcategoryvalues(
      it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
        ( new /aws1/cl_cexmatchoptions_w( |string| ) )
      )
      it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
        ( new /aws1/cl_cexvalues_w( |string| ) )
      )
      iv_key = |string|
    )
    io_dimensions = new /aws1/cl_cexdimensionvalues(
      it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
        ( new /aws1/cl_cexmatchoptions_w( |string| ) )
      )
      it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
        ( new /aws1/cl_cexvalues_w( |string| ) )
      )
      iv_key = |string|
    )
    io_not = new /aws1/cl_cexexpression(
      io_costcategories = new /aws1/cl_cexcostcategoryvalues(
        it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
          ( new /aws1/cl_cexmatchoptions_w( |string| ) )
        )
        it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
          ( new /aws1/cl_cexvalues_w( |string| ) )
        )
        iv_key = |string|
      )
      io_dimensions = new /aws1/cl_cexdimensionvalues(
        it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
          ( new /aws1/cl_cexmatchoptions_w( |string| ) )
        )
        it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
          ( new /aws1/cl_cexvalues_w( |string| ) )
        )
        iv_key = |string|
      )
      io_tags = new /aws1/cl_cextagvalues(
        it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
          ( new /aws1/cl_cexmatchoptions_w( |string| ) )
        )
        it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
          ( new /aws1/cl_cexvalues_w( |string| ) )
        )
        iv_key = |string|
      )
      it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
        (
          new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
        )
      )
      it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
        (
          new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
        )
      )
    )
    io_tags = new /aws1/cl_cextagvalues(
      it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
        ( new /aws1/cl_cexmatchoptions_w( |string| ) )
      )
      it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
        ( new /aws1/cl_cexvalues_w( |string| ) )
      )
      iv_key = |string|
    )
    it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
      (
        new /aws1/cl_cexexpression(
          io_costcategories = new /aws1/cl_cexcostcategoryvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_dimensions = new /aws1/cl_cexdimensionvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_not = new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
          io_tags = new /aws1/cl_cextagvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
          )
        )
      )
    )
    it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
      (
        new /aws1/cl_cexexpression(
          io_costcategories = new /aws1/cl_cexcostcategoryvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_dimensions = new /aws1/cl_cexdimensionvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_not = new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
          io_tags = new /aws1/cl_cextagvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
          )
        )
      )
    )
  )
  it_groupby = VALUE /aws1/cl_cexgroupdefinition=>tt_groupdefinitions(
    (
      new /aws1/cl_cexgroupdefinition(
        iv_key = |string|
        iv_type = |string|
      )
    )
  )
  iv_billingviewarn = |string|
  iv_maxresults = 123
  iv_metricforcomparison = |string|
  iv_nextpagetoken = |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_costcomparisondrivers( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lo_expression = lo_row_1->get_costselector( ).
      IF lo_expression IS NOT INITIAL.
        LOOP AT lo_expression->get_or( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            " Skipping lo_row_2 to avoid recursion
            LOOP AT lo_row_3->get_and( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                " Skipping lo_row_4 to avoid recursion
                " Skipping lo_row_4 to avoid recursion
                lo_expression_1 = lo_row_5->get_not( ).
                IF lo_expression_1 IS NOT INITIAL.
                  " Skipping lo_row_5->get_not( ) to avoid recursion
                  " Skipping lo_row_5->get_not( ) to avoid recursion
                  " Skipping lo_row_5->get_not( ) to avoid recursion
                  lo_dimensionvalues = lo_expression_1->get_dimensions( ).
                  IF lo_dimensionvalues IS NOT INITIAL.
                    lv_dimension = lo_dimensionvalues->get_key( ).
                    LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_tagvalues = lo_expression_1->get_tags( ).
                  IF lo_tagvalues IS NOT INITIAL.
                    lv_tagkey = lo_tagvalues->get_key( ).
                    LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_costcategoryvalues = lo_expression_1->get_costcategories( ).
                  IF lo_costcategoryvalues IS NOT INITIAL.
                    lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                    LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                ENDIF.
                lo_dimensionvalues = lo_row_5->get_dimensions( ).
                IF lo_dimensionvalues IS NOT INITIAL.
                  lv_dimension = lo_dimensionvalues->get_key( ).
                  LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                    lo_row_7 = lo_row_6.
                    IF lo_row_7 IS NOT INITIAL.
                      lv_value = lo_row_7->get_value( ).
                    ENDIF.
                  ENDLOOP.
                  LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                    lo_row_9 = lo_row_8.
                    IF lo_row_9 IS NOT INITIAL.
                      lv_matchoption = lo_row_9->get_value( ).
                    ENDIF.
                  ENDLOOP.
                ENDIF.
                lo_tagvalues = lo_row_5->get_tags( ).
                IF lo_tagvalues IS NOT INITIAL.
                  lv_tagkey = lo_tagvalues->get_key( ).
                  LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                    lo_row_7 = lo_row_6.
                    IF lo_row_7 IS NOT INITIAL.
                      lv_value = lo_row_7->get_value( ).
                    ENDIF.
                  ENDLOOP.
                  LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                    lo_row_9 = lo_row_8.
                    IF lo_row_9 IS NOT INITIAL.
                      lv_matchoption = lo_row_9->get_value( ).
                    ENDIF.
                  ENDLOOP.
                ENDIF.
                lo_costcategoryvalues = lo_row_5->get_costcategories( ).
                IF lo_costcategoryvalues IS NOT INITIAL.
                  lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                  LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                    lo_row_7 = lo_row_6.
                    IF lo_row_7 IS NOT INITIAL.
                      lv_value = lo_row_7->get_value( ).
                    ENDIF.
                  ENDLOOP.
                  LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                    lo_row_9 = lo_row_8.
                    IF lo_row_9 IS NOT INITIAL.
                      lv_matchoption = lo_row_9->get_value( ).
                    ENDIF.
                  ENDLOOP.
                ENDIF.
              ENDIF.
            ENDLOOP.
            lo_expression_1 = lo_row_3->get_not( ).
            IF lo_expression_1 IS NOT INITIAL.
              " Skipping lo_row_3->get_not( ) to avoid recursion
              LOOP AT lo_expression_1->get_and( ) into lo_row_4.
                lo_row_5 = lo_row_4.
                IF lo_row_5 IS NOT INITIAL.
                  " Skipping lo_row_4 to avoid recursion
                  " Skipping lo_row_4 to avoid recursion
                  " Skipping lo_row_4 to avoid recursion
                  lo_dimensionvalues = lo_row_5->get_dimensions( ).
                  IF lo_dimensionvalues IS NOT INITIAL.
                    lv_dimension = lo_dimensionvalues->get_key( ).
                    LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_tagvalues = lo_row_5->get_tags( ).
                  IF lo_tagvalues IS NOT INITIAL.
                    lv_tagkey = lo_tagvalues->get_key( ).
                    LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_costcategoryvalues = lo_row_5->get_costcategories( ).
                  IF lo_costcategoryvalues IS NOT INITIAL.
                    lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                    LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                ENDIF.
              ENDLOOP.
              " Skipping lo_row_3->get_not( ) to avoid recursion
              lo_dimensionvalues = lo_expression_1->get_dimensions( ).
              IF lo_dimensionvalues IS NOT INITIAL.
                lv_dimension = lo_dimensionvalues->get_key( ).
                LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lo_tagvalues = lo_expression_1->get_tags( ).
              IF lo_tagvalues IS NOT INITIAL.
                lv_tagkey = lo_tagvalues->get_key( ).
                LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lo_costcategoryvalues = lo_expression_1->get_costcategories( ).
              IF lo_costcategoryvalues IS NOT INITIAL.
                lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
            ENDIF.
            lo_dimensionvalues = lo_row_3->get_dimensions( ).
            IF lo_dimensionvalues IS NOT INITIAL.
              lv_dimension = lo_dimensionvalues->get_key( ).
              LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                lo_row_7 = lo_row_6.
                IF lo_row_7 IS NOT INITIAL.
                  lv_value = lo_row_7->get_value( ).
                ENDIF.
              ENDLOOP.
              LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                lo_row_9 = lo_row_8.
                IF lo_row_9 IS NOT INITIAL.
                  lv_matchoption = lo_row_9->get_value( ).
                ENDIF.
              ENDLOOP.
            ENDIF.
            lo_tagvalues = lo_row_3->get_tags( ).
            IF lo_tagvalues IS NOT INITIAL.
              lv_tagkey = lo_tagvalues->get_key( ).
              LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                lo_row_7 = lo_row_6.
                IF lo_row_7 IS NOT INITIAL.
                  lv_value = lo_row_7->get_value( ).
                ENDIF.
              ENDLOOP.
              LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                lo_row_9 = lo_row_8.
                IF lo_row_9 IS NOT INITIAL.
                  lv_matchoption = lo_row_9->get_value( ).
                ENDIF.
              ENDLOOP.
            ENDIF.
            lo_costcategoryvalues = lo_row_3->get_costcategories( ).
            IF lo_costcategoryvalues IS NOT INITIAL.
              lv_costcategoryname = lo_costcategoryvalues->get_key( ).
              LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                lo_row_7 = lo_row_6.
                IF lo_row_7 IS NOT INITIAL.
                  lv_value = lo_row_7->get_value( ).
                ENDIF.
              ENDLOOP.
              LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                lo_row_9 = lo_row_8.
                IF lo_row_9 IS NOT INITIAL.
                  lv_matchoption = lo_row_9->get_value( ).
                ENDIF.
              ENDLOOP.
            ENDIF.
          ENDIF.
        ENDLOOP.
        LOOP AT lo_expression->get_and( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            LOOP AT lo_row_3->get_or( ) into lo_row_4.
              lo_row_5 = lo_row_4.
              IF lo_row_5 IS NOT INITIAL.
                " Skipping lo_row_4 to avoid recursion
                " Skipping lo_row_4 to avoid recursion
                lo_expression_1 = lo_row_5->get_not( ).
                IF lo_expression_1 IS NOT INITIAL.
                  " Skipping lo_row_5->get_not( ) to avoid recursion
                  " Skipping lo_row_5->get_not( ) to avoid recursion
                  " Skipping lo_row_5->get_not( ) to avoid recursion
                  lo_dimensionvalues = lo_expression_1->get_dimensions( ).
                  IF lo_dimensionvalues IS NOT INITIAL.
                    lv_dimension = lo_dimensionvalues->get_key( ).
                    LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_tagvalues = lo_expression_1->get_tags( ).
                  IF lo_tagvalues IS NOT INITIAL.
                    lv_tagkey = lo_tagvalues->get_key( ).
                    LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_costcategoryvalues = lo_expression_1->get_costcategories( ).
                  IF lo_costcategoryvalues IS NOT INITIAL.
                    lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                    LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                ENDIF.
                lo_dimensionvalues = lo_row_5->get_dimensions( ).
                IF lo_dimensionvalues IS NOT INITIAL.
                  lv_dimension = lo_dimensionvalues->get_key( ).
                  LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                    lo_row_7 = lo_row_6.
                    IF lo_row_7 IS NOT INITIAL.
                      lv_value = lo_row_7->get_value( ).
                    ENDIF.
                  ENDLOOP.
                  LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                    lo_row_9 = lo_row_8.
                    IF lo_row_9 IS NOT INITIAL.
                      lv_matchoption = lo_row_9->get_value( ).
                    ENDIF.
                  ENDLOOP.
                ENDIF.
                lo_tagvalues = lo_row_5->get_tags( ).
                IF lo_tagvalues IS NOT INITIAL.
                  lv_tagkey = lo_tagvalues->get_key( ).
                  LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                    lo_row_7 = lo_row_6.
                    IF lo_row_7 IS NOT INITIAL.
                      lv_value = lo_row_7->get_value( ).
                    ENDIF.
                  ENDLOOP.
                  LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                    lo_row_9 = lo_row_8.
                    IF lo_row_9 IS NOT INITIAL.
                      lv_matchoption = lo_row_9->get_value( ).
                    ENDIF.
                  ENDLOOP.
                ENDIF.
                lo_costcategoryvalues = lo_row_5->get_costcategories( ).
                IF lo_costcategoryvalues IS NOT INITIAL.
                  lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                  LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                    lo_row_7 = lo_row_6.
                    IF lo_row_7 IS NOT INITIAL.
                      lv_value = lo_row_7->get_value( ).
                    ENDIF.
                  ENDLOOP.
                  LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                    lo_row_9 = lo_row_8.
                    IF lo_row_9 IS NOT INITIAL.
                      lv_matchoption = lo_row_9->get_value( ).
                    ENDIF.
                  ENDLOOP.
                ENDIF.
              ENDIF.
            ENDLOOP.
            " Skipping lo_row_2 to avoid recursion
            lo_expression_1 = lo_row_3->get_not( ).
            IF lo_expression_1 IS NOT INITIAL.
              LOOP AT lo_expression_1->get_or( ) into lo_row_4.
                lo_row_5 = lo_row_4.
                IF lo_row_5 IS NOT INITIAL.
                  " Skipping lo_row_4 to avoid recursion
                  " Skipping lo_row_4 to avoid recursion
                  " Skipping lo_row_4 to avoid recursion
                  lo_dimensionvalues = lo_row_5->get_dimensions( ).
                  IF lo_dimensionvalues IS NOT INITIAL.
                    lv_dimension = lo_dimensionvalues->get_key( ).
                    LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_tagvalues = lo_row_5->get_tags( ).
                  IF lo_tagvalues IS NOT INITIAL.
                    lv_tagkey = lo_tagvalues->get_key( ).
                    LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_costcategoryvalues = lo_row_5->get_costcategories( ).
                  IF lo_costcategoryvalues IS NOT INITIAL.
                    lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                    LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                ENDIF.
              ENDLOOP.
              " Skipping lo_row_3->get_not( ) to avoid recursion
              " Skipping lo_row_3->get_not( ) to avoid recursion
              lo_dimensionvalues = lo_expression_1->get_dimensions( ).
              IF lo_dimensionvalues IS NOT INITIAL.
                lv_dimension = lo_dimensionvalues->get_key( ).
                LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lo_tagvalues = lo_expression_1->get_tags( ).
              IF lo_tagvalues IS NOT INITIAL.
                lv_tagkey = lo_tagvalues->get_key( ).
                LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lo_costcategoryvalues = lo_expression_1->get_costcategories( ).
              IF lo_costcategoryvalues IS NOT INITIAL.
                lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
            ENDIF.
            lo_dimensionvalues = lo_row_3->get_dimensions( ).
            IF lo_dimensionvalues IS NOT INITIAL.
              lv_dimension = lo_dimensionvalues->get_key( ).
              LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                lo_row_7 = lo_row_6.
                IF lo_row_7 IS NOT INITIAL.
                  lv_value = lo_row_7->get_value( ).
                ENDIF.
              ENDLOOP.
              LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                lo_row_9 = lo_row_8.
                IF lo_row_9 IS NOT INITIAL.
                  lv_matchoption = lo_row_9->get_value( ).
                ENDIF.
              ENDLOOP.
            ENDIF.
            lo_tagvalues = lo_row_3->get_tags( ).
            IF lo_tagvalues IS NOT INITIAL.
              lv_tagkey = lo_tagvalues->get_key( ).
              LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                lo_row_7 = lo_row_6.
                IF lo_row_7 IS NOT INITIAL.
                  lv_value = lo_row_7->get_value( ).
                ENDIF.
              ENDLOOP.
              LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                lo_row_9 = lo_row_8.
                IF lo_row_9 IS NOT INITIAL.
                  lv_matchoption = lo_row_9->get_value( ).
                ENDIF.
              ENDLOOP.
            ENDIF.
            lo_costcategoryvalues = lo_row_3->get_costcategories( ).
            IF lo_costcategoryvalues IS NOT INITIAL.
              lv_costcategoryname = lo_costcategoryvalues->get_key( ).
              LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                lo_row_7 = lo_row_6.
                IF lo_row_7 IS NOT INITIAL.
                  lv_value = lo_row_7->get_value( ).
                ENDIF.
              ENDLOOP.
              LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                lo_row_9 = lo_row_8.
                IF lo_row_9 IS NOT INITIAL.
                  lv_matchoption = lo_row_9->get_value( ).
                ENDIF.
              ENDLOOP.
            ENDIF.
          ENDIF.
        ENDLOOP.
        lo_expression_1 = lo_expression->get_not( ).
        IF lo_expression_1 IS NOT INITIAL.
          LOOP AT lo_expression_1->get_or( ) into lo_row_2.
            lo_row_3 = lo_row_2.
            IF lo_row_3 IS NOT INITIAL.
              " Skipping lo_row_2 to avoid recursion
              LOOP AT lo_row_3->get_and( ) into lo_row_4.
                lo_row_5 = lo_row_4.
                IF lo_row_5 IS NOT INITIAL.
                  " Skipping lo_row_4 to avoid recursion
                  " Skipping lo_row_4 to avoid recursion
                  " Skipping lo_row_4 to avoid recursion
                  lo_dimensionvalues = lo_row_5->get_dimensions( ).
                  IF lo_dimensionvalues IS NOT INITIAL.
                    lv_dimension = lo_dimensionvalues->get_key( ).
                    LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_tagvalues = lo_row_5->get_tags( ).
                  IF lo_tagvalues IS NOT INITIAL.
                    lv_tagkey = lo_tagvalues->get_key( ).
                    LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_costcategoryvalues = lo_row_5->get_costcategories( ).
                  IF lo_costcategoryvalues IS NOT INITIAL.
                    lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                    LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                ENDIF.
              ENDLOOP.
              " Skipping lo_row_2 to avoid recursion
              lo_dimensionvalues = lo_row_3->get_dimensions( ).
              IF lo_dimensionvalues IS NOT INITIAL.
                lv_dimension = lo_dimensionvalues->get_key( ).
                LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lo_tagvalues = lo_row_3->get_tags( ).
              IF lo_tagvalues IS NOT INITIAL.
                lv_tagkey = lo_tagvalues->get_key( ).
                LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lo_costcategoryvalues = lo_row_3->get_costcategories( ).
              IF lo_costcategoryvalues IS NOT INITIAL.
                lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
            ENDIF.
          ENDLOOP.
          LOOP AT lo_expression_1->get_and( ) into lo_row_2.
            lo_row_3 = lo_row_2.
            IF lo_row_3 IS NOT INITIAL.
              LOOP AT lo_row_3->get_or( ) into lo_row_4.
                lo_row_5 = lo_row_4.
                IF lo_row_5 IS NOT INITIAL.
                  " Skipping lo_row_4 to avoid recursion
                  " Skipping lo_row_4 to avoid recursion
                  " Skipping lo_row_4 to avoid recursion
                  lo_dimensionvalues = lo_row_5->get_dimensions( ).
                  IF lo_dimensionvalues IS NOT INITIAL.
                    lv_dimension = lo_dimensionvalues->get_key( ).
                    LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_tagvalues = lo_row_5->get_tags( ).
                  IF lo_tagvalues IS NOT INITIAL.
                    lv_tagkey = lo_tagvalues->get_key( ).
                    LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                  lo_costcategoryvalues = lo_row_5->get_costcategories( ).
                  IF lo_costcategoryvalues IS NOT INITIAL.
                    lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                    LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                      lo_row_7 = lo_row_6.
                      IF lo_row_7 IS NOT INITIAL.
                        lv_value = lo_row_7->get_value( ).
                      ENDIF.
                    ENDLOOP.
                    LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                      lo_row_9 = lo_row_8.
                      IF lo_row_9 IS NOT INITIAL.
                        lv_matchoption = lo_row_9->get_value( ).
                      ENDIF.
                    ENDLOOP.
                  ENDIF.
                ENDIF.
              ENDLOOP.
              " Skipping lo_row_2 to avoid recursion
              " Skipping lo_row_2 to avoid recursion
              lo_dimensionvalues = lo_row_3->get_dimensions( ).
              IF lo_dimensionvalues IS NOT INITIAL.
                lv_dimension = lo_dimensionvalues->get_key( ).
                LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lo_tagvalues = lo_row_3->get_tags( ).
              IF lo_tagvalues IS NOT INITIAL.
                lv_tagkey = lo_tagvalues->get_key( ).
                LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
              lo_costcategoryvalues = lo_row_3->get_costcategories( ).
              IF lo_costcategoryvalues IS NOT INITIAL.
                lv_costcategoryname = lo_costcategoryvalues->get_key( ).
                LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
                  lo_row_7 = lo_row_6.
                  IF lo_row_7 IS NOT INITIAL.
                    lv_value = lo_row_7->get_value( ).
                  ENDIF.
                ENDLOOP.
                LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
                  lo_row_9 = lo_row_8.
                  IF lo_row_9 IS NOT INITIAL.
                    lv_matchoption = lo_row_9->get_value( ).
                  ENDIF.
                ENDLOOP.
              ENDIF.
            ENDIF.
          ENDLOOP.
          " Skipping lo_expression->get_not( ) to avoid recursion
          lo_dimensionvalues = lo_expression_1->get_dimensions( ).
          IF lo_dimensionvalues IS NOT INITIAL.
            lv_dimension = lo_dimensionvalues->get_key( ).
            LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
              lo_row_7 = lo_row_6.
              IF lo_row_7 IS NOT INITIAL.
                lv_value = lo_row_7->get_value( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
              lo_row_9 = lo_row_8.
              IF lo_row_9 IS NOT INITIAL.
                lv_matchoption = lo_row_9->get_value( ).
              ENDIF.
            ENDLOOP.
          ENDIF.
          lo_tagvalues = lo_expression_1->get_tags( ).
          IF lo_tagvalues IS NOT INITIAL.
            lv_tagkey = lo_tagvalues->get_key( ).
            LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
              lo_row_7 = lo_row_6.
              IF lo_row_7 IS NOT INITIAL.
                lv_value = lo_row_7->get_value( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
              lo_row_9 = lo_row_8.
              IF lo_row_9 IS NOT INITIAL.
                lv_matchoption = lo_row_9->get_value( ).
              ENDIF.
            ENDLOOP.
          ENDIF.
          lo_costcategoryvalues = lo_expression_1->get_costcategories( ).
          IF lo_costcategoryvalues IS NOT INITIAL.
            lv_costcategoryname = lo_costcategoryvalues->get_key( ).
            LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
              lo_row_7 = lo_row_6.
              IF lo_row_7 IS NOT INITIAL.
                lv_value = lo_row_7->get_value( ).
              ENDIF.
            ENDLOOP.
            LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
              lo_row_9 = lo_row_8.
              IF lo_row_9 IS NOT INITIAL.
                lv_matchoption = lo_row_9->get_value( ).
              ENDIF.
            ENDLOOP.
          ENDIF.
        ENDIF.
        lo_dimensionvalues = lo_expression->get_dimensions( ).
        IF lo_dimensionvalues IS NOT INITIAL.
          lv_dimension = lo_dimensionvalues->get_key( ).
          LOOP AT lo_dimensionvalues->get_values( ) into lo_row_6.
            lo_row_7 = lo_row_6.
            IF lo_row_7 IS NOT INITIAL.
              lv_value = lo_row_7->get_value( ).
            ENDIF.
          ENDLOOP.
          LOOP AT lo_dimensionvalues->get_matchoptions( ) into lo_row_8.
            lo_row_9 = lo_row_8.
            IF lo_row_9 IS NOT INITIAL.
              lv_matchoption = lo_row_9->get_value( ).
            ENDIF.
          ENDLOOP.
        ENDIF.
        lo_tagvalues = lo_expression->get_tags( ).
        IF lo_tagvalues IS NOT INITIAL.
          lv_tagkey = lo_tagvalues->get_key( ).
          LOOP AT lo_tagvalues->get_values( ) into lo_row_6.
            lo_row_7 = lo_row_6.
            IF lo_row_7 IS NOT INITIAL.
              lv_value = lo_row_7->get_value( ).
            ENDIF.
          ENDLOOP.
          LOOP AT lo_tagvalues->get_matchoptions( ) into lo_row_8.
            lo_row_9 = lo_row_8.
            IF lo_row_9 IS NOT INITIAL.
              lv_matchoption = lo_row_9->get_value( ).
            ENDIF.
          ENDLOOP.
        ENDIF.
        lo_costcategoryvalues = lo_expression->get_costcategories( ).
        IF lo_costcategoryvalues IS NOT INITIAL.
          lv_costcategoryname = lo_costcategoryvalues->get_key( ).
          LOOP AT lo_costcategoryvalues->get_values( ) into lo_row_6.
            lo_row_7 = lo_row_6.
            IF lo_row_7 IS NOT INITIAL.
              lv_value = lo_row_7->get_value( ).
            ENDIF.
          ENDLOOP.
          LOOP AT lo_costcategoryvalues->get_matchoptions( ) into lo_row_8.
            lo_row_9 = lo_row_8.
            IF lo_row_9 IS NOT INITIAL.
              lv_matchoption = lo_row_9->get_value( ).
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
      LOOP AT lo_row_1->get_metrics( ) into ls_row_10.
        lv_key = ls_row_10-key.
        lo_value_1 = ls_row_10-value.
        IF lo_value_1 IS NOT INITIAL.
          lv_genericstring = lo_value_1->get_baselinetimeperiodamount( ).
          lv_genericstring = lo_value_1->get_comparisontimeperamount( ).
          lv_genericstring = lo_value_1->get_difference( ).
          lv_genericstring = lo_value_1->get_unit( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_costdrivers( ) into lo_row_11.
        lo_row_12 = lo_row_11.
        IF lo_row_12 IS NOT INITIAL.
          lv_genericstring = lo_row_12->get_type( ).
          lv_genericstring = lo_row_12->get_name( ).
          LOOP AT lo_row_12->get_metrics( ) into ls_row_10.
            lv_key = ls_row_10-key.
            lo_value_1 = ls_row_10-value.
            IF lo_value_1 IS NOT INITIAL.
              lv_genericstring = lo_value_1->get_baselinetimeperiodamount( ).
              lv_genericstring = lo_value_1->get_comparisontimeperamount( ).
              lv_genericstring = lo_value_1->get_difference( ).
              lv_genericstring = lo_value_1->get_unit( ).
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  lv_nextpagetoken = lo_result->get_nextpagetoken( ).
ENDIF.