Create New fields in Item Master. Create the same new fields in Purchase Line
On selecting the Item in Purchase order line (if the PO type is Order) the values should be auto populated in purchase order
I am able to populated in purchase order. but, I need help on the condition only if purchase order type is order.
*This post is locked for comments
No it dos not have anywhere else.
Are you getting message Order only when type is Invoice?
then please check if same code is existing some where else also.
you can add another message inside IF condition to see whether it is executing when type is Invoice.
I am getting message box as 'Order'.
but still when I give Purchase order type as Invoice its auto populating.
I want, only if Purchase order type is Order it should auto populate.
simply add below message before your code and see what message are you getting.
Message('%1',PurchHeader."Document Type");
are they not auto populating after adding above code?
do you have GetPurchHeader; code anywhere before your code in No. Onvalidate trigger?
if not add
GetPurchHeader; before IF condition.
On selecting the Item in Purchase order line,the values should be auto populated in purchase order.
The condition is only when if the Purchase order type is Order.
i am able to auto populate. i did the code in table 39 (Purchase Line) no. OnValidate trigger. but i am not able to filter only when if the Purchase order type is Order it should auto populate.
please mention which scenario is not working.
No bro I tried. Can you suggest any other Idea..??
you need to add BEGIN at the end of IF statement as you have more than one line
END after Vendor Item No.
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