Generally, you may consider using the MASTERIDOC_CREATE_MATMAS function to do this job. However, if you copy it within the same system, there may also be a convenient alternative to call the MATERIAL_MAINTAIN_DARK directly with the correct data provided. Z-Fields in MARA table are usually copied into a new material when they are part of a proper APPEND-structure of MARA. If you send IDocs to the same system, you have to create a second logical system pointing back to your system (you can use destination NONE), as the integrity checker will not allow sending IDoc to your own system.
Dig Deeper on SAP MM
Related Q&A from Axel Angeli
An SAP user wants to know how to upload data into SAP R/3 when SAP Scripting is not enabled. Continue Reading
An SAP user is receiving an error message while integrating SAP iDoc PORDCR1 for a purchase order. Continue Reading
An SAP user is having difficulty with PERNR iDoc while transporting data from SAP to an external system. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.