How to add Lot No. field from Item Ledger Entry table into Report ?What C/al coding for that?
mdsr
Member Posts: 163
i have taken item ledger entry table as record variable in report.
RecILE.RESET;
RecILE.SETRANGE("Document No.","Purch. Rcpt. Line"."No.");
IF RecILE.FINDFIRST THEN
LotNo:=RecILE."Lot No.";
RecILE.RESET;
RecILE.SETRANGE("Document No.","Purch. Rcpt. Line"."No.");
IF RecILE.FINDFIRST THEN
LotNo:=RecILE."Lot No.";
-1
Answers
-
You don't have a GET in your code.0
-
Hi midego, i have added get in code it still not giving output
RecILE.RESET;
RecILE.GET();
RecILE.SETRANGE("Document No.",RecILE."Document No.");
RecILE.SETRANGE("Item No.","Purch. Rcpt. Line"."No.");
IF RecILE.FINDFIRST THEN
LotNo:=RecILE."Lot No.";
now it giving error while running report:
error:the item Ledger Entry does not exist.identification and values Entry No.='0'0 -
I used following code and it works it prints Lot No.
RecILE.RESET;
RecILE.SETRANGE("Document No.","Purch. Rcpt. Line"."Document No.");
RecILE.SETRANGE("Item No.","Purch. Rcpt. Line"."No.");
IF RecILE.FINDFIRST THEN
LotNo:=RecILE."Lot No.";0 -
This will work, but only if you only have 1 lot no. per Purchase reciept line.0
-
Exactly sir, Now I am facing problem It prints only one lot No. But I want to print multiple lot No.
Suppose item consuming 50kg out of 100 kg from lot no 1 and 50 kg from lot No.2
Now questions is that how to print both lot No. in report what C/AL code for that please help
Thanks in advance0 -
I believe you can do it by adding another element on your report dataset. Datasource RecILE, and FILTER as you have previously.
Then you can add another repeater element on your report with the RecILE and lotnumbers.0 -
Sir,I didn't get what exactly you trying to say.
Adding recILE in data source give me following error:
'Record' is not valid column type0 -
You will have to build a dataitem like this:
. Then you can print multiple lot numbers per purchase receipt.
0 -
Hi sir, added dataitem ILE and column Lot No.
How adding dataitem ILE and column Lot No. gives multiple lot No.in report.
RecILE.RESET;
RecILE.SETRANGE("Document No.","Purch. Rcpt. Line"."Document No.");
RecILE.SETRANGE("Item No.","Purch. Rcpt. Line"."No.");
//IF RecILE.FINDFIRST THEN
//LotNo:=RecILE."Lot No.";
IF RecILE.FINDSET THEN
REPEAT
LotNo:=RecILE."Lot No.";
UNTIL RecILE.NEXT=0;
Is it right for multiple lot no.0 -
No need for additional code. You just map Lot No. on your layout.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

