Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for 'Scheduled Material Changes'

Former Member
0 Likes
492

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

1 REPLY 1
Read only

Former Member
0 Likes
351

This need to be done via schdeduling BAPI in future date.