cancel
Showing results for 
Search instead for 
Did you mean: 

Regd: Active and In-active version data of a CR

pradiptakumar_mishra
Participant
0 Kudos

Hi Experts,

  We have a requirement to compare the active (approved and created) and in-active (yet to be approved) data of an entity in a change request. For this, I have tried  cl_usmd_gov_api-> if_usmd_gov_api_cr_data~get_crequest_data, if_usmd_gov_api_entity~query_entity, cl_usmd_model_ext->read_entity_data_all etc.. But all of these are not giving desired results. I need all the changed values which are yet to be approved in one ITAB or structure and all the active data in another.

So would request if any one can share any input on this.

Thanks And Regards

Pradipta K Mishra

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I found that you can use class CL_USMD_MDF_CHANGE_DOCUMENT.

Do you see any issues with using this class?

michael_theis
Active Contributor
0 Kudos

Hi Abdullah,

no issues with this class. Still I don't really understand why a start from scratch is needed although there are already some existing implementations in the system?

Best regards

Michael

former_member206605
Active Contributor
0 Kudos

Hello Michael

For Finance can we query directly on table to find out active and inactive records? Before approver the status is always inactive.

Kiran

michael_theis
Active Contributor
0 Kudos

Hi Kiran,

no, you can never query directly on any MDG table.

Best regards

Michael

Former Member
0 Kudos

We are implementing the agent determination based on the data that was changed in the CR. That's why we need to identify what fields were changed programmatically.

Answers (1)

Answers (1)

former_member206605
Active Contributor
0 Kudos

Hello Pradipta

You want to compare the finance data right? Please confirm that so that we can give you some input.

kiran

pradiptakumar_mishra
Participant
0 Kudos

Hi Kiran,

  Thanks for the response. It is for all type of models i.e. material, supplier, customer. It is basically like the difference between what was already approved and what has been requested.

Thanks

Pradipta

michael_theis
Active Contributor
0 Kudos

Hi Pradipta,

MDG 7.0 SP2 offers this as an out of the box feature. In the common user interfaces you can enable the "Highlight Changes" functionaly that basically colors all fields that have been changed. Using the mouse-over on a changed field, the tooltip mention the old and new values.

In addition you can enable the BCV side panel content for changed fields. This would display all changes in a table-like view.

Refer to the configuration guides of the related MDG application for more details.

Best regards

Michael

pradiptakumar_mishra
Participant
0 Kudos

Hi Michael,

  Thanks for the reply. I understand you are referring to UI. But my requirement is to get these details programatically.

Thanks

Pradipta