BPM To stop part being added to Quote if QuoteDtl.SellingExpectedUM to set to "NFS"

Hello,

I am trying to get a BPM working the way I want.

I created a UOM for parts where you can mark as NFS and added to a test part.

I then created a BPM at Erp.BO.Quote.Update that checks if the field SellingExpectedUM is set to NFS.

Then it goes to a Raise Exception marked as ‘Terminate on Error’.

When I add the part to a quote, the exception pops up but the part still populates the line. It does stop me from saving the quote though.

What I am trying to do is stop it from even populating the line section.

Where did I go wrong?

OK,

I am told I need to beusing the ChangePartNum instead of update if I want to stop the fields from being set anyways. He said to use Pre-processing to stop it.

What I am unsure of is how do I get the value it is going to be set as instead of the value it currently is.

When I do a message with the field in it, it shows ‘EA’ instead of what it will be ‘NFS’.

Any ideas? I can really use the help.