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

Populating custom fields for MATMAS05 extension

flowers_candys
Participant
0 Kudos
5,050

Hello Gurus,

I have a requirement where I need to populate the custom MARA fields in the IDoc for creating the material master.

Steps done so far:

  1. Created an extension type ZMATMAS05 based on basic type MATMAS05 using WE30
  2. Added the 3 custom fields in ZSEG using WE31 (The field names and data types are exactly similar to the fields added in MARA append structure)
  3. Included ZSEG in extension type ZMATMAS05 using WE30. The parent segment for ZSEG is E1MARAM
  4. Released the custom segment as well as the extension type
  5. Message type, basic type and extension all have been linked using WE82
  6. Implemented a custom project for enhancement MGV00001 as it contains an exit EXIT_SAPLMV02_002 that is being used for populating the custom fields in the IDoc
  7. I have written the appropriate code for populating the custom fields of the custom segment

After performing all the above mentioned steps, I see a required material being created, but, unfortunately, the custom fields are not populated in MARA.

I am using IDOC_INPUT_MATMAS01, and this makes use of MATERIAL_MAINTAIN_DARK to create a material.

When this MATERIAL_MAINTAIN_DARK is called, the table T_MARA_UEB has all the custom fields populated with the correct values.

So ideally, it should have created the material with the custom fields.

Please let me know if I am missing out on anything.

Thanks, Malhaar


2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Kudos
1,849

I suppose you already read Note 44410 - Integrating cust.-specific fields in matl master?

If you use ALE, you must also add fields to the IDoc. To process enhanced IDocs, you can use enhancement MGV00001 with customer exit EXIT_SAPLMV01_002 for creating the IDocs and customer exit EXIT_SAPLMV02_002 for posting the IDocs.

Regards,

Raymond

Read only

PDeVolder
Newcomer
0 Kudos
748

Hi, 

How did you solve this issue ? 

Thanks !