on 01-20-2016 2:41 PM
Hello Experts,
We have a requirement where we need to verify that requester has changed at least one Data field in the CR before submitting it. Basically the requirement is to compare CR Data with Reuse area data & stop the requester from submitting the CR if there is no Data change.
In our scenario, we are deciding the next processor based on Data that is changed in the CR. So currently, if requester submits the CR without making any changes to Data, workflow gets lost because it not able to determine the next processor.
Any clues how can we achieve this ?
Best Regards,
Dheeraj
Hello Everybody,
We have used method io_model -> get_changed fields to see if there is any change or not.
Hope this helps for your requirements in future.
Best regards,
Dheeraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Convenience AP also provides a nice method for this requirement:
if_usmd_conv_som_gov_api~get_entity_field_changes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dheeraj
As per Std MDG behaviour if no change is changed is there in exiting object data then no CR will be generated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dheeraj,
it's valid for all releases that you can create a CR w/o changing any data. This is a feature of MDG that SAP does not intend to change.
The newer releases support a functionality called "Highlight Changes" which determines actuall field changes by comparing the active with the inactive data. But this feature is not part of MDG 6.1. Options for you are either upgrading your MDG system so that "Highlight Changes" is a part of your system, or implementing custom code to compare active and inactive data.
Best regards
Michael
Hi Michael,
Thanks for clarifying the confusion on CR creation.
Regarding comparison of Active & Inactive Data, until a CR is submitted (Requester step), I believe there is no Data available in staging area.
Before submission of a CR, we can get the CR Data using BADI USMD_RULE_SERVICE (similar way when we read CR Data for validations). Can you please suggest a way to read & compare Active Data for the CR ?
Best Regards,
Dheeraj
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.