How to call SMT mapping functions in SAP – ABAP Coding

CONSTANTS: lv_function_id TYPE if_fdt_types=>id VALUE .

ls_name_value-name = .
GET REFERENCE OF var1 INTO ls_name_value-value.
INSERT ls_name_value INTO TABLE lt_name_value.

ls_name_value-name = .
GET REFERENCE OF var2 INTO ls_name_value-value.
INSERT ls_name_value INTO TABLE lt_name_value.

cl_fdt_function_process=>get_data_object_reference(
EXPORTING
iv_function_id = lv_function_id
iv_data_object = ‘_V_RESULT’
iv_timestamp = lv_timestamp
iv_trace_generation = abap_false
IMPORTING
er_data = lr_data ).

ASSIGN lr_data->* TO .

TRY.
cl_fdt_function_process=>process(
EXPORTING
iv_function_id = lv_function_id
iv_timestamp = lv_timestamp
IMPORTING
ea_result =
CHANGING
ct_name_value = lt_name_value ).

Leave a Comment

Your email address will not be published. Required fields are marked *

error: Content is protected !! Leave the comment to connect with us
Scroll to Top