New field in Purchase Header

sankarsankar Member Posts: 79
HI Experts,

I am adding one field in purchase header, it should hit into Vendor ledger entry table also. How can i do it...
Everything is Possible

Comments

  • SavatageSavatage Member Posts: 7,142
    you'll probably have to add code to codeunit 90 (Purch-Post)

    an easy way to find out is to put code coverage on ->post a PO ->go see what codeunit(s) are being accessed.
  • JackalJackal Member Posts: 3
    You should add code to codeunit 12, which posted lines to table 81 (Gen. Journal Line) and to the codeunit 90 which created rows in 81 table before posting
  • sankarsankar Member Posts: 79
    Hi Jackal &Savatage

    Thanks for the reply . could you please explain the functions which i need to add the code...
    Everything is Possible
  • diptish.naskardiptish.naskar Member Posts: 360
    Hi,

    If you are adding a field in the Purh. Header, and you want to flow this to the VLE then follow this.

    1. Add the same field in the VLE, Gen. Jnl Line, Posted Purch. Invoices
    2. Modify the codeunit Purch. Post and CU12 according to your need
    3. In Purch. Post you don't have to do anything extra as the transfields will help flow the field in the posted documents (if u keep the field no. same)

    Do check for the function called PostVendor, this might help you achieve what you are trying to.
    Diptish Naskar
    For any queries you can also visit my blog site: http://msnavarena.blogspot.com/
Sign In or Register to comment.