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

Is there a Function Module for Material Consumption?

Former Member
0 Likes
3,607

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,252

MB_UPDATE_MATERIAL_CONSUMPTION

check if the above works.

8 REPLIES 8
Read only

Former Member
0 Likes
2,253

MB_UPDATE_MATERIAL_CONSUMPTION

check if the above works.

Read only

0 Likes
2,252

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

Read only

0 Likes
2,252

>

>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.

Read only

0 Likes
2,252

did you find an option ?

i'm looking for a way to update corrected consumption with and without mrp areas ?

Read only

Former Member
0 Likes
2,252

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

Read only

Former Member
0 Likes
2,252

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

Read only

0 Likes
2,252

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

Read only

0 Likes
2,252

did you find an option ?

looking for the same ? update corrected consumption with but also without mrp area