cancel
Showing results for 
Search instead for 
Did you mean: 

Block Back Dated Posting In any transaction Except for Super Users

former_member264311
Participant
0 Kudos

Good Day,

Hi Experts. Help me to block specific users to posting Back Dated,

Best Regards,

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

narayanis
Active Contributor

Hi,

if @transaction_type in('A','U') AND @object_type='20'

Begin

if not Exists(SELECT T0.DocEntry FROM dbo.OPDN T0 WHERE T0.DocDate = CAST(CURRENT_TIMESTAMP AS DATE)

and T0.DocEntry = @list_of_cols_val_tab_del)

Begin

SET @error = -2

SET @error_message = N'Please add Posting Date is todays date only'

End

End

This will disallow all the users from adding and updating a GRPO on a date earlier than current date. Please check your super user login number and add it in the condition.

Feel free to write in case of any further help

Regards

Pradnya

former_member309532
Participant
0 Kudos

Hi.

Can we restrict all documents which post JE in back date ?

Is there a single sp for that.

Thanks

Answers (3)

Answers (3)

narayanis
Active Contributor
0 Kudos
Former Member
0 Kudos

Dear Romel Catalogo,

You can do it by SBO_SP_TransactionNotification for each document.

Thanks

Engr. Taseeb Saeed

narayanis
Active Contributor
0 Kudos

Hi,

You will have to go for SPTN.

Regards

Pradnya

former_member264311
Participant
0 Kudos

Can you give me a sample code? thanks