Hi all,
I have a requirement to update material routing status when a certain program is executed. I followed the sample and instruction from SAP note 488765 - Do-it-yourself EWB programming. The program is working properly, until there's a routing with assigned Change Number --- and the Change Number has 'Inactive' status when checked in table AENR.
Now, the business asks why it can be updated manually in tcode CA02 without any problem about the inactive Change Number. I tried it in CA02, and yes, I can update the routing status.
I'm using FM 'CP_CL_S_TSK_CHANGE' to update the material routing, is there a way to skip the check on Change Number status? I also tried to assign blank in parameter I_ECN_S (change number) and it doesn't allow update when it's blank.
Thanks!