Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Distribution, Transportation & Warehousing

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 7th March 2017, 03:50
DatinN DatinN is offline
Member
 
Join Date: Aug 2014
Posts: 65
DatinN is on a distinguished road
Baan: FP7 - DB: SQL - OS: Windows
Query Purchase Order Line
Baan: ERP LN 6.1 FP6

Hello ,

Hi All ..
I need your expert view .
I'm creating query to ease my user checking incomplete delivery .
This because user need to close Purchase Order once over validity period.
The issue now I'm facing, when user has Cancelled Back Order, this query still displaying the said order line.
I have set condition where quantity receipt and quantity delivered below than quantity ordered and not final receipt.
also condition not to print cancelled order line.
I need to rectify this query yet I 'm getting road block.
how to set this query not to print cancelled back order ?

thank you in advance .

The query text as below :


select
tdpur400.orno, | Purchase Order
tccom100.nama, | Name
tccom001.nama, | Name
tdpur401.odat, | Order Date
tdpur401.item, | Item
tdpur401.cwar, | Warehouse
tdpur401.ddta | Planned Receipt Date
from
tccom001, | Employees - General
tccom100, | Business Partners
tdpur400, | Purchase Orders
tdpur401 | Purchase Order Lines
where
tdpur401.odat >= tdpur401.odat.f and
tdpur401.odat <= tdpur401.odat.t and
tdpur401.otbp >= tdpur401.otbp.f and
tdpur401.otbp <= tdpur401.otbp.t and
tdpur400.ccon >= tdpur400.ccon.f and
tdpur400.ccon <= tdpur400.ccon.t and
tdpur400.ccon = tccom001.emno and
tdpur400.hdst <> tdpur.hdst.closed and
tdpur400.hdst <> tdpur.hdst.cancelled and
tdpur400.orno = tdpur401.orno and
tdpur401.clyn = tcyesno.no and
tdpur401.fire = tcyesno.no and
tdpur401.otbp = tccom100.bpid and
tdpur401.qoor > tdpur401.qidl and
tdpur401.qoor > tdpur401.qiap
order by
tdpur401.ddta
Reply With Quote
Sponsored Links
  #2  
Old 22nd March 2017, 08:09
sasikanth's Avatar
sasikanth sasikanth is offline
Senior Member
 
Join Date: Jul 2009
Location: Hyderabad, Andhra Pradesh, India
Posts: 123
sasikanth is on a distinguished road
Baan: L.N 6.1 FP7, 10.3, 10.4 & 10.5 - DB: SQL Server - OS: Windows
Try considering the tdpur401.oltp field in your query.

You should ideally ignore the Line Type - "Total" (tcgen.oltp.total)

Hope this should help you!
__________________
Sasi Kanth V
Infor ERP LN Solution Architect

Reach Me Out on LinkedIn | Never Miss an Update from LN Campus YouTube Channel
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Not Allow Insert Price In Purchase Order Line sobiratul Distribution, Transportation & Warehousing 2 8th July 2016 23:16
DAL 2 for purchase order line baanspider AFS/DDC/OLE: Function servers 1 26th February 2009 07:15
AFS on purchase order header and line creation baanguy2 AFS/DDC/OLE: Function servers 3 10th January 2008 20:30
Purchase Order Line Status = 0 ?? rodichen Distribution, Transportation & Warehousing 4 6th June 2006 12:52


All times are GMT +2. The time now is 18:05.


©2001-2017 - Baanboard.com - Baanforums.com