I have added a new field, lets call it A to the Tracking Specification Table (336), which shows up in the Item Tracking Lines Form 6510.
Anyways, when I assign a lot number to a sales line, I also manually write some information to my field A…
When I post this order, I also want whatever was written in A to show up in the Item Ledger Entry..
Can anyone help me? There are a lot of codeunits I’ve been looking through, and am getting more and more confused! I tried following how Lot No. gets from the Tracking Specification Table to the Item Ledger Entry table, but too many codeunits to follow!
I have added Field A to Table 336, Tracking Specification, and to Table 32, Item Ledger Entry... as well as their forms.. form 6510 and 38, respectively..
0
Comments
an Item Journal Line and calls CU 22 to post this.
Add the Field A to Table 83 Item Journal Line as well.
In CU 80 Sales Post in Function "PostItemJnlLine" add one line :
ItemJnlLine."Serial No." := TrackingSpecification."Serial No.";
ItemJnlLine."Lot No." := TrackingSpecification."Lot No.";
//
ItemJnlLine.A := A; // if it is the sales line "A" you want
//
and in CU 22 Item Jnl.-Post Line look for the function "InitItemLedgEntry"
ItemLedgEntry."Serial No." := "Serial No.";
ItemLedgEntry."Lot No." := "Lot No.";
//
ItemLedgEntry.A := A;
//
ItemJnlLine."Serial No." := TrackingSpecification."Serial No.";
ItemJnlLine."Lot No." := TrackingSpecification."Lot No.";
//
ItemJnlLine.A := TrackingSpecification.A; // if it is the sales line "A" you want
//
If I just write ItemJnlLine.A := A; in CU 80, it doesn't know what A is.
but it still doesn't work...
This will be somewhat more complicated !
1. Is the A Field used when the Item is purchased or is it only an additional information for Sales Orders?
i.e. does the "A" Purchase Information need to be copied to the sales item tracking lines ?
( these relations are stored in Table 6507 Item Entry Relation)
2. Is there Warehouse item tracking being used ? ( Data in Tables 6509 Whse. Item Entry Relation and 6550 Whse. Item Tracking Line ?)
he goes to purchases and payables and then Orders...
On the first sales line he writes he goes to Line, Item Tracking Lines.
Then he chooses Functions, Assign Lot No. This is also where my new column A shows up, and the user fills it in with whatever he/she wants.
Then I go back to my order and post.. What I want to happen is when the post is over, I want column A to also show up in the Item Ledger Entries
Does this help out at all?
I have done but seems that some thing is missing so that if I have 2 lots for the same Item then the last lot info get copied to first as well.
Like
Item let say I1
Lot = L1 Qty =1 addition customized field say
A = 'cc'
B = 'bb'
C = 'dd'
Lot = L2 Qty =2 addition customized field say
A = 'ee'
B = 'ff'
C = 'gg'
Then both the ILE is having the Second info for L2 on customized field A,B,C
Any Idea?
Brijesh Karnatak
Probably the info is lost there.
Would have to look it up to be sure however.
Already written the code over there.
So that is not the case.
Can ANyone help
Brijesh Karnatak
In 5.0 you have to look into:
tables:
32
83
336 Tracking Specification
337 Reservation Entry (the real one!)
338 Entry Summary
forms:
6500 Item Tracking
6510 Item Tracking Lines
c.u.
22 Item Jnl.-Post Line
6500 Item Tracking Management
6501 Item Tracking Data Collection
99000830 Create Reserv. Entry
About codeunits:
in 22 look into:
SetupSplitJnlLine(VAR ItemJnlLine2 : Record "Item Journal Line";VAR PostItemJnlLine : Boolean)
and find any code like: 'Serial No', 'Tracking'.
in 6500
CopyItemLedgEntryTrkgToSalesLn(VAR ItemLedgEntryBuf : TEMPORARY Record "Item Ledger Entry";ToSalesLine : Record "Sales Line";...
and similar CopyItemLedgEntryTrkg...
in 6501 and tracking forms you have to insert code for show / get you custom fields.
Good luck!!!
Check out my NAV blog http://opennav.wordpress.com/
http://www.nextequalzero.com/2007/12/ho ... ines-form/
All works fine as per the below article.....the only thing that is creating a trouble is.....
Lets say I am making PO......
Item = I1 Qty =2
Now on the Item Tracking if I am defining single lot (L1) with Qty =2 and putting some values on the customized field then it works fine..However If I take
LOT QTY Customized field
L1 1 ABC
L2 1 XYZ
Now once you exit out of Item Tracking form for the first time and if you again see the values back then XYZ is changing to ABC.....But if you again modify L2 info i:e to XYZ and then again go back N no. of time on the form the values are fine...
I am using Nav 5.01 NA version.
basically it is Overwriting tracking specification new fields info...The first line is copied to second only for customized field info and that too only for the first time.
Any Idea
Brijesh Karnatak
http://www.nextequalzero.com/2007/12/ho ... ines-form/
Instead of
CreateReservEntry.SetCustomFields("Your Reference");
you need to write
CreateReservEntry.SetCustomFields(NewTrackingSpecification."Your Reference");
So the reference was missing.......
Thanks
Brijesh Karnatak
Thanks in Advance
Regards
Rishi Chourey
I want to more elaborate about this topic
1. Added the same field also in table 6661 Return Receipt Lines.,table 7319 "Posted Whse. Receipt Lines" & Table 6507 Item Entry Relation
2. And also coded in table 22 and 90.
Regards ,
Rishi Chourey