CLICK THE MULTIPLE SELECTION BUTTON USING NORMAL SAP SCRIPTING

CLICK TO INSERT HEADER 1 CLICK HERE TO ADD
CLICK TO INSERT HEADER 1 CLICK TO INSERT HEADER
HOW TO OPEN THE ASN OVERVIEW CLICK THE DELIVERY

[DOUBLE CLICK HERE AND ENTER DEPARTMENT] NEW TEAM
{CLICK HERE AND TYPE THE TITLE} BY {TYPE YOUR
(CLICK (CLICK (CLICK (CLICK (CLICK (CLICK (CLICK (CLICK (CLICK

Click the multiple selection button using normal SAP scripting

Click the multiple selection button using normal SAP scripting

CLICK THE MULTIPLE SELECTION BUTTON USING NORMAL SAP SCRIPTING


Click the Import from Text File button using standard Windows recording

CLICK THE MULTIPLE SELECTION BUTTON USING NORMAL SAP SCRIPTING

The open dialog box will appear

CLICK THE MULTIPLE SELECTION BUTTON USING NORMAL SAP SCRIPTING


Click the file name (or enter name in file name field) and click Open button, using standard Windows recording

CLICK THE MULTIPLE SELECTION BUTTON USING NORMAL SAP SCRIPTING

Click the Execute button using normal SAP scripting

CLICK THE MULTIPLE SELECTION BUTTON USING NORMAL SAP SCRIPTING


Your steps may be different based on what it is you are trying to do, but the idea is that you need to start using standard windows recording to open the dialog box (when I used SAP scripting to do this, it seemed to wait for a response back from SAP, which it never got), and continue using standard windows recording until the dialog box has closed. My code is as follows.


1. Click multiple selections button

SAPGuiSession("Session").SAPGuiWindow("/SCWM/SAPLSTOCK_OVERVIEW_MON").SAPGuiButton("Multiple selection").Click


2. Click Import from Text File button

Window("Warehouse Number Z21A").Dialog("/SCWM/SAPLSTOCK_OVERVIEW_MON").Dialog("Multiple Selection for").WinButton("Button").Click


3. Select file (by clicking on it)

Window("Warehouse Number Z21A").Dialog("/SCWM/SAPLSTOCK_OVERVIEW_MON").Dialog("Multiple Selection for").Dialog("Open").WinListView("SysListView32").Select "admin.txt"


4. Click Open button

Window("Warehouse Number Z21A").Dialog("/SCWM/SAPLSTOCK_OVERVIEW_MON").Dialog("Multiple Selection for").Dialog("Open").WinButton("Open").Click


5. Click Execute button

SAPGuiSession("Session").SAPGuiWindow("Multiple Selection for").SAPGuiButton("Copy (F8)").Click


I recorded steps 2-4 as a separate test, after opening QTP with no add-ins. I then exported the repository. I then opened a new test, with the SAP add-in, and recorded steps 1 and 5. I pasted steps 2-4 in, and associated the repository that I had exported with this test. Then I was able to run the test fine. My object repository is shown below. The grayed out objects are the from the associated repository, the others are in the local repository.


CLICK THE MULTIPLE SELECTION BUTTON USING NORMAL SAP SCRIPTING


(CLICK AICI PENTRU VARIANTA EDITABILĂ) CONTRACT INDIVIDUAL DE ADMINISTRARE)
1 6 CLICK HERE AND TYPE DOCUMENT TITLE DO
17 30 APRIL 1998 ISSUE NO 101 CLICK


Tags: button using, execute button, selection, scripting, multiple, click, button, using, normal