Step 9: Troubleshooting
Hate manual data entry work? How about a typing in a few hundred line items in purchase orders with descriptions like "BOWMA-TORQ HX HD CAP SCR 1/2-13X1-1/2"? If the items do not exist as material numbers, you have no choice but to type their description by hand ... Except, of course, if you automate it with a smart SAPGUI script. Veteran Basis guru Giovanni Davila walks you through the process in this handy step-by-step guide. This is part 9.
"The control could not be found by id"
If you do, see the following possible causes:
1. The current SAPGUI screen does not the same windows (sections) used during the recording. Make sure that the header section is visible and that you have entered a vendor number and purchasing group.
2. The line item data is incorrect. Make sure that data can be validated. For example: the delivery data should not be in the past. The material group, plant and storage location should exist in the system.
3. The VBS script contains invalid GUI positions. Make sure that you don't have GUI positions out of boundaries.
![]()
AUTOMATING LINE-ITEM DATA ENTRY VIA SAPGUI
![]()
Home: Introduction
Step 1: Setting the stage
Step 2: Activating SAPGUI scripting
Step 3: Preparing the input data file
Step 4: Recording the data entry
Step 5: Analyzing the VBS script
Step 6: Automating the VBS script creation
Step 7: Running the VBS script program generator
Step 8: Playing the VBS script to enter the line items
Step 9: Troubleshooting
Review: Conclusion and more resources