Skip to Content
0
Jul 22, 2016 at 09:02 AM

How to Block Posting of Journal Entry but allow to save as Draft

607 Views

Hello All,

I am using SAP Version 9.1 PL05 on MSSQL2012.

We have a requirement where we want specific users to enter Journal Entry and save as d\Draft but not allowed to Post.

These Draft Journals will be viewed by senior manager and posted.

I have created this SP_Transaction Notification but it does not allow be to do the above.

IF @object_type = '30' AND @transaction_type = 'A'

BEGIN

IF EXISTS (SELECT

T1.[TransId]

FROM OJDT t1 INNER JOIN JDT1 T2 ON T1.[TransId] = T2.[TransId]

WHERE

@list_of_cols_val_tab_del = T1.[TransId] AND t2.[CreatedBy] = '10' or t2.[CreatedBy] = '42' or t2.[CreatedBy] = '52' )

BEGIN

SET @error = -2

SET @error_message = 'You are not authorized to Add Journal Entry. Please SAVE as DRAFT'

END

END

Kind Regards

Raju Parmar