Application Development 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: 

Material_maintain_Dark for Material text.

Former Member
0 Kudos

Hello ,

Can anyboby tell me how to update MAKT table using Material_maintain_Dark Function Module .

I tried this function module and i am getting sy-subrc = 0 and and no error message .

but he material description is not updated.

Regards,

Hazam

2 REPLIES 2

Former Member
0 Kudos

Hello Hazam,

in the documentation of the function module MATERIAL_MAINTAIN_DARK you can find the following information:

"The commit work must be carried out by the initiator."

Try to call function module BAPI_TRANSACTION_COMMIT after a successful call of MATERIAL_MAINTAIN_DARK.

Best regards

Stephan

Former Member
0 Kudos

Hi,

In this function module the most improtant aspect is that you have to use field-symbols for updating the fields of the table before entering the function module. For the MAKT update, you have to give the field name which needs to be updated and the corresponding field entry in the structure MFIELDRES. This structure plays a major role in the updating of the records. While debugging after passing the function module, you can see the entries which have not been updated ,in the internal table 'amfieldres'. So these entries can be checked for errors using the BAPI_MESSAGE_GET_DETAIL function module.

Make sure that all your entries and the corresponding fields which need to be updated are first updated in the 'amfieldres' internal table, and then pass these internal tables into the function module. You can see that the records would be updated in the MM04 transaction.

Reward points if helpful.

Archana