How to read data for specific entity in SAP MDG – Sample abap code

CALL METHOD lo_model->create_data_reference
EXPORTING
i_fieldname =
i_struct = if_usmd_model=>gc_struct_key_attr
RECEIVING
er_data = DATA(lr_data1).

ASSIGN lr_data1->* TO .

ls_sel-fieldname = .
ls_sel-option = ‘EQ’.
ls_sel-sign = ‘I’.
ls_sel-low = .

INSERT ls_sel INTO TABLE lt_sel.

CALL METHOD lo_model->read_char_value
EXPORTING
i_fieldname =
it_sel = lt_sel
IMPORTING
et_data =
et_message = DATA(lt_message3).

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