Hi Mathew,
I too experience this kind of issues. This is what I did as work around.
Steps:
1. Create two different scripts. One without pop-up another one with pop-up.
2. Run the excel data sheet with first script. All the data will be successful where no pop-up occur. Other data rows will error out.
3. Run same excel file with second script with option Run on Errors
Hope this will help.
Thanks
Madhu
------Original Message------
Hello, I am working on a script to create sales orders in VA01....I need the script to select specific responses to pop-up messages when present & skip if not present, to eventually allow sales order creation
or cancel sales order creation if the PO is identified as being used for a prior sales order (this is a pop-up message after
SAVE is selected).
The main issue I experience is that the same pop-up messages do not appear during every attempted order creation and I am not sure if this causes the script (or SAP) to behave differently when this occurs. More specifically, when the pop-up message does not occur to "
Re-determine shipping conditions", the script runs as expected until the last line item is added. At this point I would expect the script to
SAVE the sales order but the cursor just goes to the next blank line and nothing happens (in
DEBUG). When I
RUN the script I receive the error message "Please enter a ship-to or sold-to party" and the sales order is NOT saved.
When this same script is ran and the "Re-determine shipping conditions" pop-up occurs, the script runs as expected and either creates the sales order or cancels order creation if the PO has been used on a previous sales order.
Any assistance in resolving this nagging issue would be appreciated.
------------------------------
Matthew Dunn |
Supply Chain Analyst
Coca-Cola Bottling Company United (CCBCU)
------------------------------