Use this event to
Add steps to be displayed at the mobile device when collecting values for output Scrap.
Note: Output Scrap can only be registered when the Prod. Order Line has associated Prod. Routing Lines, and that routing line is a Machine Center.
Description
At the mobile device Output Scrap may be collected at mobile by either...
- Double-tap the Output line to collect "all steps" for Quantity, Time AND Scrap
- Collect only "Scrap"-steps by using the promoted "Output Scrap" action at the page.
This same event will add steps to both options mentioned above (on the other hand meaning: Steps cannot conditionally be added to only one of the two options).
Steps are generally sorted by Id. Existing output steps for Scrap in the Mobile WMS are numbered 200 to 250, while existing Time-steps has Step Id 100 to 150.
- ...If your new step should be displayed prior to existing Scrap-steps, choose an Id between 160 and 199 for your step.
- ...If your new step should be the last step displayed at all, choose a high Id for your step, i.e. 10000
Due to the Production Output being implemented as Lookup-page each single Registration is posted right away (when Steps for the line is collected). For this reason no events exists to add "header" level steps.
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputScrap', '', true, true)]
local procedure OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputScrap(var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Steps: Record "MOB Steps Element")
begin
end;
Example
// [Example] Include message for no scrap code to maintain same number of steps for easier fast forward on mobile device
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputScrap', '', true, true)]
local procedure MyOnGetRegistrationConfigurationOnProdOutput_OnAddStepsToProductionOutputScrap(var _LookupResponse: Record "MOB NS WhseInquery Element"; var _Steps: Record "MOB Steps Element")
var
RegisterScrapCode: Boolean;
begin
Evaluate(RegisterScrapCode, _LookupResponse.GetValue('RegisterScrapCode', false));
if not RegisterScrapCode then
_Steps.Create_InformationStep(
205, // Id
'MyInformationStep', // name
'Information', // header
'', // label
'Scrap Code cannot be registered for this output line.'); // helpLabel
end;
More examples
-
Case: Add Posting Date step to Production Consumption and Output — A customer wishes to allow mobile users to specify the posting date when posting Production Consumption and Output from the mobile device.
-
Case: Scan ExpirationDate in custom format — Scan ExpirationDate as custom format YYYYMM when goods is received from any Vendor.
-
How-to: Production Output - Implement a Unit of Measure step — For Items with multiple Unit of Measure codes
Version History
Version | Changes |
---|---|
MOB5.22 | Introduced |