‎2010 Oct 18 3:02 PM
Hi,
For changing material data on current date , we are using BAPI_MATERIAL_SAVEDATA and it works perfectly fine.
we also change materials with a future date . we do so by creating a Change Number with a future date and then changing the material with that change number in transaction code MM12. but when we try to do the same changes automatically with BAPI_MATERIAL_SAVEDATA , we are getting error 'Valid-from date is in the future' . This is because BAPI_MATERIAL_SAVEDATA behaves as if we are making changes with transaction code MM02, and hence the error ( same error comes when one try these kind of changes in MM02 and it is logical ) .
Now my question is how we can make BAPI_MATERIAL_SAVEDATA behave as if we are making changes in MM19. or if there exists some other function modules or some other way to do it . Please advise.
Thanks.
Gaurav
‎2010 Oct 29 9:32 AM