Place the Cursor at the Beginning of a Text Label (VBScript)....
'The following example uses the SetCaretPos method to place the cursor at the
beginning of the "X" static text label and then clicks the "Blocking reason" button.
When the button is clicked, a status bar message displays the operation that was
performed.A checkpoint on the status bar verifies that the proper operationwas performed on the label.SAPGuiSession("Session").SAPGuiWindow("Invoice Items").SAPGuiLabel("X")_
.SetFocusSAPGuiSession("Session").SAPGuiWindow("Invoice Items").SAPGuiLabel("X")_
.SetCaretPos 0SAPGuiSession("Session").SAPGuiWindow("Invoice Items")_
.SAPGuiButton("Blocking reason").ClickSAPGuiSession("Session").SAPGuiWindow("Invoice Items")_.SAPGuiStatusBar("StatusBar").Check CheckPoint("StatusBar")
No comments:
Post a Comment
Note: only a member of this blog may post a comment.