Posts

Showing posts with the label material

Update UOM and material group from excel file to SAP system by using BAPI in ABAP.

Image
 FM-  BAPI_MATERIAL_SAVEDATA Step 1: Goto SE11 give table name as MARA . Goto contents give material number and execute. Step 2: Goto SE38 create program and write code. Report Program REPORT  ZAB_BAPI_MATERIAL_UPDATE_EXCEL . TYPES :  BEGIN  OF  ty_mara ,          matnr  TYPE  mara - matnr ,          mbrsh  TYPE  mara - mbrsh ,          mtart  TYPE  mara - mtart ,          maktx  TYPE  makt - maktx ,          meins  TYPE  mara - meins ,          matkl  TYPE  mara - matkl ,         END  OF  ty_mara . DATA :  lw_mara    TYPE  ty_mara ,     ...

Update UOM and material group MM02 in ABAP.

Image
Step 1: Goto T-code MM03 give material number and press enter. Select  basic data press enter. Step 2: Goto MM02   give material number and press enter. Select basic data press enter. Step 3: In this scenario  UOM-EA is changed to UOM-KG and YU310 mat grp is changed to YU309. Step 4: Click on save. Check the changes. 1. Goto MM03 give material number and press enter.

Create the material details from excel file using BAPI in ABAP.

Image
 FM-  BAPI_MATERIAL_SAVEDATA Step 1: Create the excel sheet with mandatory fields. Step 2: Goto SE38 and create an executable program. Report program. REPORT  zab_bapi_material_create_excel . TYPES :  BEGIN  OF  ty_mara ,          matnr  TYPE  mara - matnr ,          mbrsh  TYPE  mara - mbrsh ,          mtart  TYPE  mara - mtart ,          maktx  TYPE  makt - maktx ,          meins  TYPE  mara - meins ,          matkl  TYPE  mara - matkl ,         END  OF  ty_mara . DATA :  lw_mara    TYPE  ty_mara ,       it_mara    ...