Reading change documents in SAP MDG – ABAP code

cl_usmd_adapter_provider=>get_chg_document_adapter(
EXPORTING
i_usmd_model = ‘BP’ ” Data Model
IMPORTING
eo_chg_doc_adapter = lo_chg_doc ).

ls_entity_value-fieldname = ‘BP_HEADER’.
ls_entity_value-value = lv_partner.

lo_chg_doc->read_document_header(
EXPORTING
i_entity = ‘BP_HEADER’
it_entity_value = lt_entity_value
if_mark_rollback_entities = abap_true
IMPORTING
et_document_header = lt_doc_header ).

lo_chg_doc->read_document_lines(

  • EXPORTING
  • is_document_header = ls_docheader
  • i_entity = ‘BP_WHTAX’
  • IMPORTING
  • et_changed_detail = lt_changed_detail
  • et_changed_value = lt_changed_value
  • et_message = lt_message ).

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