Verifying the BinNum of a scanned serial number when issuing to a job

Hello,

I am attempting to validate the serial number of a part when it is issued to a job. The Issue Material form (and Issue Miscellaneous Material form) invokes the Select Serial Numbers sub-form, when the Serial Numbers… button is pressed. Suppose the part’s serial number is scanned into the Serial Number textbox and the Select button is pressed. The selected serial number is not verified to be in the From Bin (entered on the Issue Material form).

I thought to fix this behavior by creating a pre-processing method directive on the AddSerialNum method of the SelectedSerialNumbersImpl business object (BO). However, the SelectedSerialNumbersImpl does not have visibility of the from BinNum value on the Issue Material form.

Can someone please suggest how to access the value of the ttIssueReturn.FromBinNum field (in the IssueReturnImpl BO) from within the AddSerialNum method of the SelectedSerialNumbersImpl BO)?

Thank you,
Darrell Shane

Store it to a variable within the BPM and compare the variable to the selected serial number.

Vinay Kamboj

Vinay,

Please tell me if I understand your advice correctly.

  1. Store the From BinNum value in a variable defined in the OnChangingFromBinNum pre-processing method directive of the BO IssueReturnImpl. Call the variable varFromBinNum

  2. Within the AddSerialNumber pre-processing method directive of the SelectedSerialNumbersImpl BO, search for the scanned serial number’s record in the SerialNo table

  3. If the SerialNo record’s BinNum field value = varFromBinNum, success. Otherwise error

What puzzles me is the following yellow box in the Epicor ICE Tools User Guide 10.2.300, pp. 573.

Usage of directive level variables is limited to the directive where they were defined. Intermediate data they hold can not be passed between multiple directives.

If my understanding is correct, the use of the varFromBinNum variable would violate this. The variable would be set in one directive and used in another directive.

Thank you,
Darrell Shane

Web page not available
Yes you got it right.