Description
When a script is running, it does not select the same line that was recorded if the selection required scrolling within SAP.
Solution
When recording a script, make sure to use the Page Down function, rather than the scroll bar, as scrolling is not captured correctly within a script. Rather than scrolling, the script captures this action as pressing the Enter Key without moving the table. This can be identified by looking within the Expert Mapper and checking for instances where a Screen Number and OK_CODE of "/00" appears before making the line selection.
In many cases, you can replace the "/00" OK Code on the scrolling screen with the Page Down function "=P+" without having to re-record the script. Please keep in mind that you may also need to remove other instances of the /00 as well as modify the grid position value in the field name to match where it is found in the list after a Page Down has been performed.
The grid position value is found after a field name that is within a table and is identified within parenthesis. For example, MSICHTAUSQ-KZSEL(01) represents the line that is currently showing first in the table. Please note that this position value should not be interpreted as it's position within the entire table. Another example would be that the 13th record in a table could be moved to the first row after using Page Down and would be represented by (01) and not (13).
Additional Information
OK Codes for Scrolling:
First Page =P--
Page Up =P-
Page Down =P+
Last Page =P++
Comments
0 comments
Please sign in to leave a comment.