Skip to Content
Jul 08, 2019 at 05:40 PM

Insert a date of my clipboard into a date interval, on a SAP transaction



I have a doubt. I have lots of routines that I'm stuck at recording scripts and macros, because I need to insert in the text the "yesterday date". When I record a script, which has a date interval, it comes like this :

session.findById("wnd[0]/usr/ctxtBUDAT-LOW").text = "05.07.2019"

session.findById("wnd[0]/usr/ctxtBUDAT-HIGH").text = "05.07.2019"

Is there any way I can insert this date, as a cell of my excel? Or paste of my clipboard?

like something : session.findById("wnd[0]/usr/ctxtBUDAT-LOW").text = "Range("B2").Paste

is it possible?

Thank you very much!