what actually runs behind when click the post button

bintu
bintu Member Posts: 3
Hi All
Please help me out ! i want to take one field in purchase order header like field name : PON
when PON field empty receive is acceptable not invoice if PON Field is not empty then receive and invoice can be process successful

how can i write c\al code for above senario.
help me out!!

Answers

  • wynner0
    wynner0 Member Posts: 8
    codeunit 90 is Purchase - post
  • RockWithNAV
    RockWithNAV Member Posts: 1,200
    Post of what, Sale, Purchase, Production.............

    There's many post button in NAV and everyone has there own posting routine.:)
  • bintu
    bintu Member Posts: 3
    purchase order post....
  • apap
    apap Member Posts: 67
    Bintu, if i understood correctly your need you should work at codeunit 90 Purch.-Post,study the local function LOCAL CheckMandatoryHeaderFields(PurchHeader : Record "Purchase Header") or add your line of code there.
    I don't know your experience,but if you are not familiar with NAV posting routines - procedures, i would suggest to study them and understand them through the stack trace of the debugger,before even you do some small amendment to check a field
  • navleong
    navleong Member Posts: 4
    Use EventSub Handler to write code above it. Trigger point set at codeunit 90-"Purchase post". After that slowly pick a event to test your code.
  • kriki
    kriki Member, Moderator Posts: 9,132
    [Topic moved from 'NAV Tips & Tricks' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!