I am recording a scenario via SAPGUI mode of eCATT.
Depending on the PO type, 2 fields become mandatory for data entry. I have maintained these 2 fields (say, A and B) as import parameters in my script.
PO type X -- Field A and B are optional.
PO type Y -- Field A and B are mandatory and system throws an error message asking user to enter values into these fields.
I have made the corresponding "processed screen" optional in my script so I can use the same script for both PO types. Yet, the script does not seem to work for PO type X and says that it expected to see the screen where A and B had to be entered but did not.
Is there any other way I can handle this so that the same script will work for both PO types X and Y?