on 02-11-2019 11:56 AM
Hi,
Does anyone know class/method to get the UI fields changed in MDG screen?
For example, if a field material type is changed, its entity/attribute will be shown as output or any other parameters. I wanted to know which all fields are changed in one action.
Thanks and regards,
Eldho
DATA : lt_crequest TYPE cl_usmd_mdf_change_document=>t_change_request.
DATA : lt_doc_header TYPE cl_usmd_mdf_change_document=>t_document_header,
ls_doc_header LIKE LINE OF lt_doc_header.
io_model TYPE REF TO if_usmd_model,
CALL METHOD cl_usmd_model=>get_instance
EXPORTING
i_usmd_model = '0G'
IMPORTING
eo_instance = io_model
et_message = lt_msg.
gv_crequest = 3550.
APPEND gv_crequest TO lt_crequest.
CALL METHOD lo_chang_doc->read_document_header
EXPORTING
it_crequest = lt_crequest
io_model = io_model
IMPORTING
et_document_header = lt_doc_header.
LOOP AT lt_doc_header INTO ls_doc_header.
lo_chang_doc->read_document_lines(
EXPORTING
is_document_header = ls_doc_header
i_entity = ls_edata-entity
io_model = io_model
IMPORTING
et_changed_value = DATA(lt_changed_value)
et_changed_detail = DATA(lt_changed_detail)
et_compound_value = DATA(lt_compound_value)
et_message = DATA(lt_message)
).
ENDLOOP. "lt_doc_header
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eldho,
Please refer my above code.
Thanks,
Mahesh
If you are looking change documents use CL_USMD_MDF_CHANGE_DOCUMENT. If you want to know charge happened for each action those detail will be available in entity or Cross entity BADI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eldho,
Bit confused in the sentence : "Does anyone know class/method to get the UI fields changed in MDG screen?"
Do you want to know which attribute value is change on FPM UI during runtime ?.
Thanks,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.