Skip to Content

Get the Changed Fields in MDG-M

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Feb 12, 2019 at 11:24 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 16, 2019 at 05:22 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 16, 2019 at 06:48 AM
    -1
    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
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.