Hey Guys,
I am trying to make a simple BPM to throw a message when Part.Character02 equals the word "Small" or "Medium". UPS is implementing rules for Lithium Ion batteries being shipped. I can't find a Condition that gives me the Part.Character02 field to use, so I assume I need custom code to get this done. I don't know ABL, so I need some help.
Basically, UPS wants a certain label or document added to each shipment that meets a certain criteria which are labeled Small and Medium. So I am going to add a UD field to the Part Entry Screen and fill that field with the word "Small" or "Medium" and throw a message on the screen for the shipper to add a label and/or document to the shipment package. Can someone help me with the code to do that?
I don't know how much more difficult it will be, but UPS won't allow any shipments that meet these requirements to be sent Air (Alaska, Hawaii or International). Is there some code we can add to stop the shipper from being able to ship an order that meets the Small or Medium category?
>> a certain label or documentCan you use a simple custom pack slip?
>> BPM
- add Part.Character02 to the RDD & a custom report style?
If you need a pop-up, can you provide some more context?
- when/where do you want the message to display
---- e.g. checking part record as each line is added to a shipment entry
---- or checking part records when you print/preview the pack slip
>>shipment entry and using the CustShip.POValidatePartI think you can just substitute:
>>modify
- ttPackOut for ttMscShpDt
- Part.Character02 for part.shortchar02
But I haven't actually tested this
/* Hazard Material Labels */
For each ttPackOut no-lock where ttPackOut.company = Cur-Comp, first part no-lock where part.company = cur-comp and part.partnum = ttPackOut.Partnum.
if part.Character02 = 'Small' then
{lib/PublishInfoMsg.i &InfoMsg = "'Add UPS Smaill Label to box'" &InfoSeverity = {&MESSAGE_INFO}}
else if part.Character02 = 'Medium' then
{lib/PublishInfoMsg.i &InfoMsg = "'Add UPS Medium Label to box'" &InfoSeverity = {&MESSAGE_INFO}}
End.