I have written the below Code for User Rights but i m not able to create new Transfer Order:
CSOMapping2.RESET;
CSOMapping2.SETRANGE(CSOMapping2."User Id",UPPERCASE(USERID));
IF CSOMapping2.FINDFIRST THEN
BEGIN
TH.RESET;
IF TH.FINDSET THEN
REPEAT
CSOMapping1.RESET;
CSOMapping1.SETRANGE("User Id",UPPERCASE(USERID));
CSOMapping1.SETRANGE(Type,CSOMapping.Type::Location);
CSOMapping1.SETFILTER(Value,'%1|%2',TH."Transfer-from Code",TH."Transfer-to Code");
IF CSOMapping1.FINDFIRST THEN
TH.MARK := TRUE
UNTIL TH.NEXT = 0;
TH.MARKEDONLY(TRUE);
COPY(TH);
END;
Can somebody help......
Thanks & Regards,
Stivan D'souza
0
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n