问题
I have created a GUI VBA script to update entries in a SAP table based on values in an Excel file. The Excel file is just an extracted version of the SAP table with new dates.
The script gets the values from a record in Excel searches the SAP table with the same and then changes a specific value, in this case the End Date. The bottleneck here is that only one line can be processed at a time.
Additional details:
- lines processed per minute:10
- Total Lines -180k
- Estimated time to process all records: 300 hrs
I am hoping to save as much time as possible as normally we only have about 7 days.
The code is optimized on VBA side (display screen updates is set to false). I have the standard connection object with SAP from VBA.
The bulk of the code is a loop and each field/cell in a row get assigned to variables and they are then used as parameters to find the record in SAP, which will subsequently be updated. The VBA goes to the next row.
I also set the SAP window to minimize which is the equivalent to screen updating =False in VBA.
Does anyone know how to boost the speed here? As there are lots of records needing to be updated, processing a line at a time is too slow for us.
来源:https://stackoverflow.com/questions/61157943/how-can-the-speed-of-a-sap-gui-vba-script-be-boosted