09-09-2014 12:46 PM
Hi Experts !!
I need to update the MAEX table in mass level through a batch job.
Updating the table directly is not recommended. So, a BAPI or a FM would have helped.
One more thing, if I update it through a BAPI or FM, will the change history log in MM02 or MM03 be maintained automatically by SAP ?
Also if I directly update the MAEX table, how to maintain the change history log ?
Below are the fields which I want to update.
09-09-2014 6:49 PM
You could use function module MATERIAL_N_WRITE_DOCUMENT which supports MAEX to create planned changes, display with MM14 and apply with MM13. Yes, change documents will be created.
09-09-2014 6:49 PM
You could use function module MATERIAL_N_WRITE_DOCUMENT which supports MAEX to create planned changes, display with MM14 and apply with MM13. Yes, change documents will be created.
09-10-2014 8:10 AM
Hi Samuli,
I have checked this FM MATERIAL_N_WRITE_DOCUMENT. But this is for updating the change history.......but not for updating the MAEX table.
But yes, if someone wants to a FM to create MAEX change history, this is the FM for it.
I did get another FM to save data into MAEX table. FM MAEX_SAVE.
09-10-2014 8:26 AM
The function module can be used to create Planned Changes which can be activated with transaction MM13. We use it extensively to make changes to material master on specified validity date since the standard material master doesn't have a validity date concept, only BOMs do.
09-10-2014 10:02 AM
Those FM are update FM (check with SE37) called at end of transaction after checking data validity and must not be called alone in a customer program, using those FM is not better than direct SQL update of database (or you actually want to duplicate SAP standard checking and find every update FM to call, wrong idea usually)
Read also 1710449 - Transaction MM17 (Mass Change) or BAPI BAPI_MATERIAL_SAVEDATA does not support update on d.... So nowadays the correct solution is the use of Batch Input
Regards,
Raymond
09-10-2014 10:10 AM
09-24-2014 12:29 PM
Hello Peter,
I think this is not the FM. This FM only brings the pop-up window.