How to change the Primary key in Table 337???

kishi_g
Member Posts: 162
Hi,
i will change the Primary key in Table337(Reservation Entry). by default the Primary key is Entry No. and positive fields. now I want to add Source ID also a Primary key. Iam getting the error when i am posting Purchase order with Item Tracking (Lot number). where can i modify the code.
In Codeunit 9900830 - Trasnfer Reserventry - they assigned
NewReservEntry."Source ID" := NewID;
here newID is empty was assigned to NewReservEntry.now i comment this line. Posting was happnd but when i go to the item card -> Entries -> Item tracking lines. it was showing empty. it is not created.
how can i do that.
Kindly share ur ideas...
Thanks & Regards,
kishore...
i will change the Primary key in Table337(Reservation Entry). by default the Primary key is Entry No. and positive fields. now I want to add Source ID also a Primary key. Iam getting the error when i am posting Purchase order with Item Tracking (Lot number). where can i modify the code.
In Codeunit 9900830 - Trasnfer Reserventry - they assigned
NewReservEntry."Source ID" := NewID;
here newID is empty was assigned to NewReservEntry.now i comment this line. Posting was happnd but when i go to the item card -> Entries -> Item tracking lines. it was showing empty. it is not created.
how can i do that.
Kindly share ur ideas...
Thanks & Regards,
kishore...
0
Comments
-
Please don't change this key. Why do you want to do this ? Anything to do with reservations is very complicated and shouldn't be changed without serious thought.
What are you trying to accomplish ?0 -
Hi,
Thanks for ur reply.
Because we had one store and one HO. In HO we will made purchase orders and in store also they made local purchases. now the data comes from store to HO. It will overwrite the data in HO DB.
Now i want to add Source ID as primary key then the problem will solve.
how can i do that...
Thanks & regards,
kishore...0 -
Like Joeri said; You don't want to mess with reservation entries... [-X
You should solve the error you get when you post by using the right data. Not change NAV-code or basic tables to import your wrong data.
You are importing Purchase orders that have been exported from the store-db?
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
So you have two locations, Home Office and Store. They both make purchases for themselves, but the purchases the store makes are sent to the home office so that they can place the order?
Where do the items ship to? The home office or the store? Who is billed for it?0 -
Also, why are you replicating this table?0
-
Hi,
Thanks for ur replies. Store People Create the Purchase Orders and they will sent to HO for Approval. if HO is approved then the store receive the Purachase order. In HO they will Post as Receive & Invoice.
data will not overwrite in Table 337 when i replicate the data from Store to HO.
How can i do that????
Thanks & Regards,
Kishore.0 -
I'm not going to give any tips on this one. This can only end in problems. You need to leave that table's primary key alone.0
-
So the General tab would be the store
The invoicing tab would be office
The shipping tab would be the store
If you are on 5.0 you can setup Document Approvals. If not, just have the store release the POs. Then the office can come in, filter on what is released, and if they approve it they can post it at that time. The business process is really up to you / them.
You could even add a field for "Approval Status" if you absolutely had to, but I don't think it is necessary. There is certainly no need to change the primary key for T337.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