Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9071

Re: Advance G/L determination user can't change GL from row level

$
0
0

Hi,

 

Try this and add your required advanced account code in like function.

 

 

IF @transaction_type in ('A') AND (@OBJECT_TYPE='18')


BEGIN


If exists (SELECT T1.[DocEntry] FROM OACT T0  INNER JOIN pch1
T1 ON T0.AcctCode = T1.AcctCode inner join OPCh t2 on t2.docentry
= t1.docentry where t0.formatcode NOt like '%%4%%' and t2.doctype
= 'S' and t1.docEntry = @list_of_cols_val_tab_del)


Begin


SET @error = 1
SET @error_message = 'Not allowed to choose
Asset Account'


End


End

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 9071

Trending Articles