I am trying to create a BAQ for the stock status like system report Stock Status. How i can apply the logic ? I am thinking of subtracting all issued qty from total reciepts by transactions type from partran table. Will it make sense? anybody done this before ?
I tried doing one, and it turns out to be pretty difficult. Iām no BAQ guru so I gave up on it.
But from what Iāve tried, it seems you are going to need to sub-queries and have some unique relationships.
Need a query the totals the inventory Tran qtys for TranDate >= target date. This will be all the trans you need to āback-outā from the current QOH.
The results from #1 need to be applied against ALL parts. Not just ones currently with a a non-zero QOH.
Because the built-in SSR only compensates for qty changes, not cost changes,
I was going to back calculate the cost at the target date, by finding the last PartTran on or before the target date, and use that cost as the cost on the particular target date.
But just making the queries that get the QOH correct for the target date was too much for me.
Several have tried this in the past and nobody that I know of has ever been truly successful.
Part of the issue is that there are all sorts of āextraā transactions on the Part Tran table. Also, what you would think should be a negative number (Stk-Cus) is a positive number on the Part Tran and it is the program that subtracts this from the running total.
Iāll occasional go back to this, just for the challenge. Even if I donāt need to do it, I find doing these types of things are the best learning tools.
And I was aware of the TranType affecting the sign of the TranQty. But Iām sure there are even more demons around every corner.
guys, i tried for BAQ, half doneā¦but as @ckrusen saidā¦there are even more demons around every cornerā¦there are so many difficulties and confusions with summerizing total inward and total issues. Need to rectify all transaction typesā¦
@Rowley150 :
Good idea, but partbin shows the current stock of till date. If i want to retrieve stock from parttran, how we will get the stock on CutOff date like Stock Status ? Now here, tranDate comes into picture. Now assume that on 1st of feb, the part XYZ had null stock, and today it is 200 Nos onHandQty. Its not possible to retrieve the stock of Part XYZ for 1st Feb by partbin,part,partcost, becoz the main link of tranDate is not there. So the only option is PartTran, so we should have to make BAQ for PartTran, am i correct ?
Yes - PartTrans needed to duplicate the āAs Ofā feature for the Stock Status report.
I think a BAQ filtered by PartTran.InventoryTran = True should get you pretty close to start with.
Beyond that Iām pretty sure I ran into a few TranTypes/exceptions the last time I looked at this in E9.
But canāt remember specifics right nowā¦
Hey guys,
Yuhhhhhhhhhhhā¦finally a BAQ is ready for Stock Status . I have applied a tracker view for cutoff date also.
Thank you very much guys for your suggestions.
Hey randy,
I will be happy to share BAQ with all of you, i just finalizing the āCut Off Dateā functionality. It is not working as as expected, still working on it. I will post the BAQ as soon as i finshed.
Hello guys,
Still fighting with āCut off Dateā . Criteria / parameter in BAQ, Date Range filter in Tracker view not working. Tried all available tricksā¦but still BAQ is incomplete without āCut off dateāā¦
I think , i have used 4 instatnces in BAQ ,screenshot is attached. Is it the problematic ? If i had not used,then i cant apply crieteria for 3 instances at a time.
Anybody has any suggestions ? please shareā¦
Have you tried adding the CutOff data as a criteria on all 4 PartTran tables/aliases and having the those 4 criteria reference a single mandatory BAQ parameter.
When the BAQ is called from the dashboard it will automatically call popup the cutoff date which will also make sure they query isnāt run wide open.
Hi guys,
Sharing the Stock status BAQ and Dashboard with all of u, please make modifications as per your requirements as i displayed only Part number, Description, OnHandQty, UOM. In BAQ there are 6 more columns reffered for calcualting final OnHandQty as multiple IF-ELSE statements are not allowed in calculated filed. You can hide rest of the columns in trackerview.
Hi Guys,
I am trying to make this dashboard more specific like warehouse wise, lot wise. But version 9.05.702A doesnāt support group by clause. I am facing some difficulties while displaying qtys warehouse wise. Now i can display total on hand qty on those warehouses, whichever was on stock on cut of date. But it displaying in totality. I want to bifurcate it warehouse wiseā¦ Any help,suggession will be appreciated.
The test part has 48 qtys in MAIN warehouse and 2 Qtys in WIP warehouse, and results coming in below format,it means sum is not calculated warehouse wise. How to bifurcate it ?
Thanks for sharing your dashboard
Just an FYI
I noticed some On Hand Qtys were off when I tested your example here.
One part has quantities in two different plants and a transfer qty.
I want to take look thru the design details butā¦ not sure when Iāll get the time.
Will let you know when/if I see anythingā¦ if itās related to your warehouse issue.
How to bifurcate it
Maybe view(s) to aggregate some values beforehand, and then an external BAQ?
Or maybe executive query(s)?
Sometimes it can be tough to get everything you want with just E9 BAQ phrase builder.