Skip to Content

Regarding Machine query

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2011 at 07:02 AM

    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: dtw---udt

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2011 at 07:31 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2011 at 01:46 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.