Calc Consumption

Soumyadip
Soumyadip Member Posts: 209
edited 2004-11-22 in Navision Attain
In consumption journal form there is a function calc. consumption. Its opening a report.
In the second tab of the report (Prod.Order Componnent) we select itmes to be consumed.
but here list of all item is coming rather than list of items under that prod order order(means item that are in BOM should come here).
how can i make it happen.

thank you
soumya

Comments

  • ebrahma
    ebrahma Member Posts: 36
    Hi,

    This you can acheive through coding. Simply change the lookup to Prod.BOM component lines. That's all!

    Good luck
  • Soumyadip
    Soumyadip Member Posts: 209
    hi
    but hw to change the look up. means where to write the code & what code to write
    soumya
  • NaviTools.com
    NaviTools.com Member Posts: 88
    Following TableRelation for "Prod. Order Component".Item could solve your request:

    "Prod. Order Line"."Item No." WHERE (Status=FIELD(Status),Prod. Order No.=FIELD(Prod. Order No.))

    but :( a change to primary key in "Prod. Order Line" would be needed. This is not possible.

    You could add code to 'OnLookup' trigger. Do you have access to "Prod. Order Component".Item OnLookup trigger? You could use 'Prod. Order Line List' form for selecting items.
    http://www.NaviTools.com
    Documentation for Microsoft Navision
    E/R diagrams, Workflow diagrams, UML diagrams, process diagrams