on 11-23-2009 6:53 PM
Dear Friends,
I would like to get some assistance in writing a query for the following scenario,
I have created a couple of UDF's in the BP master and linked them to U_Class table. This U_Class table is a OITM table.
Each BP master data has a vaue in the UDF.
ie U_Class_1 = 01
U_Class_2 = 02
When generating a SO I would like to run a FS in the Item code field validating the BP master UDF field's to the Item Master U_Class field and populate only the items that belong to that particular UDF's.
I would really appreciate if you could help me to write the query
Regards,
Joel
Posting my query on SDK forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this one:
SELECT T0.U_Class
FROM DBO.OITM T0, DBO.OCDR T1
WHERE T0.ItemCoce = $[$38.1.0\] AND T1.CardCode = $[$4.0.0\] AND T0.U_Class in (SELECT T1.U_Class_1, T1.U_Class_2)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok. my logic is when I run the FMS on the Item code field the FMS will display the Item codes that belongs only to that particular customer.
the BP master has the UDF values and then it will cross check with the Item master and pull only those matching values (item numbers/class).
If not then all the items.
Please let me know if I am not clear..
Dear Joel,
Please clarify what you mean for: This U_Class table is a OITM table. Do you mean it is an UDF in the OITM table?
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.