cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Machine query

former_member325312
Active Contributor
0 Kudos

Hi experts

I have one Machine Master Table SELECT U_Dept,U_mach,U_SubMach FROM [@GMACH]

In this table for each machine i have to give ten Sub machine AND how do i enter it

like so on for each machine there no of sub machines and i need A formatted search for this Submachine

when i select particular machine it has to show only Submachine which are related to that machine solve it ASAP

Regards

Jenny

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Jenny,

I assume you have create a UDO for this. If yes, you need a sub table such as @GMACH1 or anything alike to hold the detail records. You may check ITM1 for OITM to understand more.

Thanks,

Gordon

Former Member
0 Kudos

Hi Jenny........

You need to create another detail UDO for your machine master and register it....

Suppose if you craeted UDO Master for submachines say @GMACHDTL

So you can apply FMS.......

Regards,

Rahul

Former Member
0 Kudos

Hi Jennifer,

I would use DTW to load the data, especially if you have a lot of machines / submachine combinations. Here is a post guiding you through that:

Once your UDT is populated, add the U_mach and U_SubMach UDFs to whatever document you need it on (you haven't mentioned this by the way, i assume it is Production Order?)

Then apply the following formatted search to the U_mach field in the Production Order:

Select T0.U_mach from \[dbo\].\[@GMACH\] T0

Then apply the following formatted search to the U_SubMach field in the Production Order:

Select T0.U_SubMach from \[dbo\].\[@GMACH\] T0 WHERE T0.U_mach = $\[OWOR.U_mach\]

Both your formatted searches should be manually launched and not automatic. The two formatted searches will mean that when you select the Machine on the production order, when you then launch the Submachine formatted search, you only get the Submachines for that Machine.

I'm afraid I have tested these queries but I think they are ok.

Reards,

Adrian