Use this event to
Excerpt |
---|
Populate item journal line when posting bulk move without Location."Directed Put-away and Pick". |
Also, Location must be "Bin Mandatory".
With this setup posting is processed from an Item Journal Line and this event is triggered – however, only "Warehouse Entries" is created when doing a bin-to-bin transfer.
In addtion you may use "WMS Managment"."OnAfterCreateWhseJnlLine()" to handle Warehouse Journal Lines being created during the posting process.
See also: OnPostAdhocRegistrationOnBulkMove_OnAfterCreateWhseJnlLine
Template
// [Template]
// [Template] Location is "Bin Mandatory" and posting using ItemJnlLine but creating only WhseEntries when doing a bin-to-bin transfer
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnUnplannedCountOnPostAdhocRegistrationOnBulkMove_OnAfterCreateItemJnlLine', '', true, true)]
local procedure OnPostAdhocRegistrationOnUnplannedCount OnPostAdhocRegistrationOnBulkMove_OnAfterCreateItemJnlLine(var _RequestValues: Record "MOB NS Request Element"; var _ItemJnlLine: Record "Item Journal Line")
begin
end;
Example
// [Example]
// [Example] Location is "Bin Mandatory" and posting using ItemJnlLine but creating only WhseEntries when doing a bin-to-bin transfer
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnUnplannedCountOnPostAdhocRegistrationOnBulkMove_OnAfterCreateItemJnlLine', '', true, true)]
local procedure MyOnPostAdhocRegistrationOnUnplannedCount MyOnPostAdhocRegistrationOnBulkMove_OnAfterCreateItemJnlLine(var _RequestValues: Record "MOB NS Request Element"; var _ItemJnlLine: Record "Item Journal Line")
var
RegistrationType: Text;
ItemNo LocationCode: Text;
LocationCode FromBinCode: Text;
BinCode ToBinCode: Text;
begin
RegistrationType := _RequestValues.GetValue('RegistrationType');
ItemNo
LocationCode := _RequestValues.GetValue('ItemLocation');
LocationCode FromBinCode := _RequestValues.GetValue('LocationFromBin');
BinCode ToBinCode := _RequestValues.GetValue('BinToBin');
_ItemJnlLine.Validate(Description, CopyStr(StrSubstNo('%1 %2 at %3 %4%1 %2 %3 to %4', RegistrationType, ItemNo LocationCode, LocationCode FromBinCode, BinCode ToBinCode), 1, MaxStrLen(_ItemJnlLine.Description)));
end;
...
Der er intet indhold med de angivne labels
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|
Indhold efter label
|
Version History
Version | Changes |
---|---|
MOB5.17 | Introduced |
...