‎2009 Feb 12 2:49 PM
I have to update the Material Consumption for MRP Area; I'm using a Call Transaction but I don't think it's the best way, if someone adds a new MRP Area the order changes, every month the new month is added on the first row and it's pretty slow.
Is there a function module I can use for it?
The field I'm changing is recorded on DVER table and the call transaction follows the next route:
Tx: MM02 -> MRP 1 view -> MRP areas -> Choose the MRP Area -> Consumption values -> Corrected value (field: RM03M_DB-KOVBW)
[Screenshot|http://www.e-pando.com.mx/html/data/phoo/2009_02_12/dver.JPG]
Thanks.
‎2009 Feb 12 2:56 PM
‎2009 Feb 12 2:56 PM
‎2009 Feb 12 3:05 PM
Please don't suggest an update task function module to update data, this function module is executed during update task following material movement or stock update, it is not intended to be used stand alone.
Look at SE37 to check if this is an update task function. These module usually do nothing more than update database, they come after any checks and are only a part of database update and so they MUST NOT be called directly.
Regards
‎2009 Feb 12 3:30 PM
>
>MB_UPDATE_MATERIAL_CONSUMPTION
>
>check if the above works.
I have seen that one, it's fot Material Consumption without MRP Area, the one that you can see in the
Forecasting view.
>
>Hi
>
>Check this BAPI: BAPI_MATERIAL_SAVEDATA.
>
>To get a clear understanding on how to work ,you can check the documentation of the BAPI in Se37.
>To update the characteristics value for material use BAPI_OBJCL_CHANGE,
>and also you can have a glance at the function group CLBPA to find
>lot of useful classification functions.
>
>Hope this will solve your problem
>Regards
>Hareesh
Okay, I have seen that one but I'll see the documentation to get a clear idea.
>
> Please don't suggest an update task function module to update data, this function module is executed during update task following material movement or stock update, it is not intended to be used stand alone.
>
> Look at SE37 to check if this is an update task function. These module usually do nothing more than update database, they come after any checks and are only a part of database update and so they MUST NOT be called directly.
>
> Regards
Alright, good to know.
Thanks.
‎2020 Nov 30 2:40 PM
did you find an option ?
i'm looking for a way to update corrected consumption with and without mrp areas ?
‎2009 Feb 12 2:58 PM
Hi
Check this BAPI: BAPI_MATERIAL_SAVEDATA.
To get a clear understanding on how to work ,you can check the documentation of the BAPI in Se37.
To update the characteristics value for material use BAPI_OBJCL_CHANGE,
and also you can have a glance at the function group CLBPA to find
lot of useful classification functions.
Hope this will solve your problem
Regards
Hareesh
‎2010 Nov 16 11:56 PM
Hi Mario,
I have the exact same issue. Rght now i am using the BDC call transaction method to update consumption values to the table DVER. I wanted to know if you found any Function module or BAPI to update the table DVER directly.
Thanks
Sud
‎2010 Nov 20 3:57 AM
Hi Sud,
No, I couldn't find another solution... I had to implement a very complex code to update it with BDC. Actualy I did my own Function Module.
Good luck!!
Mario
‎2020 Nov 30 2:41 PM
did you find an option ?
looking for the same ? update corrected consumption with but also without mrp area