So i added a field to the "Sales Header" table but i need to add it to all the related tables. Now how to i find out what tables are the related tables? (or what are the tables are related to it?)
So i added a field to the "Sales Header" table but i need to add it to all the related tables. Now how to i find out what tables are the related tables? (or what are the tables are related to it?)
Hi,
In Codeunit 80 Search for TRANSFERFIELDS(SalesHeader);
The line of code referencing salesheader for e.g. SalesCrMemoHeader.TRANSFERFIELDS(SalesHeader);
In the above-said line, SalesCrMemoHeader is related to SalesHeader where you have to define your newly created field with the same data type, Data length, and Field No.
Similarly you can find more related tables when Search for TRANSFERFIELDS(SalesHeader);
If you need the data to copy into posted documents, you should add the field to tables 110,112 and 114. Also subscribe to a relevant event publisher in codeunit 80 to transfer the value when posting.
Tero
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156