on 2025 Jan 02 10:05 AM
Hi
For Change CR Type - soon after clicking on edit on Change Request & if any of the field getting change, error message should get display.
How to perform this for above, Like how to get the changed fields data before submit of CR ?
From my side tried several methods to get, but nothing worked.
Request clarification before answering.
Hi @sandeep_suggu ,
You can try using the cross-entity derivation BADI. You can read the changed data using the IO_CHANGED_DATA parameter and write the required message in the ET_MESSAGE_INFO parameter, based on your requirements. However, this message will appear as an informational message on the UI.
To change the information message into an error message, you can refer to the blog below.
https://community.sap.com/t5/technology-blogs-by-sap/allow-error-messages-for-mdg-rule-derivation-ba...
Best Regards,
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandeep,
Could you please elaborate, on what do you mean by any field is changed?
Please share a specific use case of what is the scenario.
You can also use CL_USMD_MDF_CHANGE_DOCUMENT class to read change documents of an MDG CR.
Regards
Anirban
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the replay Anirban, @0012anirban
Thanks for the replay Anirban, CL_USMD_MDF_CHANGE_DOCUMENT it will be happening after submission of CR. But Actual scenario required is once USER entered into change CR Type, if changing any field error message should get display.
@0012anirban
@0012anirban
First Step: USER Opened existing CR & click on edit
Now user tried to change, Name1 field (testing business partner to testing business partner - supplier)
At the time of giving new data in Name1 field error message should get prompt
I hope it's clear now 🙂
Note: Once It's get done, I will performing another logic to clear the error message
Thank You,
Sandeep Suggu.
@0012anirban
Soon after changing NAME1 Field - Error Message will be getting, so USER has to upload one document type. Once uploading done error message going to get vanish
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.