Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MDG API -> Get Change Document

Hey guys,

I got the requirement to display the Change Document of a Change Request (With old an new values). I could't find an appropriate method in the Convenience and Governance API.

After searching a while, I found out that there is a class CL_USMD_MDF_CHANGE_DOCUMENT. This class has the method Read_document_lines. Am I on the right track? When calling this method I have to pass a model as parameter and i don't know how get this.

Can anyone please put some light on this ;-).

Thanks and regards

Chris

replied

Hi Christoph,

To get a model instance use the following class

*    "Create Instance of the Model
     CALL METHOD CL_USMD_MODEl=>GET_INSTANCE
       EXPORTING
         I_USMD_MODEL = (Data model name)
       IMPORTING
         EO_INSTANCE  = LO_MODEL
         ET_MESSAGE   = LT_MESSAGE.


You are using the right class , first determine the header details using READ_DOCUMENT_HEADER and then use read_document_lines


Regards

Raghu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question