tsanchez
20th December 2001, 12:15
Baanboard teammates. I'm developing a pair of sessions aimed
to trespass orders from a company to offers in a new one. Those
sessions should recalculate price searching for it from supplier,
from article or from the order itself if the price was not found
previously.
I've studied carefully the original session maintain order lines and
I've included all functions called in the before.program section
used to retrieve data and later called tdpur4102.get.currency
and tdpur4102.find.default.price.and.discount in function read.
main.table. Have any of you worked with tdpur4102.find.def...
previously ? If so, could you please tell me what info does it
need to work properly ?
Thanks in advance.
Tomas Sanchez Tejero
tsanchez@consultant.com
evesely
20th December 2001, 15:52
Tomas,
In addition to the two arguments to the function call itself (read.contracts and give.mess), it expects that you have already selected the appropriate data (or filled the appropriate fields with values) for some fields from tables tdpur040 (e.g., corg) and tdpur041 (e.g., item, cntr, opol). If the item on the PO line is customized, then tipcs021 data should be filled. Otherwise, tiitm001 data should be populated.
-Ed
tsanchez
21st December 2001, 14:39
Thanks a lot friend. During my first checkings everything seemed to run smoothly, although I'm still waiting for the final user approval. I'm currently working on the sales version.
What other tables do you think I'd need ?
Read you soon.
Tomas Sanchez Tejero
tsanchez@consultant.com
evesely
21st December 2001, 16:52
I'm glad I could help. :)
Upon first glance, it looks like the sales requirements are similar to purchasing. Use tdsls040, tdsls041, tiitm001, and tipcs021. If that doesn't get you there, let me know. I'll look a bit closer.
tsanchez
26th December 2001, 13:03
Merry Christmas. I'm back at work until friday I hope you've
been luckier even if you can't help me.
I did all the arranged changes but tdsls041.cups turns into
an empty string just as tdsls041.find.default.price.and... is
executed. I'm investigating all possible causes. I'll keep you
informed of further advances.
Have a nice day.
Tomas Sanchez Tejero
tsanchez@consultant.com
tsanchez
26th December 2001, 14:21
Hmmm. It seems tdsls4102.determine.cups.cvps() assigns
item.cuni value to tdsls041.cups. Being item.cuni = ""
tdsls041.cups gets an empty string value. Where
does item.cuni gets its value ? Where is it declared ?
Struggling with it.
Tomas Sanchez Tejero
tsanchez@consultant.com
dkorst
26th December 2001, 22:17
itm.cuni is defined in an include function tdsls0005. The value of itm.cuni is set to tipcs021.cuni if the item is a customized item, or to tiitm001.cuni if the item is a standard item.
tsanchez
26th December 2001, 22:46
Thanks a lot friend. I've read your post at home and I'll not be
able to fix the problem until tomorrow but I'm sure it'll work.
Thanks for your support.
Tomas Sanchez Tejero
tsanchez@consultant.com
tsanchez
27th December 2001, 11:23
Once a call to function itdsls0005.check.item.reference.sales
was added everything seemed to be corrected, although it
won't be finished until the final user checks the trespassed
data.
Thanks for all, friends.
Tomas Sanchez Tejero
tsanchez@consultant.com