
Techniques for reading change documents in SAP MDG, and interpreting the change documents is the key. Below are few methods which can help to read the Change Documents:
1. Through API (CL_USMD_ADAPTER_PROVIDER): This API helps in reading the change documents which can be utilised as per your business scenario eg: Route the Workflow (BRF+ WF) to a different user if a specific field is updated by the requestor. Attached is the code snippet (Code for API Method.txt) that can be used to read the change documents.
2. Through SAP Change Documents Tables (CDPOS/CDHDR)
2.1. Get CR number
2.2. Pass this to CDHDR table as shown below
2.3 You will see two entries as below, Change Numbers (CDHDR-CHANGENR) can be picked from here
2.4 Pass the change number from CDHDR (Step 2.3), into table CDPOS to get the details of the changed fields
You will see the old and new value for a field as below:
2.5 If MDG Change Pointers are active in your system, then actual material number (Object Key) will be available in the table MDGD_CP, and this can be read based on CR number and Object Type as shown below:
Feel free to share your thoughts, questions, or any experiences you may have had with SAP MDG Change Documents.
I would like to thanks my colleague Bijal Parmar (Bijal.Parmar@sap.com) for sharing useful information.
Thank You, Keep Learning!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |