HI Gurus,
I have a requirement for which need to write a SAP query. Business wants to see a list of materials for which if particular fields ( MVKE- MVGR2, MVKE-MVGR3 & MVKE-MVGR4) had been changed in last one week period then they want to see that list with material name, old value of that fields and new value of that fields.
I know the sequence but need help to setup the query.
Run MARA with cnhaged date ( from today to last week)
Get all the materials from MARA and run CDHDR with object = material and object ID = all materials found from MARA and get change ducment number
Now run CDPOS with object = material and object ID = all materials found from MARA, chnaged document num = found number from CDHDR and table = MVKE and table field = MVGR2, MVGR3 & MVGR4.
ABove steps are displaying required results if I run all the above steps manually using SE16.
But need step by step instruction how to setup a SAP quesry.
Please hlp.
Jess