KVSMEDWPEPermissionManagement#
Procedures#
Check(Code[10], Code[20], Code[10], Code[20], Option, Option, Code[50]) : Boolean#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Checks if the user has permissions for the given locations and posting type.
[Obsolete('Use the overload with Enum parameters instead of Option parameters', '27.0')]
procedure Check(locationCodePar: Code[10]; binCodePar: Code[20]; receivingLocationCodePar: Code[10]; receivingBinCodePar: Code[20]; postingTypePar: Option; documentTypePar: Option; userIDPar: Code[50]): Boolean
Parameters:
locationCodePar:binCodePar:receivingLocationCodePar:receivingBinCodePar:postingTypePar:documentTypePar:userIDPar:
Returns:
Check(Code[10], Code[20], Code[10], Code[20], Enum Item Ledger Entry Type, Enum Item Ledger Document Type, Text) : Boolean#
procedure Check(locationCodePar: Code[10]; binCodePar: Code[20]; receivingLocationCodePar: Code[10]; receivingBinCodePar: Code[20]; postingTypePar: Enum "Item Ledger Entry Type"; documentTypePar: Enum "Item Ledger Document Type"; userIDPar: Text): Boolean
CheckLocation(Code[10], Code[20], Option, Code[50]) : Boolean#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Checks if the user has permissions for the given location and bin.
[Obsolete('Use the overload with Enum parameters instead of Option parameters', '27.0')]
procedure CheckLocation(locationCodePar: Code[10]; binCodePar: Code[20]; postingTypePar: Option; userIDPar: Code[50]): Boolean
Parameters:
locationCodePar:binCodePar:postingTypePar:userIDPar:
Returns:
CheckLocation(Code[10], Code[20], Enum Item Ledger Entry Type, Code[50]) : Boolean#
procedure CheckLocation(locationCodePar: Code[10]; binCodePar: Code[20]; postingTypePar: Enum "Item Ledger Entry Type"; userIDPar: Code[50]): Boolean
FillPermissionLocations(Record Location, Code[50]) :#
Summary: Fills a temporary Location record with all locations the user has permissions for.
procedure FillPermissionLocations(var locationVar: Record "Location" temporary; userIDPar: Code[50]):
Parameters:
locationVar:userIDPar:
LookupLocation(Code[10], Boolean, Code[50], Option, Option, Option, Boolean, Boolean, Boolean, Code[10], Boolean) : Boolean#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Looks up a location code with permission check for the given user and posting type.
[Obsolete('Use the overload with Enum parameters instead of Option parameters', '27.0')]
procedure LookupLocation(var locationCodeVar: Code[10]; isReceivingPar: Boolean; userIDPar: Code[50]; postingTypePar: Option; documentTypePar: Option; postingType2Par: Option; usePostingType2Par: Boolean; useAsInTransitPar: Boolean; useFilterUseAsInTransitPar: Boolean; combinedLocationCodePar: Code[10]; useFilterCombinedLocationPar: Boolean): Boolean
Parameters:
locationCodeVar:isReceivingPar:userIDPar:postingTypePar:documentTypePar:postingType2Par:usePostingType2Par:useAsInTransitPar:useFilterUseAsInTransitPar:combinedLocationCodePar:useFilterCombinedLocationPar:
Returns:
LookupLocation(Code[10], Boolean, Code[50], Enum Item Ledger Entry Type, Enum Item Ledger Entry Type, Boolean, Boolean, Boolean, Code[10], Boolean) : Boolean#
procedure LookupLocation(var LocationCode: Code[10]; IsReceiving: Boolean; UserID: Code[50]; PostingType: Enum "Item Ledger Entry Type"; PostingType2: Enum "Item Ledger Entry Type"; UsePostingType2: Boolean; UseAsInTransit: Boolean; UseFilterUseAsInTransit: Boolean; CombinedLocationCode: Code[10]; UseFilterCombinedLocation: Boolean): Boolean
AddLocationForRole(Record Location, Code[20], Option, Option, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Adds locations for a specific role to the temporary location record.
[Obsolete('Use the overload with Enum "Item Ledger Entry Type" instead.', '27.0')]
procedure AddLocationForRole(var tempLocationVar: Record "Location" temporary; roleIDPar: Code[20]; postingTypePar: Option; postingType2Par: Option; usePostingType2Par: Boolean):
Parameters:
tempLocationVar:roleIDPar:postingTypePar:postingType2Par:usePostingType2Par:
AddLocationForRole(Record Location, Code[20], Enum Item Ledger Entry Type, Enum Item Ledger Entry Type, Boolean) :#
procedure AddLocationForRole(var tempLocationVar: Record "Location" temporary; roleIDPar: Code[20]; postingTypePar: Enum "Item Ledger Entry Type"; postingType2Par: Enum "Item Ledger Entry Type"; usePostingType2Par: Boolean):
CheckLocationPermissionSalesPost(Record Sales Header) :#
Summary: Checks location permissions for sales posting.
procedure CheckLocationPermissionSalesPost(var SalesHeader: Record "Sales Header"):
Parameters:
SalesHeader:
CheckLocationPermissionReleasePurchDoc(Record Purchase Header) :#
Summary: Checks location permissions for purchase posting.
procedure CheckLocationPermissionReleasePurchDoc(var PurchaseHeader: Record "Purchase Header"):
Parameters:
PurchaseHeader:
CheckLocationPermissionReleaseTransferDoc(Record Transfer Header) :#
Summary: Checks location permissions for transfer posting.
procedure CheckLocationPermissionReleaseTransferDoc(transferHeaderPar: Record "Transfer Header"):
Parameters:
transferHeaderPar:
RunOnBeforeReleaseSalesDoc(Record Sales Header, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('EventSubscriber will be local.', '27.0')]
[EventSubscriber('Codeunit', '414', 'OnBeforeReleaseSalesDoc', '', true, false)]
procedure RunOnBeforeReleaseSalesDoc(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean):
RunOnBeforeReleasePurchDoc(Record Purchase Header, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('EventSubscriber will be local.', '27.0')]
[EventSubscriber('Codeunit', '415', 'OnBeforeReleasePurchaseDoc', '', true, false)]
procedure RunOnBeforeReleasePurchDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean):