Step 8: Playing the VBS script to enter the line items

Step 8: Playing the VBS script to enter the line items

To create a new P.O. and have the VBS script enter the line-item data for you, follow these steps:
1. Run transaction ME21N.
2. Enter a Vendor number.
3. Enter the Purchasing Group.
4. Click Customizing of Local Layout and select Script Recording and Playback.
5. Click Play and open the VBS script (e.g. PO-Script.vbs).


Open script window.

Alternatively, you can drag and drop the VBS script to the SAPGUI screen.

The result: all line-items entered automatically.


Purchase Order Line Items.


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

This was first published in August 2005