Advertisement
Guest User

Untitled

a guest
May 13th, 2022
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. session.findById("wnd[0]").maximize
  2. session.findById("wnd[0]/tbar[0]/okcd").Text = "mm01"
  3. session.findById("wnd[0]").sendVKey 0
  4. session.findById("wnd[0]/usr/ctxtRMMG1-MATNR").Text = Cells(10, 2)
  5. session.findById("wnd[0]/usr/ctxtRMMG1_REF-MATNR").Text = Cells(10, 2)
  6. session.findById("wnd[0]/usr/ctxtRMMG1_REF-MATNR").SetFocus
  7. session.findById("wnd[0]/usr/ctxtRMMG1_REF-MATNR").caretPosition = 10
  8. session.findById("wnd[0]").sendVKey 0
  9. session.findById("wnd[1]/tbar[0]/btn[19]").press
  10. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").getAbsoluteRow(7).Selected = True
  11. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").getAbsoluteRow(8).Selected = True
  12. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").getAbsoluteRow(9).Selected = True
  13. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").getAbsoluteRow(14).Selected = True
  14. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").getAbsoluteRow(15).Selected = True
  15. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW/txtMSICHTAUSW-DYTXT[0,15]").SetFocus
  16. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW/txtMSICHTAUSW-DYTXT[0,15]").caretPosition = 0
  17. session.findById("wnd[1]/tbar[0]/btn[6]").press
  18. session.findById("wnd[1]/usr/ctxtRMMG1-WERKS").Text = "RICH"
  19. session.findById("wnd[1]/usr/ctxtRMMG1_REF-WERKS").Text = "RIDK"
  20. session.findById("wnd[1]/usr/ctxtRMMG1_REF-WERKS").SetFocus
  21. session.findById("wnd[1]/usr/ctxtRMMG1_REF-WERKS").caretPosition = 4
  22. session.findById("wnd[1]/tbar[0]/btn[0]").press
  23. session.findById("wnd[0]").sendVKey 0
  24. session.findById("wnd[0]").sendVKey 0
  25. session.findById("wnd[0]").sendVKey 0
  26. session.findById("wnd[0]").sendVKey 0
  27. session.findById("wnd[0]").sendVKey 0
  28. session.findById("wnd[1]/usr/btnSPOP-OPTION2").press
  29.  
  30. session.findById("wnd[0]").maximize
  31. session.findById("wnd[0]/tbar[0]/okcd").Text = "mm01"
  32. session.findById("wnd[0]").sendVKey 0
  33. session.findById("wnd[0]/usr/ctxtRMMG1-MATNR").Text = Cells(11, 2)
  34. session.findById("wnd[0]/usr/ctxtRMMG1_REF-MATNR").Text = Cells(11, 2)
  35. session.findById("wnd[0]/usr/ctxtRMMG1_REF-MATNR").SetFocus
  36. session.findById("wnd[0]/usr/ctxtRMMG1_REF-MATNR").caretPosition = 10
  37. session.findById("wnd[0]").sendVKey 0
  38. session.findById("wnd[1]/tbar[0]/btn[19]").press
  39. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").getAbsoluteRow(7).Selected = True
  40. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").getAbsoluteRow(8).Selected = True
  41. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").getAbsoluteRow(9).Selected = True
  42. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").getAbsoluteRow(14).Selected = True
  43. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").getAbsoluteRow(15).Selected = True
  44. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW/txtMSICHTAUSW-DYTXT[0,15]").SetFocus
  45. session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW/txtMSICHTAUSW-DYTXT[0,15]").caretPosition = 0
  46. session.findById("wnd[1]/tbar[0]/btn[6]").press
  47. session.findById("wnd[1]/usr/ctxtRMMG1-WERKS").Text = "RICH"
  48. session.findById("wnd[1]/usr/ctxtRMMG1_REF-WERKS").Text = "RIDK"
  49. session.findById("wnd[1]/usr/ctxtRMMG1_REF-WERKS").SetFocus
  50. session.findById("wnd[1]/usr/ctxtRMMG1_REF-WERKS").caretPosition = 4
  51. session.findById("wnd[1]/tbar[0]/btn[0]").press
  52. session.findById("wnd[0]").sendVKey 0
  53. session.findById("wnd[0]").sendVKey 0
  54. session.findById("wnd[0]").sendVKey 0
  55. session.findById("wnd[0]").sendVKey 0
  56. session.findById("wnd[0]").sendVKey 0
  57. session.findById("wnd[1]/usr/btnSPOP-OPTION2").press
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement