SAP - MM01 - Create Material

Hi yall,

I tried to automate simple SAP transaction MM01 (Create Material)…and it was fun. :grinning_face_with_smiling_eyes:

I would like to share my solution with you.

You can find further information in the video description.

In case you wanna rebuild it, here is a copy of the locators I used:

#SAP Login Locators
${sap_locator_tenant}    wnd[0]/usr/txtRSYST-MANDT
${sap_locator_user}    wnd[0]/usr/txtRSYST-BNAME
${sap_locator_password}    wnd[0]/usr/pwdRSYST-BCODE
#MM01 Entry Locators
${sap_locator_material}    wnd[0]/usr/ctxtRMMG1-MATNR
${sap_locator_industry}    wnd[0]/usr/cmbRMMG1-MBRSH
${sap_locator_materialType}    wnd[0]/usr/cmbRMMG1-MTART
#MM01 View Locators
${sap_locator_viewsTable}    wnd[1]/usr/tblSAPLMGMMTC_VIEW
${sap_locator_checkButton}    wnd[1]/tbar[0]/btn[0]
#MM01 Base Locators
${sap_locator_desc}    wnd[0]/usr/tabsTABSPR1/tabpSP01/ssubTABFRA1:SAPLMGMM:2004/subSUB1:SAPLMGD1:1002/txtMAKT-MAKTX
${sap_loactor_baseUnit}    wnd[0]/usr/tabsTABSPR1/tabpSP01/ssubTABFRA1:SAPLMGMM:2004/subSUB2:SAPLMGD1:2001/ctxtMARA-MEINS
#MM01 Save Window
${sap_locator_yesButton}    wnd[1]/usr/btnSPOP-OPTION1
#Statusbar
${sap_locator_statusbar}    wnd[0]/sbar
4 Likes

Thanks for sharing! :slight_smile:

1 Like