on 04-29-2009 11:12 AM
Hello,
As our ItemCodes are in general 15 characters, we want to use a short code to find the articles easier.
We have used the field Additional Identifier (OITM.SWW) in the Item Master Data for the short article code. Unfortunately this field you cannot select on row level (e.g. RDR1).
So when we are entering an order in our system we have created an UDF (U_Vartcode) on document row level where we can enter the short code and the Item Code appears automaticly.
We have added a Formatted Search in the Item Code field with the following query:
SELECT T0.ItemCode FROM dbo.OITM T0
WHERE T0.SWW = $[RDR1.U_Vartcode]
The query works fine, but the value we have entered disappears.
What would be the solution so that the value (short code - OITM.SWW) we have entered is still visible.
Best regards,
Tim
In our case Item article code length is 15.
UDF length will be greater or equal to Item short code.
Try to increase UDF length if not possible create a new udf for SWW in row level of marketing docs with alphanumeric type length 20.
Try it.
Jeyakanthan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The fact is that the system fill out the full row when you enter the item code. So to reserve this UDF value you should connect an other FS to fill it according to the item code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tim,
Istvan is right, when the Item No is filled, the rest of the row gets populated so it will empty the previous value of your UDF.
As a workaround, find a field which you will always need to fill like the Quantity and put the trigger of the FS on this field. So first the UDF will disappear but as soon as you fill the Quantity it gets populated again.
Regards,
Nat
Probably you set the FS on the item code autorefresh according to the UDF. So when you fill the udf, the FS fill the itemcode and the system delete the udf.
I think you have tow possibility:
1. You modify the FS on the item code without autorefresh asking your code:
Select t.ItemCode from OITM t where t.SWW=N'[%0]'
2. Or set the FS on the UDF without autorefresh and then the user should activate it again.
But your FS on the UDF should be something like this:
Select t.SWW from OITM t where t.ItemCode=$[$38.1.0]
I tried it on my test system and it works:
In the ItemCode field use the query below, auto refresh when exiting altered column: VartCode, display saved values:
SELECT T0.ItemCode FROM dbo.OITM T0 WHERE T0.SWW = $[RDR1.U_Vartcode]
In the VartCode field use the query below, auto refresh when exiting altered column: Quantity, display saved values:
SELECT T0.SWW FROM dbo.OITM T0 WHERE T0.ItemCode = $[RDR1.ItemCode]
I am using 2007A PL45 and it works.
What is datatype & lenght of field U_Vartcode ?
Jeyakanthan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
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.