Application Development 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: 

Mapping of 3 different file in LSMW for message type MATMAS

0 Kudos


Hello,

I am trying to upload material master. Please find below structure as an input for message type MATMAS with basic type MATMAS02.

I am able to map header with item. But when i am trying to map item with sub item, i am not able read data.

Header Input (E1MARAM)

zkey1     matnr               matkl

1          1000000001      001

Item data (E1MARCM)

zkey1     zkey2     werks          ekgrp

1            1            0001            001

1            2            1000            001

Sub item data (E1MARDM)

zkey1     zkey2     lgort     

1             1           0001

1             1           0002

1             2           0001

1             2           0002

I am able to map header with item data. But when i am trying to map item with sub item data, i am not able to read data.

Kindly provide suggestions and let me know if more informations required.

1 ACCEPTED SOLUTION

JL23
Active Contributor
0 Kudos

can you show a screenshot from step 3 Maintain source fields after clicking the button for fields with same name

The log of  the Read data step  would also help.

2 REPLIES 2

JL23
Active Contributor
0 Kudos

can you show a screenshot from step 3 Maintain source fields after clicking the button for fields with same name

The log of  the Read data step  would also help.

JL23
Active Contributor
0 Kudos

I think it is already easier

What do you actually do with your zkey fields?

you only need

MATNR in E1MARAM

MATNR and WERKS in E1MARCM

MATNR and WERKS and LGORT for E1MARDM

If you want to keep your Zkey fields, then please do it this way:

Header Input (E1MARAM)

zkey1     matnr               matkl

1          1000000001      001

Item data (E1MARCM)

zkey1     zkey2    matnr             werks          ekgrp

1            1            1000000001    0001            001

1            2            1000000001    1000            001

Sub item data (E1MARDM)

zkey1     zkey2     matnr             werks       lgort    

1             1           1000000001    0001      0001

1             1           1000000001    0001     0002

1             2           1000000002    0001    0001

1             2           1000000002    0001    0002