MDG API -> Get Change Document
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
Raghuram Reddy Devagiri replied
To get a model instance use the following class
* "Create Instance of the Model
CALL METHOD CL_USMD_MODEl=>GET_INSTANCE
I_USMD_MODEL = (Data model name)
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