09-13-2011 3:19 PM
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.
09-14-2011 3:55 AM
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