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

SAP B1 validations - SBO_Transaction validation done for Journal Entry but it working for Landed Cost also.

$
0
0

Hi,

 

I have created SP in Journal Entry as follows:

If @object_type = '30' and @transaction_type in( 'A')

Begin

  If Exists (Select Distinct T2.TransId

  From OJDT T2 Inner Join JDT1 T0 on T0.TransId = T2.TransId

  Inner Join OACT T1 on T1.AcctCode = T0.Account

  --and T1.GroupMask >3 and T1.ActType  <> 'N'

  and (isnull(T0.ProfitCode,'')+

  isnull(T0.OcrCode2,'')+

  isnull(T0.OcrCode3,''))= ''

  Where T0.TransId = @list_of_cols_val_tab_del)

  Begin

  select @error = '3000001'

  select @error_message = N'GS_Dimensions are Mandatory'

  End

End

 

It is working fine in Journal Entry. But the issue is it is working for Landed Cost also....

 

 

Any idea....


Viewing all articles
Browse latest Browse all 9239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>