Hi expert,
I am trying to mass generate (or clear) orders using SAP script fonctionality.
I first record one example, then amend the script, and then re run for multiple products in one go.
It works fine most of the time...
Unfortunately due to some master data setup the script sometime needs to be slighly changed from one orders to another (e.g if there is a minimum qty maintained I got a popup "are you sure you want to save", then my script bug...)
Most of the time just pressing enter or yes will help me, but I can't (or I don't want to) find out in advance when it will. So basically I want my script to be flexible enough to handle differents scenario.
I tried to modify the code to include a condition but I am not sure what the condition should look like... (obviously it should not look like anything I tried)
E.g:
If xxxxxxxx Then
session.findById("wnd[0]").sendVKey 0
(or session.findById("wnd[1]/usr/btnBUTTON_1").press)
End if
Can somebody help me to fill the xxxxxxxxxxxxx, or explain to me how I can find out by myself?
I hope it makes some sense for some of you (I am not sure to be very clear...)
If it does and you have a solution for me, please bear in mind that I am not an ABAP consultant and it is more or less my first day with SAP script, so please be gentle 😉
Many thanks in advance
Julien