on 02-11-2011 1:12 PM
Hi
Is there a possibility of doing the following:
When selecting a specific GL Account (701120) on Row Level of an AP Invoice (PCH1) it will automatically update the Project field to (Regional = Code 100014).
I created the following query then did a FMS but not working:
SELECT CASE CODE
WHEN '701120' THEN '100014'
ELSE NULL END AS Project
FROM OPRJ
WHERE CODE = $[PCH1.AcctCode]
Any help will be much appreciated
Regards
Kurt Walters
Hi Kurt.....
Try this.....
Declare @Code as nvarchar (100)
Set @Code=$[PCH1.AcctCode.0]
Begin
If @Code='701120'
Select '100014'
End
Apply above FMS in Project field of PCH1......
Regards,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.