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_maintain_dark

Former Member
0 Likes
777

Hello,

I would like to change the field MSTAE(MARA) for an existing material number as well as the field MMSTA(MARC) for all plants concerned.

I have a entry in table AMARA_UEB with the transaction number 1 and n-entries in table AMARC_UEB with the same transaction number.

After execution of the funtion material_maintain_dark the file MARA was updated. But it was only one plant in the file MARC updated.

How do I have to proceed, to update all plants ?

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
682

You would need to have all records for all plants in the AMARC_UEB table. Loop at that ITAB and change the value of MMSTA for all plants. That should be it.

Regards,

Rich Heilman

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
683

You would need to have all records for all plants in the AMARC_UEB table. Loop at that ITAB and change the value of MMSTA for all plants. That should be it.

Regards,

Rich Heilman

Read only

0 Likes
682

Hello,

Thanks for your answer.

The table AMARC_UEB is filled with all plants for the Material to change. MMSTA is changed in the ITAB.

But the function changes only the last plant in the file MARC. The other plants were not changed in the file MARC.

We would like to change all plants with one call of the function.

best regards,

Catherine Jamann

Read only

0 Likes
682

Hi Catherine,

Unfortunately MATERIAL_MAINTAIN_DARK can process only one record in AMARC_UEB for one logical transaction. If you want update all plants for particular material in one call of MATERIAL_MAINTAIN_DARK then I would suggest creation of several logical update transactions for the function (though never tried it myself) for each plant.

Read only

Former Member
0 Likes
682

Hi,

Why dont you try transation MASS.

Cheers.