Hi guys,
I am trying to get a code for downloading SAP reports automatically but I do not know how to fill the selection criteria once the macro "jumps" into SAP, see the code below:
Sub Macro1()
Dim ONE As DataObject
Range("A1").Select
ActiveCell.Formula = ("EU249001") 'This would be a WBSE, but it is just an example
ONE = ActiveCell
AppActivate ("SAP Easy Access")
Application.Wait ((Now + TimeValue("0:00:0" & 1)))
SendKeys "/nZK32{enter}", True 'The T-Code in which I would like to select the WBSE
'The only thing I need to know how to select the field in SAP,
'and also, how to copy and paste into each field
'I am also aware about "timing" problems between Excel and SAP, I will sort that out
End Sub
Help please!!
I am trying to get a code for downloading SAP reports automatically but I do not know how to fill the selection criteria once the macro "jumps" into SAP, see the code below:
Sub Macro1()
Dim ONE As DataObject
Range("A1").Select
ActiveCell.Formula = ("EU249001") 'This would be a WBSE, but it is just an example
ONE = ActiveCell
AppActivate ("SAP Easy Access")
Application.Wait ((Now + TimeValue("0:00:0" & 1)))
SendKeys "/nZK32{enter}", True 'The T-Code in which I would like to select the WBSE
'The only thing I need to know how to select the field in SAP,
'and also, how to copy and paste into each field
'I am also aware about "timing" problems between Excel and SAP, I will sort that out
End Sub
Help please!!