In DEV-Environment -> Tools -> Debugger -> Event Subscriptions -> Filter for Publisher Object ID "80" -> Filter for Published Function "OnBeforePostSalesDoc"
In the columns "Subscriber Codeunit ID" and "Subscriber Function" you will see the Functions which are related to "OnBeforePostSalesDoc".
if you need to alter the signature of this function then you need to make modifications in codeunit 80.
if you are searching for what code is behind this function, there is none if there are no subscribers. It only functions as a hook where you can link to.
it is defined as a local function in CU 80 normally
Answers
I want to modify the code of the function related to "OnBeforePostSalesDoc(Rec)" in Codeunit 80 (NAV 2016).
How do I do ?
In the columns "Subscriber Codeunit ID" and "Subscriber Function" you will see the Functions which are related to "OnBeforePostSalesDoc".
I have already checked the same but found nothing in the Event Subscriptions Page.
if you want to use this function then you have to make a subscriber function in a codeunit that links to this function:
https://msdn.microsoft.com/en-us/library/mt299404(v=nav.90).aspx
if you need to alter the signature of this function then you need to make modifications in codeunit 80.
if you are searching for what code is behind this function, there is none if there are no subscribers. It only functions as a hook where you can link to.
it is defined as a local function in CU 80 normally