in abap-sdk/ZGOOG_SDK_UTILITIES/zgoog_bq_read_odata/zcl_bq_table_read_odata_gen.clas.abap [0:0]
METHOD get_data_type.
**********************************************************************
* Copyright 2024 Google LLC *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* https://www.apache.org/licenses/LICENSE-2.0 *
* Unless required by applicable law or agreed to in writing, *
* software distributed under the License is distributed on an *
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, *
* either express or implied. *
* See the License for the specific language governing permissions *
* and limitations under the License. *
**********************************************************************
CASE bq_type.
WHEN 'STRING'.
rv_sap_type = xco_cp_abap_dictionary=>built_in_type->string( 0 ).
WHEN 'FLOAT'.
rv_sap_type = xco_cp_abap_dictionary=>built_in_type->fltp.
WHEN 'BYTES'.
rv_sap_type = xco_cp_abap_dictionary=>built_in_type->rawstring( 0 ).
WHEN 'INTEGER'.
rv_sap_type = xco_cp_abap_dictionary=>built_in_type->int8.
WHEN 'NUMERIC'.
rv_sap_type = xco_cp_abap_dictionary=>built_in_type->dec(
iv_length = 31
iv_decimals = 14 ).
WHEN 'DATE'.
rv_sap_type = xco_cp_abap_dictionary=>built_in_type->dats.
WHEN 'TIME'.
rv_sap_type = xco_cp_abap_dictionary=>built_in_type->tims.
WHEN 'BOOLEAN'.
rv_sap_type = xco_cp_abap_dictionary=>built_in_type->char( 1 ).
WHEN 'TIMESTAMP'.
rv_sap_type = xco_cp_abap_dictionary=>built_in_type->utclong.
WHEN OTHERS.
rv_sap_type = xco_cp_abap_dictionary=>built_in_type->string( 0 ).
ENDCASE.