cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict back dated entries "SAVING" in FBCJ

avinash_p1
Participant
0 Kudos

Dear Experts,

I have defined validation to restrict the back dated postings in FBCJ it's working fine at the time of posting only but the documents are still saving.

could anybody through some light on this issue and please provide the solution to restrict saving while entering the back dated entries.

Regards

Avinash

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Avinash,

Validation always works on posting the transaction.

It is not possible to put validation on saving as no document gets generated.

Thanks and Regards,

Anurag

Answers (1)

Answers (1)

former_member192897
Active Contributor
0 Kudos

You said it is working fine.. Does that mean you are getting an Error message? If yes, it should work even during Save function. Check with Abaper or provide some more information along with screenshots for better understanding.

avinash_p1
Participant
0 Kudos

Hi,

Please see the parameters i have defined.

Pre-requisite - SYST-TCODE = FBCJ

Check - BKPF - BUDAT = SYST-DATUM

Message - Msg class ZFI [E] Error Msg: backdated postings are not allowed; Enter current date


But still we can able to save the transaction and when we try to post then error msg is triggered and prevent to post.

Please check and advise.

Regards

Avinash

Former Member
0 Kudos

Hi, ob28 is not working for "Save".

If you want implement validation logic for this event you can create enhancement in the beginning of the function FCJ_SAVE,