Hi team,
We are trying to call the native function OnCreatePickDocOnBeforeCreatePickDoc, which asks for the following parameters: (Rec, WhseShptLine, WhseShptHeader2, HideValidationDialog, IsHandled), we handle to pass most of these parameters, but not sure how to pass the Rec, because this Rec is the Warehouse Shipment Line where the function is supose to be run native, but we are running our development from Purchase Order, so the Rec is Purchase Order instead of Warehouse Shipment Line. We are trying to pass the Warehouse Shipment Line instead of Rec, but getting the following error:
Any ideas that could help us?
Thank you in advanced.
Hi, You use Alt + Shift + E to search for OnCreatePickDocOnBeforeCreatePickDoc in VS Code, and when you add it, it will automatically display the variable name.
For example,
Also, you find the location of this event and you can see it.
Hope this helps.
Thanks.
ZHU
Hi Antea,
I really hate to be this guy, but you should really look into the documentation. A record variable can represent just the structure of a table or contain data. The error you are receiving says basically you are trying to pass a simple data type into a complex. In other languages this would be like trying to pass in string where a class is expected. Furthermore, I am not completely, sure but I can't imagine situation where you want to create a Warehouse Shipment Line/Pick from a Purchase Order right now. Although I could be wrong. Usually Purchase Orders are associated with Warehouse Receipt Line and Put-Away.
By the way: there are many free courses
I hope this points you into the right direction.
Malte
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,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156