SAP Message AQ166 - InfoSet & has not yet been generated

Diagnosis
You attempted to select an InfoSet that has not yet been generated. Youcan only use InfoSets that have already been generated to carry outyour intended function.

Procedure
Generate the InfoSet first before calling the function again.