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

Material Update (MARC)

0 Likes
2,441

Dear colleagues,

Material is available in 2 plants (for example, A and B). User goes to MM02 (plant A) and changes a field (f1) on the tab Basic Data (table MARA). But this field (f1) affects on a plant-field (f2) for both plants (table MARC). How can we update the field (f2) for both plants automatically?

Best regards,

Dmitry

7 REPLIES 7
Read only

former_member620069
Participant
0 Likes
2,345

Use: BAPI_MATERIAL_SAVEDATA

Read only

0 Likes
2,345

When do I have to call it? in V2 process after saving material?

Read only

venkateswaran_k
Active Contributor
0 Likes
2,345

Can you please explain

1. Are you using MM02?

2. Which fields - you are trying to change?

Read only

0 Likes
2,345

1. yes, we use MM02

2. we change MARA-Zfield1 which trigger a change MARC-Zfield2 for all plants. how to update MARC-Zfield2 after saving MM02?

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,345

Did you look for a BAdI (such as those of Enh. spot ES_SAPLMGMU) an Exit (such as EXIT_SAPLMGMU_001) or a BTE (such as 00001250) to trigger an execution of (example) BAPI_MATERIAL_GETLIST, BAPI_MATERIAL_GET_DETAIL, BAPI_MATERIAL_SAVEDATA, BAPI_TRANSATION_COMMIT/ROLLBACK wrapped in a RFC enabled FM called in background task/unit to change/adapt related records after the transaction commit?

Read only

0 Likes
2,345

Hi, yes, this is I am going to do. Is this only solution?

Read only

0 Likes
2,345

There are many solutions, but this one is relatively simple and robust (in fact, a transaction like MM02 can only lock one MARC record at a time, so you'd have to twist it to get it to do the job...)