Hello community,
I am facing a question here… how to calculate the lead time for all routing alternates with status buildable at once in IFS Cloud?

I can do it one by one but when I mark two or more, the option disappears.
I was thinking about BPA but as I am not an IT girl, I asked GPT for help. Can somebody confirm that this would be doable or propose suitable adjustements?
START (Scheduled or Manual)
routing_alternatives =
SELECT contract,
part_no,
routing_revision,
alternative_no
FROM Routing_Alternative
WHERE objstate = 'Released'
FOR EACH routing_alternative IN routing_alternatives
LOOP
CALL Routing_Alternative_API.Calculate_Manufacturing_Lead_Time(
contract => routing_alternative.contract,
part_no => routing_alternative.part_no,
routing_revision => routing_alternative.routing_revision,
alternative_no => routing_alternative.alternative_no
)
END LOOP
END
Thank you for your support,
BR
Petra
