I am trying to conversion the BPM ABL code to BPM C# but I am not understanding the lines:
find first Part where Part.Company = cur-comp and Part.PartNum = PartNum no-lock no-error.
if not avail Part then do:
{lib\publishex.i &exmsg = “‘Part Does not exist’”}.
{&THROW_PUBLIC}.
End.
Can you start with what is the purpose of this and where are trying to add this code? PartNum could be a parameter, but won’t know until we have more context.
This is never going to work you are making a new Part table record which will never match the incoming parameter.
You are supposed to be-looking up if the Part exists, by doing a query in the part table and comparing it to the Parameter partNum
I am not the one to judge… but your profile says your a Consultant I hope that is not the case and that you picked up a gig you are not qualified to handle. Since thats basics 101. I am very glad you came here for help, it shows atleast that you are genuinly trying to understand.
I’ve seen worse, Epicor Platinum, Gold Partners - Certified and Approved by Epicor and who win Awards… that write the worst code in the world and should be sued out of business.
I did not call myself a “consultant”, it is what the system assigned and had not looked into how to change that since that was not my priority. From my very first post I clearly stated that I am VERY NEW to Epicor and Epicor Customization. Everyone on here has been extremely helpful as I try to understand and muddle through.
Oh thats good to know. @josecgomez make the system not assign it by default I always think there are 100 consultants, every day a new one, then I see alot of people ask “Whats a BAQ” and I get confused by their Consultant Title and then I get worried that they are taking advantage of a Poor LLC and billing them 250$/hr for something I myself wouldnt pay 5$ for.
Awesome that will definitely help when someone is flagged as consultant we assume a certain knowledge level so the answers may not be as helpful.
I highly recommend before proceeding much further that you take a read at the Ice Customization Guide and the Ice Tools Guide as well as the Programmers Guide in EpicWeb.
These books are invaluable as you delve further into the Epicor Customization World and will certainly cover most basic things (like this request you got)
That is very true, that would help very much when others are providing answers. Fortunately, I have been able to decipher some of the answers I have been given on here to help me out from the start. THANK YOU ALL.
Thank you. I will definitely look at those PDFs. Much appreciated!