I have a script recorded from SAP ERP via SAP GUI, to run transaction code VA05
. I need to run this script each day (I am fine achieving this) and I need the start date to always be the first date of the current month.
My script is below. What should I put in the VB script to replace "01.03.2021" so I always get the first date in the current month please?
session.findById("wnd[0]").maximize
session.findById("wnd[0]/tbar[0]/okcd").text = "va05"
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/ctxtVBCOM-AUDAT").text = "01.03.2021" '<=== HERE
session.findById("wnd[0]/usr/ctxtVBCOM-AUDAT").setFocus
session.findById("wnd[0]/usr/ctxtVBCOM-AUDAT").caretPosition = 10
session.findById("wnd[0]").sendVKey 0