Basis your guidance, please refer enclosed word document which i followed and it didn't work.. for your reference had also attached script and data file too..
please consider to review and let me know where I'm missing..
Original Message:
Sent: 10-15-2024 16:17
From: Sigrid Kok
Subject: VA01 ATP screen within loop
Hi Brijesh
The BAPI won't make a selection, as there won't be an ATP pop-up.
For Transaction, here's something I worked on with a customer a few years ago. It depends on the screen that you're seeing. If confirmed qty was more than zero, the first part worked, other wise if the confirmed qty was zero, the ELSE portion kicked in. And we had to add the IF logic on the ELSE.
Note
(1) this wasn't in a loop, but we had it occur in two places in the script, which had the same set of IF logic for the ATP screen.
(2) your ok codes may need to be different
(3) this was in an ECC system

We had to do a lot of testing in step by step mode to ensure it covered all variations, so I can't modify your script. But I hope this will give you an idea of what you can try.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 10-15-2024 14:40
From: Brijesh Varma
Subject: VA01 ATP screen within loop
Dear Sigrid,
Thank you so much for your assistance,
WRT BAPI, As per my previous word document, not sure how i will be able to select the pop-up to select second row for phase in and Phase out material ? if this is possible then please share the example and i can try :-)
WRT Script, please find attached the script where i have included if condition to select the pop-up however now stuck with ATP screen.. :(
it would be of much help if you can also assist with adding if condition to manage ATP screens :-)
Thanks,
Brijesh
------------------------------
Brijesh Varma
JNTL Consumer Health (India) Private Limited
Mumbai
Original Message:
Sent: 10-15-2024 14:10
From: Sigrid Kok
Subject: VA01 ATP screen within loop
Hi Brijesh
Can you consider using a Direct script with a BAPI instead? The benefit is no UI so no pop-ups! :) I can share an example.
If not, can you please share your script? I've had instances where the ATP screen is different based on various scenarios, and it may be that you need an IF statement in there to determine which one you have.
FYI
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 10-15-2024 13:25
From: Brijesh Varma
Subject: VA01 ATP screen within loop
Dear Experts,
As perr enclosed screenshots ATP screen with Skip screen is not working within Loop, if I remove skip indicator and if for 1st material that screen is applicable then it will work perfectly fine and stop (loop wont work) in next row i.e. 2nd material for which this screen is not applicable.
Just to mention, as per enclosed screenshots I have a scenario of selection pop-up for material substitution which doesn't work for 'batch mode' as such script is based 'Standard non batch ....'.
Request to please assist to share how can i manage this scenario...
Thanks,
Brijesh
------------------------------
Brijesh Varma
JNTL Consumer Health (India) Private Limited
Mumbai
------------------------------