cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Update Z-field in MARA (retail)

jos_sarmento
Explorer
0 Kudos
955

Hi,

I need to update the value of a Z-field in MARA while using MM41/MM42.

The field shouldn't be available on screen but needs to be updated while/after saving.

I have found a BADI: BADI_ARTICLE_REF_RT. However this BADI seems to update only variant articles in MARA and not generic articles.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

thilakan_t
Participant

Then please refer the below link,

https://answers.sap.com/questions/10249222/adding-custom-fields-in-article-master-transaction.html

This is to add a custom field on screen but we can update the corresponding table using the custom program.

I added custom field in MM01 using similar steps but we are not using MM41.

If nothing works, then implicit enhancement is the only option. Find a right place to add custom code to update MARA table.

jos_sarmento
Explorer
0 Kudos

Thanks for the help, went for the enhancement solution.

Program: LMGINU08

Enhancement point: MATERIAL_POST_OTHER_DATA_02

Answers (1)

Answers (1)

thilakan_t
Participant

Debug MM41/MM42 and set breakpoint at method CL_EXITHANDLER=>GET_INSTANCE, statements like 'GET BADI', 'CALL BADI', 'CALL CUSTOMER-FUNCTION' to find suitable place to add the custom code.

jos_sarmento
Explorer
0 Kudos

Hi Thilakan T,

That's how I found the BADI_ARTICLE_REF_RT, but I can't find any similar that updates also the generic material.

Thanks