Document Approval For Indent.

rranjanerp
Member Posts: 70
My client has to use Document approval functionality in Purchase Indent.
After Release --> send for approval request ..
I know indent is not the standard functionality in nav .
How can i use this. At present the functionality of Approve is used ,but not by using Document approval setup. How can i use Document authoriser if not using document approval . or
plz suggest which one will be easier by using document approval or not using.
Thanks..
After Release --> send for approval request ..
I know indent is not the standard functionality in nav .
How can i use this. At present the functionality of Approve is used ,but not by using Document approval setup. How can i use Document authoriser if not using document approval . or
plz suggest which one will be easier by using document approval or not using.
Thanks..
0
Comments
-
That you have to discuss with your customer and based on their business requirement you have to give them..0
-
Can any one tell me why the P.o is automatically approved & released after i pres send for approval request ? though the approver id is other than user id.
The code running in Send for approval request is "
IF ApprovalMgt.SendPurchaseApprovalRequest(Rec) THEN;
also if i change the approval setup many times than the next eror comes :
There is no Approval Entry within the filter.
Filters: Table ID: 38, Document Type: Order, Document No.: PO-00001.
The error occurs when I try to Send an Approval Request from a Purchase Order.
in code unit 439 approval management following code running iinside send purchase approval reqest .plz suggest where might be the problem , i m not a programmer.
TestSetup;
WITH PurchaseHeader DO BEGIN
IF Status <> Status::Open THEN
EXIT(FALSE);
IF NOT ApprovalSetup.GET THEN
ERROR(Text004);
IF NOT PurchLinesExist THEN
ERROR(Text015,FORMAT("Document Type"),"No.");
TemplateRec.SETCURRENTKEY("Table ID","Document Type",Enabled);
TemplateRec.SETRANGE("Table ID",DATABASE::"Purchase Header");
TemplateRec.SETRANGE("Document Type","Document Type");
TemplateRec.SETRANGE(Enabled,TRUE);
IF TemplateRec.FIND('-') THEN BEGIN
REPEAT
IF TemplateRec."Limit Type" = TemplateRec."Limit Type"::"Credit Limits" THEN BEGIN
ERROR(STRSUBSTNO(Text025,FORMAT(TemplateRec."Limit Type"),FORMAT("Document Type"),
"No."));
END ELSE BEGIN
IF NOT FindApproverPurchase(PurchaseHeader,ApprovalSetup,TemplateRec) THEN
ERROR(Text010);
END;
UNTIL TemplateRec.NEXT = 0;
FinishApprovalEntryPurchase(PurchaseHeader,ApprovalSetup,MessageType);
CASE MessageType OF
MessageType::AutomaticPrePayment:MESSAGE(Text128,PurchaseHeader."Document Type",PurchaseHeader."No.");
MessageType::AutomaticRelease:MESSAGE(Text003,PurchaseHeader."Document Type",PurchaseHeader."No.");
MessageType::RequiresApproval: MESSAGE(Text001,"Document Type","No.");
END;
END ELSE
ERROR(STRSUBSTNO(Text129,PurchaseHeader."Document Type"));
END;0 -
Please Note that
Text003 :%1 %2 has been automatically approved and released.
Text001 :%1 %2 requires further approval.\\Approval request entries have been created.
Text128 :%1 %2 has been automatically approved. Status changed to Pending Prepayment.
Name ConstValue
Text010 Approver not found.
Text025 %1 is not a valid limit type for %2 %3.
Text129 No Approval Templates are enabled for document type %1.
Please suggest if code is mistaken or i m doing wrong approval setup? also plz confirm does it necessary to make all the user ids as windows login? i m not using any id as windows login.
m wrking in nav2009R2 with sql server db.0 -
rranjanerp wrote:Please suggest if code is mistaken or i m doing wrong approval setup?
Please check the Approval Setup, Approval template for PO and approver id in the user setup, if these are properly configured then I recon you shouldn't face much trouble.rranjanerp wrote:also plz confirm does it necessary to make all the user ids as windows login?
Windows login login is not mandate for approvals.Cheers,
Prashanth.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions