OnPostAdhocRegistrationOnUnplannedMove_OnAfterCreateItemJnlLine

Use this event to

Populate item journal line when posting unplanned move without Location."Directed Put-away and Pick".

In addition you may use "WMS Managment"."OnAfterCreateWhseJnlLine()" to handle In- and Outbound transfer Warehouse Journal Lines being created during the posting posting process.


See also: OnPostAdhocRegistrationOnUnplannedMove_OnAfterCreateWhseJnlLine


Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnUnplannedMove_OnAfterCreateItemJnlLine''', true, true)]
    local procedure OnPostAdhocRegistrationOnUnplannedMove_OnAfterCreateItemJnlLine(var _RequestValues: Record "MOB NS Request Element"; _ReservationEntry: Record "Reservation Entry"; var _ItemJnlLine: Record "Item Journal Line")
    begin
    end;
 

Example

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnUnplannedMove_OnAfterCreateItemJnlLine''', true, true)]
    local procedure MyOnPostAdhocRegistrationOnUnplannedMove_OnAfterCreateItemJnlLine(var _RequestValues: Record "MOB NS Request Element"; _ReservationEntry: Record "Reservation Entry"; var _ItemJnlLine: Record "Item Journal Line")
    var
        RegistrationType: Text;
        Bin: Text;
        ToBin: Text;
    begin
        RegistrationType := _RequestValues.GetValue('RegistrationType');
        Bin := _RequestValues.GetValue('Bin');
        ToBin := _RequestValues.GetValue('ToBin');

        _ItemJnlLine.Validate(Description, CopyStr(StrSubstNo('%1 %2 to %3', RegistrationType, Bin, ToBin)1, MaxStrLen(_ItemJnlLine.Description)));
    end;

 

More examples

There are no items with the selected labels at this time.


Version History

Version

Changes

MOB5.17Introduced