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: 

Uploading Custom fields Via LSMW.

Former Member
0 Kudos

Hi ABAP Gurus,

we are using LSMW for uploading the Materal master data, But we are having a Z(custom) field which is not being updated in the Table level. And this field is Appended in the standard table.so can any one pls suggest me how to upload custom fields via LSMW.

Regards,

Chaitanya.

1 REPLY 1

jack_graus2
Active Contributor
0 Kudos

If you use BAPI to upload LMSW then the method BUS1001006-SAVEDATA can be used. The Z fields are to be defined in customer append structure. For Material header MARA these are BAPI_TE_MARA and BAPI_TE_MARAX. After this the Z fields can be mapped from LSMW into the BAPI segments E1BPPAREX and E1BPPAREXX. In field STRUCTURE should be the name of your extension segment. Here BAPI_TE_MARA and BAPI_TE_MARAX. In field VALUEPART1, 2, .. should be the complete structure BAPI_TE_MARA(X).

If you use IDOC to ulpoad LSMW then the IDOC MATMAS05 can be used. To upload additional Z fields an extension IDOC with your additional Z fiellds in extension segments should be created. To process these Z fields a BADI is to be used like BADI_MATMAS_ALE_IN.

Regards Jack