mzbella
19th February 2002, 17:11
I am trying to find away to change the quantity on a sales order line from a custom session. Anyone have any thought on the best way to do this and insure that enerything gets updated? I am using IVc4.
Thank you.
Michael Z:(
mark_h
19th February 2002, 17:30
Hi Michael!
This may not be the best answer for you - but it is what I usually do. Just to make sure that all the correct tables get updated I usually use the stpapi commands to run a Baan session to do the update. So in my custom session I might have some function server code to use a Baan session to perform the update on the table that I want. This gives me that "warm" and "fuzzy" feeling that all of the correct tables are being updated.
Maybe not the best solution, but we do not own source code. I know by using auditing and traces we could find all the tables to be updated, but this method is quicker for me.
Good Luck!
Mark
mzbella
19th February 2002, 17:36
Thank you for your responce.
I am not sure what you mean by "stpapi commands". This sounds like what I am looking for I am just not sure how to pull in off.
Thanks.
mark_h
19th February 2002, 18:22
I am attaching what few documents I have about writing function server type code. You can search the tools forum for "stpapi" and get a lot of info.
Mark
mzbella
19th February 2002, 21:13
Thanks Mark.
This is exactly what I am looking for.
Warm and Fuzzy feeling. mmmmm!!!
popeye
19th February 2002, 21:24
Even if u have the source code, Function Servers is a good solution esp for complex sessions like Sales Orders etc.
Here are the advantages:
1. Developer(s) need not spend time studying the logic of the Maintain session.
2. Even if the code changes for the Maintain Session (customizations etc), the session using the Function Server is not
affected. This is a blessing ... esp at a client where they keep adding in customizations.
3. Sessions performing complex tasks can be developed in a jiffy.
Disadvantages:
1. Slow ... Hence I prefer to use it for process sessions where the
user is not waiting for the session to complete.
2. Users get a hang of it and come up with weird requirements :)
Hope this helps.