+

Search Tips   |   Advanced Search


Add an SAP sequence element

You can use SAP sequence elements to specify complex interactions with the SAP GUI that involve multiple actions within a single object.

SAP sequence elements represent complex user interactions with the SAP GUI, and contain multiple SAP set, get, or call child elements where each child element of the sequence is an action that relies on the return result of the preceding child element. In most cases, SAP sequences are recorded when you interact with complex SAP GUI objects. However, with advanced knowledge of the SAP API, you can use SAP sequences to create complex actions or verification points.

SAP sequence elements are contained in SAP screen elements.

You can use either the test editor or the SAP Protocol Data view to create or edit SAP sequences. When using the SAP Protocol Data view, you can select SAP screen objects from the screen capture and copy the information directly to the new SAP sequence element. The SAP Protocol Data view contains two pages that are synchronized with each other and with the test editor:

To add a SAP sequence element, perform the following steps:

  1. Open the test in the test editor and the SAP Protocol Data view. If the SAP Protocol Data view is not open, click Window > Show View > Other > Test > SAP Protocol Data

  2. In the Test Contents area of the test editor, expand a transaction and a SAP screen. The SAP Protocol Data view displays a screen capture of the selected transaction.

  3. Inside the SAP screen, select where to enter the new sequence. The Screen Capture page of the SAP Protocol Data view displays the screen capture of the current SAP screen.

  4. In the SAP Protocol Data view, right-click the SAP GUI object for which to create the SAP sequence element, and then click Create Element. This opens the Create Element window, which already contains the Identifier from the recorded session.

  5. Select Advanced, select SAP Sequence in the Element type list, and then click Finish.

  6. In the Test Contents area of the test editor, select the SAP sequence and click Add > Element to add a SAP set, get, or call element to the SAP sequence.

  7. In the Test Contents area of the test editor, select the SAP sequence, and then click Add or Insert to add sequence child elements as required. In the Create Element window, use the Cast button to cast the results of the previous child element to match the expected input type. See the SAP API documentation for detailed information on SAP objects and calls.


Related tasks

  • Add an SAP set, SAP get, or SAP call element
  • Add a batch input transaction