on 09-11-2015 9:36 AM
Hi experts,
My customer wants the Journal entry row ref2 to be automatically updated with the Journal Entry TransId.
I was able to write a query to update for a period but i do not know how to make the ref2 updated automatically anytime a JE is created.
Urgent Response will be appreciated
Regards
Justice
Hi,
Run below FMS and set it Ref2 by refresh regularly option. Then JE automatically updated ref2 field with transaction number.
SELECT T0.[TransId] FROM OJDT T0 WHERE T0.[Number] = $[$5.0.0]
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Justice,
Create one UDF in Header level and use FMS to fill Trans Id in that field. After that go to
Admin-->Set up-->General-->Reference field Link
Open document which ever you want and you can map that UDF field into reference 2 column
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harshal,
How best can i solve my request?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Doku,
As per my knowledge, Update query is not allowed as per SAP. If any issues occur SAP will not give support.
Thanks,
Harshal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can write post notification for this requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Before run following Post Notification, you have to remove reference field links from Admin-Setup-General.
IF ((@object_type = N'30' ) and @transaction_type in (N'A',N'U'))
BEGIN
DECLARE @Jentry NVARCHAR(1000)
SET @Jentry= (SELECT T0.Number
FROM OJDT T0
WHERE T0.TransId=@list_of_cols_val_tab_del)
UPDATE T0
SET T0.Ref2 = @Jentry
FROM OJDT T0
WHERE T0.TransId= @list_of_cols_val_tab_del
END
User | Count |
---|---|
95 | |
11 | |
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.